com.stratelia.silverpeas.infoLetter
Class InfoLetterContentManager

java.lang.Object
  extended by com.stratelia.silverpeas.infoLetter.InfoLetterContentManager
All Implemented Interfaces:
com.stratelia.silverpeas.contentManager.ContentInterface

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

The infoletter implementation of ContentInterface.


Constructor Summary
InfoLetterContentManager()
           
 
Method Summary
 int createSilverContent(Connection con, InfoLetterPublicationPdC ilPub, String userId)
          add a new content.
 void deleteSilverContent(Connection con, String pubId, String componentId)
          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 list of SilverContentId
 int getSilverObjectId(String pubId, String peasId)
           
 void updateSilverContentVisibility(InfoLetterPublicationPdC ilPub)
          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

InfoLetterContentManager

public InfoLetterContentManager()
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 list of SilverContentId

Specified by:
getSilverContentById in interface com.stratelia.silverpeas.contentManager.ContentInterface
Parameters:
ids - list of silverContentId to retrieve
peasId - the id of the instance
userId - the id of the user who wants to retrieve silverContent
userRoles - the roles of the user
Returns:
a List of SilverContent

getSilverObjectId

public int getSilverObjectId(String pubId,
                             String peasId)

createSilverContent

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

Parameters:
con - a Connection
ilPub - 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(InfoLetterPublicationPdC ilPub)
                                   throws com.stratelia.silverpeas.contentManager.ContentManagerException
update the visibility attributes of the content. Here, the type of content is a PublicationDetail

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

deleteSilverContent

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

Parameters:
con - a Connection
pubId - the identifiant of the content to unregister
componentId - the identifiant of the component instance where the content to unregister is
Throws:
com.stratelia.silverpeas.contentManager.ContentManagerException


Copyright © 2016 Silverpeas. All Rights Reserved.