com.stratelia.webactiv.forums
Class ForumsContentManager

java.lang.Object
  extended by com.stratelia.webactiv.forums.ForumsContentManager
All Implemented Interfaces:
com.stratelia.silverpeas.contentManager.ContentInterface

public class ForumsContentManager
extends Object
implements com.stratelia.silverpeas.contentManager.ContentInterface

The forums implementation of ContentInterface.


Constructor Summary
ForumsContentManager()
           
 
Method Summary
 int createSilverContent(Connection con, ForumPK forumPK, String userId)
          add a new content.
 void deleteSilverContent(Connection con, ForumPK forumPK)
          delete a content.
 List<com.stratelia.silverpeas.contentManager.SilverContentInterface> getSilverContentById(List<Integer> alSilverContentId, String sComponentId, String sUserId, List<String> alContentUserRoles)
           
 int getSilverObjectId(String pubId, String peasId)
          Method declaration
 void updateSilverContentVisibility(ForumPK forumPK, String userId)
          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

ForumsContentManager

public ForumsContentManager()
Method Detail

getSilverContentById

public List<com.stratelia.silverpeas.contentManager.SilverContentInterface> getSilverContentById(List<Integer> alSilverContentId,
                                                                                                 String sComponentId,
                                                                                                 String sUserId,
                                                                                                 List<String> alContentUserRoles)
Specified by:
getSilverContentById in interface com.stratelia.silverpeas.contentManager.ContentInterface

getSilverObjectId

public int getSilverObjectId(String pubId,
                             String peasId)
Method declaration

Parameters:
pubId -
peasId -
Returns:
See Also:

createSilverContent

public int createSilverContent(Connection con,
                               ForumPK forumPK,
                               String userId)
                        throws com.stratelia.silverpeas.contentManager.ContentManagerException
add a new content. It is registered to contentManager service

Parameters:
con - a Connection
forumDetail - the content to register
userId - the creator of the content
Returns:
the unique silverObjectId which identified the new content
Throws:
com.stratelia.silverpeas.contentManager.ContentManagerException

updateSilverContentVisibility

public void updateSilverContentVisibility(ForumPK forumPK,
                                          String userId)
                                   throws com.stratelia.silverpeas.contentManager.ContentManagerException
update the visibility attributes of the content. Here, the type of content is a ForumDetail

Parameters:
forumDetail - the content
silverObjectId - the unique identifier of the content
Throws:
com.stratelia.silverpeas.contentManager.ContentManagerException

deleteSilverContent

public void deleteSilverContent(Connection con,
                                ForumPK forumPK)
                         throws com.stratelia.silverpeas.contentManager.ContentManagerException
delete a content. It is registered to contentManager service

Parameters:
con - a Connection
forumPK - the identifiant of the content to unregister
Throws:
com.stratelia.silverpeas.contentManager.ContentManagerException


Copyright © 2016 Silverpeas. All Rights Reserved.