com.silverpeas.whitePages.control
Class CardManager
java.lang.Object
com.silverpeas.whitePages.control.CardManager
public class CardManager
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static CardManager getInstance()
create
public long create(Card card,
String creatorId,
com.silverpeas.pdc.model.PdcClassification classification)
throws WhitePagesException
- Throws:
WhitePagesException
delete
public void delete(Collection<String> ids)
throws WhitePagesException
- Throws:
WhitePagesException
getCard
public Card getCard(long id)
throws WhitePagesException
- Throws:
WhitePagesException
getCards
public Collection<Card> getCards(String instanceId)
throws WhitePagesException
- Throws:
WhitePagesException
getCardsByIds
public Collection<Card> getCardsByIds(List<String> ids)
throws WhitePagesException
- Throws:
WhitePagesException
getVisibleCards
public Collection<Card> getVisibleCards(String instanceId)
throws WhitePagesException
- Throws:
WhitePagesException
getUserCards
public Collection<WhitePagesCard> getUserCards(String userId,
Collection<String> instanceIds)
throws WhitePagesException
- Throws:
WhitePagesException
getHomeUserCards
public Collection<WhitePagesCard> getHomeUserCards(String userId,
Collection<String> instanceIds,
String instanceId)
throws WhitePagesException
- Throws:
WhitePagesException
setHideStatus
public void setHideStatus(Collection<String> ids,
int status)
throws WhitePagesException
- Throws:
WhitePagesException
reverseHide
public void reverseHide(Collection<String> ids)
throws WhitePagesException
- Throws:
WhitePagesException
existCard
public boolean existCard(String userId,
String instanceId)
throws WhitePagesException
- Throws:
WhitePagesException
isPublicationClassifiedOnPDC
public boolean isPublicationClassifiedOnPDC(Card card)
throws com.stratelia.silverpeas.contentManager.ContentManagerException,
com.stratelia.silverpeas.pdc.model.PdcException
- Throws:
com.stratelia.silverpeas.contentManager.ContentManagerException
com.stratelia.silverpeas.pdc.model.PdcException
getUserCard
public Card getUserCard(String userId,
String instanceId)
throws WhitePagesException
- Get card for a user and instance.
- Parameters:
userId
- user idinstanceId
- instance id
- Returns:
- the card, null if not found
- Throws:
WhitePagesException
indexCard
public void indexCard(Card card)
Copyright © 2016 Silverpeas. All Rights Reserved.