org.silverpeas.mylinks.web
Class MyLinkEntity

java.lang.Object
  extended by org.silverpeas.mylinks.web.MyLinkEntity
All Implemented Interfaces:
Exposable, Serializable

public class MyLinkEntity
extends Object
implements Exposable

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
protected MyLinkEntity()
          Default constructor
  MyLinkEntity(LinkDetail link, URI uri)
          Constructor using linkDetail and uri
 
Method Summary
static MyLinkEntity fromLinkDetail(LinkDetail link, URI uri)
           
 String getDescription()
           
 String getInstanceId()
           
 int getLinkId()
           
 String getName()
           
 String getObjectId()
           
 int getPosition()
           
 URI getUri()
           
 URI getURI()
          Gets the URI at which this resource is published and can be accessed.
 String getUrl()
           
 String getUserId()
           
 boolean isPopup()
           
 boolean isVisible()
           
 String toJSon()
           
 LinkDetail toLinkDetail()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyLinkEntity

protected MyLinkEntity()
Default constructor


MyLinkEntity

public MyLinkEntity(LinkDetail link,
                    URI uri)
Constructor using linkDetail and uri

Parameters:
link -
uri -
Method Detail

fromLinkDetail

public static MyLinkEntity fromLinkDetail(LinkDetail link,
                                          URI uri)

getURI

public URI getURI()
Description copied from interface: Exposable
Gets the URI at which this resource is published and can be accessed.

Specified by:
getURI in interface Exposable
Returns:
the web resource URI.

toJSon

public String toJSon()

toLinkDetail

public LinkDetail toLinkDetail()

getUri

public URI getUri()
Returns:
the uri

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


Copyright © 2016 Silverpeas. All Rights Reserved.