Class AbstractContentEntity
- java.lang.Object
-
- org.silverpeas.core.webapi.contribution.AbstractContentEntity
-
- All Implemented Interfaces:
Serializable
,WebEntity
- Direct Known Subclasses:
FormEntity
public abstract class AbstractContentEntity extends Object implements WebEntity
- Author:
- Yohann Chastagnier
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractContentEntity()
protected
AbstractContentEntity(String type)
Default hidden constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getType()
URI
getURI()
Gets the URI at which this web entity is published and can be accessed.<T> T
withURI(URI uri)
Sets a URI to this entity.
-
-
-
Constructor Detail
-
AbstractContentEntity
protected AbstractContentEntity(String type)
Default hidden constructor.
-
AbstractContentEntity
protected AbstractContentEntity()
-
-
Method Detail
-
withURI
public <T> 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:WebEntity
Gets the URI at which this web entity is published and can be accessed.
-
getType
protected String getType()
-
-