com.silverpeas.whitePages.control
Class WhitePagesContentManager

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

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

The whitePages implementation of ContentInterface.


Constructor Summary
WhitePagesContentManager()
           
 
Method Summary
 int createSilverContent(Connection con, Card card)
          add a new content.
 void deleteSilverContent(Connection con, com.stratelia.webactiv.persistence.IdPK pk)
          delete a content.
 List 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(Card card)
          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

WhitePagesContentManager

public WhitePagesContentManager()
Method Detail

getSilverContentById

public List 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

getSilverObjectId

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

createSilverContent

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

Parameters:
con - a Connection
pubDetail - 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(Card card)
                                   throws com.stratelia.silverpeas.contentManager.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:
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
pubPK - the identifiant of the content to unregister
Throws:
com.stratelia.silverpeas.contentManager.ContentManagerException


Copyright © 2016 Silverpeas. All Rights Reserved.