|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.blog.BlogContentManager
public class BlogContentManager
The blog implementation of ContentInterface.
Constructor Summary | |
---|---|
BlogContentManager()
|
Method Summary | |
---|---|
int |
createSilverContent(Connection con,
com.stratelia.webactiv.util.publication.model.PublicationDetail pubDetail,
String userId)
add a new content. |
void |
deleteSilverContent(Connection con,
com.stratelia.webactiv.util.publication.model.PublicationPK pubPK)
delete a content. |
List |
getSilverContentById(List<Integer> ids,
String peasId,
String userId,
List<String> userRoles)
Find all the SilverContent with the given list of SilverContentId |
int |
getSilverObjectId(String postId,
String peasId)
|
void |
updateSilverContentVisibility(com.stratelia.webactiv.util.publication.model.PublicationDetail pubDetail)
update the visibility attributes of the content. |
void |
updateSilverContentVisibility(com.stratelia.webactiv.util.publication.model.PublicationDetail pubDetail,
boolean isVisible)
update the visibility attributes of the content. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BlogContentManager()
Method Detail |
---|
public List getSilverContentById(List<Integer> ids, String peasId, String userId, List<String> userRoles)
getSilverContentById
in interface com.stratelia.silverpeas.contentManager.ContentInterface
ids
- list of silverContentId to retrievepeasId
- the id of the instanceuserId
- the id of the user who wants to retrieve silverContentuserRoles
- the roles of the user
public int getSilverObjectId(String postId, String peasId)
public int createSilverContent(Connection con, com.stratelia.webactiv.util.publication.model.PublicationDetail pubDetail, String userId) throws com.stratelia.silverpeas.contentManager.ContentManagerException
con
- a ConnectionpubDetail
- the content to registeruserId
- the creator of the content
com.stratelia.silverpeas.contentManager.ContentManagerException
public void deleteSilverContent(Connection con, com.stratelia.webactiv.util.publication.model.PublicationPK pubPK) throws com.stratelia.silverpeas.contentManager.ContentManagerException
con
- a ConnectionpubPK
- the identifiant of the content to unregister
com.stratelia.silverpeas.contentManager.ContentManagerException
public void updateSilverContentVisibility(com.stratelia.webactiv.util.publication.model.PublicationDetail pubDetail, boolean isVisible) throws com.stratelia.silverpeas.contentManager.ContentManagerException
pubDetail
- the contentboolean
- is pubDetail visible
com.stratelia.silverpeas.contentManager.ContentManagerException
public void updateSilverContentVisibility(com.stratelia.webactiv.util.publication.model.PublicationDetail pubDetail) throws com.stratelia.silverpeas.contentManager.ContentManagerException
pubDetail
- the content
com.stratelia.silverpeas.contentManager.ContentManagerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |