org.silverpeas.look.web
Class AbstractLookEntity<T extends AbstractLookEntity<T>>

java.lang.Object
  extended by org.silverpeas.look.web.AbstractLookEntity<T>
All Implemented Interfaces:
Exposable, Serializable
Direct Known Subclasses:
DisplayUserContextEntity

public abstract class AbstractLookEntity<T extends AbstractLookEntity<T>>
extends Object
implements Exposable

Web entity abstraction which provides the URI of the entity

Author:
Yohann Chastagnier
See Also:
Serialized Form

Constructor Summary
AbstractLookEntity()
           
 
Method Summary
 URI getURI()
          Gets the URI at which this resource is published and can be accessed.
 T withURI(URI uri)
          Sets a URI to this entity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLookEntity

public AbstractLookEntity()
Method Detail

withURI

public T withURI(URI uri)
Sets a URI to this entity. With this URI, it can then be accessed through the Web.

Parameters:
uri - the web entity URI.
Returns:
itself.

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.


Copyright © 2016 Silverpeas. All Rights Reserved.