|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.silverpeas.peasCore.AbstractComponentSessionController
com.silverpeas.blog.control.BlogSessionController
public final class BlogSessionController
Field Summary |
---|
Fields inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController |
---|
CHARACTER_ENCODING, context |
Constructor Summary | |
---|---|
BlogSessionController(com.stratelia.silverpeas.peasCore.MainSessionController mainSessionCtrl,
com.stratelia.silverpeas.peasCore.ComponentContext componentContext)
Standard Session Controller Constructeur |
Method Summary | |
---|---|
void |
addUserSubscription()
|
void |
checkWriteAccessOnBlogPost()
|
void |
createCategory(Category category)
|
String |
createPost(String title,
String categoryId,
Date dateEvent,
com.silverpeas.pdc.web.PdcClassificationEntity classification)
|
void |
deleteCategory(String categoryId)
|
void |
deletePost(String postId)
|
void |
draftOutPost(String postId)
|
Collection<Archive> |
getAllArchives()
|
Collection<com.stratelia.webactiv.util.node.model.NodeDetail> |
getAllCategories()
|
Collection<com.silverpeas.comment.model.Comment> |
getAllComments(String postId)
|
Collection<com.silverpeas.myLinks.model.LinkDetail> |
getAllLinks()
|
Category |
getCategory(String categoryId)
|
com.silverpeas.comment.model.Comment |
getComment(String commentId)
|
protected com.silverpeas.comment.service.CommentService |
getCommentService()
Gets a DefaultCommentService instance. |
String |
getCurrentBeginDateAsString()
|
String |
getCurrentEndDateAsString()
|
Date |
getDateEvent(String pubId)
|
String |
getListNodeJSON(Collection<com.stratelia.webactiv.util.node.model.NodeDetail> listNode)
Converts the list of Delegated News into its JSON representation. |
com.silverpeas.myLinks.ejb.MyLinksBm |
getMyLinksBm()
|
PostDetail |
getPost(String postId)
|
Collection<PostDetail> |
getResultSearch(String word)
|
String |
getRSSUrl()
|
String |
getServerURL()
|
StyleSheet |
getStyleSheet()
Get the style sheet object. |
WallPaper |
getWallPaper()
Get the wallpaper object. |
String |
initAlertUser(String postId)
|
Boolean |
isDraftVisible()
|
Boolean |
isPdcUsed()
|
boolean |
isUserSubscribed()
|
Collection<PostDetail> |
lastPosts()
|
Collection<PostDetail> |
lastValidPosts()
|
void |
nextMonth()
|
Collection<PostDetail> |
postsByArchive(String theBeginDate,
String theEndDate)
|
Collection<PostDetail> |
postsByCategory(String categoryId)
|
Collection<PostDetail> |
postsByDate(String date)
|
void |
previousMonth()
|
void |
removeStyleSheetFile()
Remove the actual style sheet file. |
void |
removeUserSubscription()
|
void |
removeWallPaperFile()
Remove the actual wallpaper file. |
void |
saveStyleSheetFile(org.apache.commons.fileupload.FileItem fileItemStyleSheet)
Save the stylesheet file. |
void |
saveWallPaperFile(org.apache.commons.fileupload.FileItem fileItemWallPaper)
Save the banner file. |
void |
setCurrentBeginDate(String beginDate)
|
void |
setCurrentEndDate(String endDate)
|
void |
setStyleSheet()
Set the name, URL, size and content of the style sheet file. |
void |
setWallPaper()
Set the name, URL and size of the wallpaper file. |
void |
updateCategory(Category category)
|
void |
updatePost(String postId,
String title,
String content,
String categoryId,
Date dateEvent)
|
void |
updatePostAndDraftOut(String postId,
String title,
String content,
String categoryId,
Date dateEvent)
|
Methods inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController |
---|
addClipboardSelection, clipboardPasteDone, close, 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, 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 BlogSessionController(com.stratelia.silverpeas.peasCore.MainSessionController mainSessionCtrl, com.stratelia.silverpeas.peasCore.ComponentContext componentContext)
mainSessionCtrl
- The user's profilecomponentContext
- The component's profile
Method Detail |
---|
public void checkWriteAccessOnBlogPost()
public Collection<PostDetail> lastPosts()
public Collection<PostDetail> lastValidPosts()
public Collection<PostDetail> postsByCategory(String categoryId)
public Collection<PostDetail> postsByArchive(String theBeginDate, String theEndDate)
public Collection<PostDetail> postsByDate(String date)
public PostDetail getPost(String postId)
public String createPost(String title, String categoryId, Date dateEvent, com.silverpeas.pdc.web.PdcClassificationEntity classification)
public void updatePost(String postId, String title, String content, String categoryId, Date dateEvent)
public void draftOutPost(String postId)
public void updatePostAndDraftOut(String postId, String title, String content, String categoryId, Date dateEvent)
public String initAlertUser(String postId) throws RemoteException
RemoteException
public void deletePost(String postId)
public Collection<com.silverpeas.comment.model.Comment> getAllComments(String postId)
public com.silverpeas.comment.model.Comment getComment(String commentId)
public Collection<com.stratelia.webactiv.util.node.model.NodeDetail> getAllCategories()
public Category getCategory(String categoryId)
public void createCategory(Category category)
public void deleteCategory(String categoryId)
public void updateCategory(Category category)
public Collection<Archive> getAllArchives()
public Collection<com.silverpeas.myLinks.model.LinkDetail> getAllLinks()
public Collection<PostDetail> getResultSearch(String word)
public void addUserSubscription() throws RemoteException
RemoteException
public void removeUserSubscription() throws RemoteException
RemoteException
public boolean isUserSubscribed() throws RemoteException
RemoteException
public String getRSSUrl()
getRSSUrl
in class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
public Boolean isPdcUsed()
public Boolean isDraftVisible()
protected com.silverpeas.comment.service.CommentService getCommentService()
public com.silverpeas.myLinks.ejb.MyLinksBm getMyLinksBm()
public void setCurrentBeginDate(String beginDate)
public void setCurrentEndDate(String endDate)
public String getCurrentBeginDateAsString()
public String getCurrentEndDateAsString()
public Date getDateEvent(String pubId) throws RemoteException
RemoteException
public void nextMonth()
public void previousMonth()
public String getServerURL()
public String getListNodeJSON(Collection<com.stratelia.webactiv.util.node.model.NodeDetail> listNode) throws JAXBException
JAXBException
public void setWallPaper()
public WallPaper getWallPaper()
public void saveWallPaperFile(org.apache.commons.fileupload.FileItem fileItemWallPaper) throws BlogRuntimeException
BlogRuntimeException
public void removeWallPaperFile()
public void setStyleSheet()
public StyleSheet getStyleSheet()
public void saveStyleSheetFile(org.apache.commons.fileupload.FileItem fileItemStyleSheet) throws BlogRuntimeException
BlogRuntimeException
public void removeStyleSheetFile()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |