com.stratelia.webactiv.quickinfo
Class QuickInfoContentManager
java.lang.Object
com.stratelia.webactiv.quickinfo.QuickInfoContentManager
- All Implemented Interfaces:
- com.stratelia.silverpeas.contentManager.ContentInterface
public class QuickInfoContentManager
- extends Object
- implements com.stratelia.silverpeas.contentManager.ContentInterface
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONTENT_ICON
public static final String CONTENT_ICON
- See Also:
- Constant Field Values
QuickInfoContentManager
public QuickInfoContentManager()
getSilverContentById
public List<com.stratelia.silverpeas.contentManager.SilverContentInterface> getSilverContentById(List<Integer> ids,
String componentId,
String sUserId,
List<String> alContentUserRoles)
- Find all the SilverContent with the given list of SilverContentId
- Specified by:
getSilverContentById
in interface com.stratelia.silverpeas.contentManager.ContentInterface
- Parameters:
ids
- list of silverContentId to retrievecomponentId
- the id of the instanceuserId
- the id of the user who wants to retrieve silverContentuserRoles
- the roles of the user
- Returns:
- a List of SilverContent
getSilverObjectId
public int getSilverObjectId(String pubId,
String peasId)
createSilverContent
public int createSilverContent(Connection con,
com.stratelia.webactiv.util.publication.model.PublicationDetail pubDetail,
String userId,
boolean isVisible)
throws com.stratelia.silverpeas.contentManager.ContentManagerException
- add a new content. It is registered to contentManager service
- Parameters:
con
- a ConnectionpubDetail
- the content to registeruserId
- the creator of the content
- Returns:
- the unique silverObjectId which identified the new content
- Throws:
com.stratelia.silverpeas.contentManager.ContentManagerException
updateSilverContentVisibility
public void updateSilverContentVisibility(com.stratelia.webactiv.util.publication.model.PublicationDetail pubDetail,
boolean isVisible)
throws com.stratelia.silverpeas.contentManager.ContentManagerException
- update the visibility attributes of the content. Here, the type of content is a
PublicationDetail
- Parameters:
pubDetail
- the content
- Throws:
com.stratelia.silverpeas.contentManager.ContentManagerException
deleteSilverContent
public void deleteSilverContent(Connection con,
com.stratelia.webactiv.util.publication.model.PublicationPK pubPK)
throws com.stratelia.silverpeas.contentManager.ContentManagerException
- delete a content. It is registered to contentManager service
- Parameters:
con
- a ConnectionpubPK
- the identifiant of the content to unregister
- Throws:
com.stratelia.silverpeas.contentManager.ContentManagerException
Copyright © 2016 Silverpeas. All Rights Reserved.