com.silverpeas.whitePages.model
Class SilverCard

java.lang.Object
  extended by com.silverpeas.whitePages.model.SilverCard
All Implemented Interfaces:
com.silverpeas.SilverpeasContent, Serializable

public class SilverCard
extends Object
implements com.silverpeas.SilverpeasContent

See Also:
Serialized Form

Constructor Summary
SilverCard(Card card, int silverContentId)
           
 
Method Summary
 boolean canBeAccessedBy(com.stratelia.webactiv.beans.admin.UserDetail user)
          Is the specified user can access this card?
 String getComponentInstanceId()
           
 String getContributionType()
           
 Date getCreationDate()
           
 com.stratelia.webactiv.beans.admin.UserDetail getCreator()
           
 String getDescription()
           
 String getId()
           
 String getSilverpeasContentId()
           
 String getTitle()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SilverCard

public SilverCard(Card card,
                  int silverContentId)
Method Detail

getId

public String getId()
Specified by:
getId in interface com.silverpeas.SilverpeasContent

getComponentInstanceId

public String getComponentInstanceId()
Specified by:
getComponentInstanceId in interface com.silverpeas.SilverpeasContent

getSilverpeasContentId

public String getSilverpeasContentId()
Specified by:
getSilverpeasContentId in interface com.silverpeas.SilverpeasContent

getCreator

public com.stratelia.webactiv.beans.admin.UserDetail getCreator()
Specified by:
getCreator in interface com.silverpeas.SilverpeasContent

getCreationDate

public Date getCreationDate()
Specified by:
getCreationDate in interface com.silverpeas.SilverpeasContent

getTitle

public String getTitle()
Specified by:
getTitle in interface com.silverpeas.SilverpeasContent

getDescription

public String getDescription()
Specified by:
getDescription in interface com.silverpeas.SilverpeasContent

getContributionType

public String getContributionType()
Specified by:
getContributionType in interface com.silverpeas.SilverpeasContent

canBeAccessedBy

public boolean canBeAccessedBy(com.stratelia.webactiv.beans.admin.UserDetail user)
Is the specified user can access this card?

A user can access a card if it has enough rights to access the WhitePages instance in which is managed this card.

Specified by:
canBeAccessedBy in interface com.silverpeas.SilverpeasContent
Parameters:
user - a user in Silverpeas.
Returns:
true if the user can access this card, false otherwise.


Copyright © 2016 Silverpeas. All Rights Reserved.