com.stratelia.webactiv.util.questionContainer.control
Class QuestionContainerContentManager

java.lang.Object
  extended by com.stratelia.webactiv.util.questionContainer.control.QuestionContainerContentManager

public class QuestionContainerContentManager
extends Object


Constructor Summary
QuestionContainerContentManager()
           
 
Method Summary
static int createSilverContent(Connection con, QuestionContainerHeader qC, String userId, boolean isVisible)
          add a new content.
static void deleteSilverContent(Connection con, QuestionContainerPK pk)
          delete a content.
static int getSilverObjectId(String id, String peasId)
           
static void updateSilverContentVisibility(QuestionContainerHeader qC, 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

QuestionContainerContentManager

public QuestionContainerContentManager()
Method Detail

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 Connection
qC - the content to register
userId - 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 content
silverObjectId - 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 Connection
pubPK - the identifiant of the content to unregister
Throws:
ContentManagerException


Copyright © 2016 Silverpeas. All Rights Reserved.