|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.silverpeas.peasCore.AbstractComponentSessionController
com.stratelia.webactiv.quickinfo.control.QuickInfoSessionController
public class QuickInfoSessionController
Field Summary |
---|
Fields inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController |
---|
CHARACTER_ENCODING, context |
Constructor Summary | |
---|---|
QuickInfoSessionController(com.stratelia.silverpeas.peasCore.MainSessionController mainSessionCtrl,
com.stratelia.silverpeas.peasCore.ComponentContext componentContext)
Creates new QuickInfoSessionController |
Method Summary | |
---|---|
void |
close()
|
void |
create(News news)
Creates into persistence the news with minimal data. |
QuickInfoComponentSettings |
getInstanceSettings()
|
News |
getNews(String id,
boolean statVisit)
|
News |
getNewsByForeignId(String foreignId)
|
NewsByStatus |
getQuickInfos()
|
com.silverpeas.thumbnail.ThumbnailSettings |
getThumbnailSettings()
|
List<News> |
getVisibleQuickInfos()
|
void |
index()
|
boolean |
isNewsIdentifierFromMemory(String newsId)
Indicates if the given news identifier is one that indicates the news is in memory only. |
boolean |
isPdcUsed()
|
Boolean |
isSubscriberUser()
|
String |
notify(String newsId)
|
News |
prepareEmptyNews()
Prepare an instance of a news that will exists only in memory if no action persistence will be applied on. |
void |
publish(String id)
Publish a news represented by the given identifier. |
void |
remove(String id)
Removes from persistence the news which the identifier is the one given. |
void |
submitNewsOnHomepage(String id)
|
void |
update(String id,
News updatedNews,
String pdcPositions,
Collection<org.silverpeas.upload.UploadedFile> uploadedFiles,
boolean forcePublish)
Updates all the data of a news. |
Methods inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController |
---|
addClipboardSelection, clipboardPasteDone, getAlertUser, getClipboardCount, getClipboardErrorMessage, getClipboardExceptionError, getClipboardName, getClipboardObjects, getClipboardSelectedObjects, getClipboardSize, getComponentAccessController, getComponentId, getComponentLabel, getComponentName, getComponentParameters, getComponentParameterValue, getComponentParameterValue, getComponentRootName, getComponentUrl, getFavoriteSpace, getGenericPanel, getHighestSilverpeasUserRole, getIcon, getLanguage, getLastResults, getLook, getMultilang, getOrganisationController, getPersonalization, getRSSUrl, getSelection, getServerNameAndPort, getSettings, getSilverpeasUserRoles, getSpaceId, getSpaceLabel, getString, getSubscriptionContext, getUrlEncodedParameter, getUserAccessLevel, getUserAvailComponentIds, getUserAvailSpaceIds, getUserDetail, getUserDetail, getUserId, getUserManageableGroupIds, getUserManageableSpaceIds, getUserRoleLevel, getUserRoles, isAppInMaintenance, isGroupManager, isPasswordChangeAllowed, isSpaceInMaintenance, removeClipboardElement, setAppModeMaintenance, setClipboardError, setClipboardSelectedElement, setComponentRootName, setFavoriteSpaceToMainSessionController, setGenericPanel, setIconFileName, setLastResults, setMultilangFileName, setResourceFileName, setSpaceModeMaintenance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QuickInfoSessionController(com.stratelia.silverpeas.peasCore.MainSessionController mainSessionCtrl, com.stratelia.silverpeas.peasCore.ComponentContext componentContext)
mainSessionCtrl
- componentContext
- Method Detail |
---|
public QuickInfoComponentSettings getInstanceSettings()
public NewsByStatus getQuickInfos()
public List<News> getVisibleQuickInfos()
public News getNews(String id, boolean statVisit)
public News getNewsByForeignId(String foreignId)
public void publish(String id)
id
- the identifier of the news that must be published.public News prepareEmptyNews()
public boolean isNewsIdentifierFromMemory(String newsId)
newsId
- the news identifier to verify.
public void create(News news)
news
- the news to persist.public void update(String id, News updatedNews, String pdcPositions, Collection<org.silverpeas.upload.UploadedFile> uploadedFiles, boolean forcePublish)
id
- the identifier of the news (used to load previous data).updatedNews
- the data to save.pdcPositions
- the pdc positions.uploadedFiles
- the files uploaded in the aim to be attached to the news.forcePublish
- true to indicate a publish action, false otherwise.public void remove(String id)
id
- the identifier of the news to remove from the persistence.public boolean isPdcUsed()
public void close()
close
in class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
public void index() throws RemoteException
RemoteException
public com.silverpeas.thumbnail.ThumbnailSettings getThumbnailSettings()
public Boolean isSubscriberUser()
public String notify(String newsId)
public void submitNewsOnHomepage(String id)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |