com.silverpeas.questionReply.control
Class QuestionReplyContentManager

java.lang.Object
  extended by com.silverpeas.questionReply.control.QuestionReplyContentManager
All Implemented Interfaces:
com.stratelia.silverpeas.contentManager.ContentInterface

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

The questionReply implementation of ContentInterface.


Constructor Summary
QuestionReplyContentManager()
           
 
Method Summary
 int createSilverContent(Connection con, Question question)
          Add a new content.
 void deleteSilverContent(Connection con, com.stratelia.webactiv.persistence.IdPK pk)
          delete a content.
 List<com.stratelia.silverpeas.contentManager.SilverContentInterface> getSilverContentById(List<Integer> ids, String peasId, String userId, List<String> userRoles)
          Find all the SilverContent with the given SilverContentId
 int getSilverObjectId(String id, String peasId)
           
 void updateSilverContentVisibility(Question question)
          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

QuestionReplyContentManager

public QuestionReplyContentManager()
Method Detail

getSilverContentById

public List<com.stratelia.silverpeas.contentManager.SilverContentInterface> getSilverContentById(List<Integer> ids,
                                                                                                 String peasId,
                                                                                                 String userId,
                                                                                                 List<String> userRoles)
Find all the SilverContent with the given SilverContentId

Specified by:
getSilverContentById in interface com.stratelia.silverpeas.contentManager.ContentInterface
Parameters:
ids -
userId -
peasId -
userRoles -

getSilverObjectId

public int getSilverObjectId(String id,
                             String peasId)
                      throws QuestionReplyException
Throws:
QuestionReplyException

createSilverContent

public int createSilverContent(Connection con,
                               Question question)
                        throws com.stratelia.silverpeas.contentManager.ContentManagerException
Add a new content. It is registered to contentManager service

Parameters:
con -
question -
Returns:
the unique silverObjectId which identified the new content
Throws:
com.stratelia.silverpeas.contentManager.ContentManagerException

updateSilverContentVisibility

public void updateSilverContentVisibility(Question question)
                                   throws com.stratelia.silverpeas.contentManager.ContentManagerException
update the visibility attributes of the content. Here, the type of content is a Question.

Parameters:
question - the content
Throws:
com.stratelia.silverpeas.contentManager.ContentManagerException

deleteSilverContent

public void deleteSilverContent(Connection con,
                                com.stratelia.webactiv.persistence.IdPK pk)
                         throws com.stratelia.silverpeas.contentManager.ContentManagerException
delete a content. It is registered to contentManager service

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


Copyright © 2016 Silverpeas. All Rights Reserved.