Class LinkDetail
- java.lang.Object
-
- org.silverpeas.core.mylinks.model.LinkDetail
-
- All Implemented Interfaces:
Serializable
,Securable
public class LinkDetail extends Object implements Serializable, Securable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LinkDetail()
LinkDetail(String name, String description, String url, boolean visible, boolean popup)
LinkDetail(LinkDetail other)
Copy constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canBeAccessedBy(User user)
Checks the given user can access this resource.boolean
canBeModifiedBy(User user)
Checks the given user can modify this resource.CategoryDetail
getCategory()
String
getDescription()
String
getInstanceId()
int
getLinkId()
String
getName()
String
getObjectId()
int
getPosition()
String
getUrl()
String
getUserId()
boolean
hasPosition()
boolean
isPopup()
boolean
isVisible()
void
setCategory(CategoryDetail category)
void
setDescription(String description)
void
setHasPosition(boolean hasPosition)
void
setInstanceId(String instanceId)
void
setLinkId(int linkId)
void
setName(String name)
void
setObjectId(String objectId)
void
setPopup(boolean popup)
void
setPosition(int position)
void
setUrl(String url)
void
setUserId(String userId)
void
setVisible(boolean visible)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.security.Securable
canBeDeletedBy, canBeFiledInBy
-
-
-
-
Constructor Detail
-
LinkDetail
public LinkDetail()
-
LinkDetail
public LinkDetail(String name, String description, String url, boolean visible, boolean popup)
-
LinkDetail
public LinkDetail(LinkDetail other)
Copy constructor.- Parameters:
other
- the instance to copy.
-
-
Method Detail
-
getUserId
public String getUserId()
-
setUserId
public void setUserId(String userId)
-
getLinkId
public int getLinkId()
-
setLinkId
public void setLinkId(int linkId)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getUrl
public String getUrl()
-
setUrl
public void setUrl(String url)
-
isVisible
public boolean isVisible()
-
setVisible
public void setVisible(boolean visible)
-
isPopup
public boolean isPopup()
-
setPopup
public void setPopup(boolean popup)
-
getInstanceId
public String getInstanceId()
-
setInstanceId
public void setInstanceId(String instanceId)
-
getObjectId
public String getObjectId()
-
setObjectId
public void setObjectId(String objectId)
-
getPosition
public int getPosition()
-
setPosition
public void setPosition(int position)
-
hasPosition
public boolean hasPosition()
-
setHasPosition
public void setHasPosition(boolean hasPosition)
-
getCategory
public CategoryDetail getCategory()
-
setCategory
public void setCategory(CategoryDetail category)
-
canBeAccessedBy
public boolean canBeAccessedBy(User user)
Description copied from interface:Securable
Checks the given user can access this resource.- Specified by:
canBeAccessedBy
in interfaceSecurable
- Parameters:
user
- a user in Silverpeas.- Returns:
- true if the user can access the data managed by this instance, false otherwise.
-
canBeModifiedBy
public boolean canBeModifiedBy(User user)
Description copied from interface:Securable
Checks the given user can modify this resource. By default, if the user can access this securable resource, then it can also modify it.- Specified by:
canBeModifiedBy
in interfaceSecurable
- Parameters:
user
- a user in Silverpeas.- Returns:
- true if the user can modify the data managed by this instance, false otherwise.
-
-