org.silverpeas.admin.web
Class AbstractPersonnalEntity

java.lang.Object
  extended by org.silverpeas.admin.web.AbstractTypeEntity
      extended by org.silverpeas.admin.web.AbstractPersonnalEntity
All Implemented Interfaces:
Exposable, Serializable
Direct Known Subclasses:
PersonalComponentEntity, PersonalToolEntity

public abstract class AbstractPersonnalEntity
extends AbstractTypeEntity

The space instance light entity is a SpaceInstLight object that is exposed in the web as an entity (web entity). As such, it publishes only some of its attributes. It represents a SpaceInstLight in Silverpeas plus some additional information such as the URI for accessing it.

Author:
Yohann Chastagnier
See Also:
Serialized Form

Constructor Summary
protected AbstractPersonnalEntity()
           
  AbstractPersonnalEntity(String type, String id, int nb, String name, String label, String description, String url)
           
 
Method Summary
 boolean equals(Object obj)
           
protected  String getDescription()
           
protected  String getId()
           
protected  String getLabel()
           
protected  String getName()
           
protected  int getNb()
           
 URI getURI()
          Gets the URI at which this resource is published and can be accessed.
protected abstract  String getUriIdentifier()
           
protected  String getUrl()
           
 int hashCode()
           
<T extends AbstractPersonnalEntity>
T
withUriBase(URI uriBase)
           
 
Methods inherited from class org.silverpeas.admin.web.AbstractTypeEntity
getType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPersonnalEntity

public AbstractPersonnalEntity(String type,
                               String id,
                               int nb,
                               String name,
                               String label,
                               String description,
                               String url)

AbstractPersonnalEntity

protected AbstractPersonnalEntity()
Method Detail

withUriBase

public <T extends AbstractPersonnalEntity> T withUriBase(URI uriBase)

getUriIdentifier

protected abstract String getUriIdentifier()

getURI

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

Returns:
the web resource URI.

getId

protected final String getId()
Returns:
the id

getNb

protected final int getNb()
Returns:
the nb

getName

protected final String getName()
Returns:
the name

getLabel

protected final String getLabel()
Returns:
the label

getDescription

protected final String getDescription()
Returns:
the description

getUrl

protected final String getUrl()
Returns:
the url

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2016 Silverpeas. All Rights Reserved.