org.silverpeas.viewer.web
Class AbstractPreviewEntity<T extends AbstractPreviewEntity<T>>

java.lang.Object
  extended by org.silverpeas.viewer.web.AbstractPreviewEntity<T>
All Implemented Interfaces:
Exposable, Serializable
Direct Known Subclasses:
DocumentViewEntity, PreviewEntity

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

The preview entity is a preview instance that is exposed in the web as an entity (web entity).

Author:
Yohann Chastagnier
See Also:
Serialized Form

Constructor Summary
AbstractPreviewEntity()
           
 
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

AbstractPreviewEntity

public AbstractPreviewEntity()
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.