Class MyLinkEntity
- java.lang.Object
-
- org.silverpeas.core.webapi.mylinks.MyLinkEntity
-
- All Implemented Interfaces:
Serializable
,WebEntity
public class MyLinkEntity extends Object implements WebEntity
The mylink entity is a mylink object that is exposed in the web as an entity (web entity). As such, it publishes only some of its attributes. It represents a user favorite link in Silverpeas- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MyLinkEntity()
Default constructorMyLinkEntity(LinkDetail link, URI uri)
Constructor using linkDetail and uri
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MyLinkEntity
fromLinkDetail(LinkDetail link, URI uri)
Integer
getCategoryId()
String
getDescription()
String
getInstanceId()
int
getLinkId()
String
getName()
String
getObjectId()
int
getPosition()
URI
getURI()
Gets the URI at which this web entity is published and can be accessed.String
getUrl()
String
getUserId()
boolean
isPopup()
boolean
isVisible()
LinkDetail
toLinkDetail()
-
-
-
Constructor Detail
-
MyLinkEntity
protected MyLinkEntity()
Default constructor
-
MyLinkEntity
public MyLinkEntity(LinkDetail link, URI uri)
Constructor using linkDetail and uri- Parameters:
link
- the link detailuri
- an URI
-
-
Method Detail
-
fromLinkDetail
public static MyLinkEntity fromLinkDetail(LinkDetail link, URI uri)
-
getURI
public URI getURI()
Description copied from interface:WebEntity
Gets the URI at which this web entity is published and can be accessed.
-
toLinkDetail
public LinkDetail toLinkDetail()
-
getLinkId
public int getLinkId()
- Returns:
- the linkId
-
getName
public String getName()
- Returns:
- the name
-
getDescription
public String getDescription()
- Returns:
- the description
-
getUrl
public String getUrl()
- Returns:
- the url
-
isVisible
public boolean isVisible()
- Returns:
- the visible
-
isPopup
public boolean isPopup()
- Returns:
- the popup
-
getUserId
public String getUserId()
- Returns:
- the userId
-
getInstanceId
public String getInstanceId()
- Returns:
- the instanceId
-
getObjectId
public String getObjectId()
- Returns:
- the objectId
-
getPosition
public int getPosition()
- Returns:
- the position of the object in the list
-
getCategoryId
public Integer getCategoryId()
- Returns:
- the optional category identifier the link is associated to.
-
-