com.stratelia.webactiv.util.questionContainer.control
Class QuestionContainerContentManager
java.lang.Object
com.stratelia.webactiv.util.questionContainer.control.QuestionContainerContentManager
public class QuestionContainerContentManager
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QuestionContainerContentManager
public QuestionContainerContentManager()
getSilverObjectId
public static int getSilverObjectId(String id,
String peasId)
throws ContentManagerException
- Throws:
ContentManagerException
createSilverContent
public static int createSilverContent(Connection con,
QuestionContainerHeader qC,
String userId,
boolean isVisible)
throws ContentManagerException
- add a new content. It is registered to contentManager service
- Parameters:
con
- a ConnectionqC
- the content to registeruserId
- the creator of the content
- Returns:
- the unique silverObjectId which identified the new content
- Throws:
ContentManagerException
updateSilverContentVisibility
public static void updateSilverContentVisibility(QuestionContainerHeader qC,
boolean isVisible)
throws ContentManagerException
- update the visibility attributes of the content. Here, the type of content is a
PublicationDetail
- Parameters:
pubDetail
- the contentsilverObjectId
- the unique identifier of the content
- Throws:
ContentManagerException
deleteSilverContent
public static void deleteSilverContent(Connection con,
QuestionContainerPK pk)
throws ContentManagerException
- delete a content. It is registered to contentManager service
- Parameters:
con
- a ConnectionpubPK
- the identifiant of the content to unregister
- Throws:
ContentManagerException
Copyright © 2016 Silverpeas. All Rights Reserved.