org.silverpeas.admin.web
Class SpaceAppearanceEntity

java.lang.Object
  extended by org.silverpeas.admin.web.AbstractTypeEntity
      extended by org.silverpeas.admin.web.SpaceAppearanceEntity
All Implemented Interfaces:
Exposable, Serializable

public class SpaceAppearanceEntity
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

Field Summary
static String TYPE
           
 
Constructor Summary
protected SpaceAppearanceEntity()
           
 
Method Summary
static SpaceAppearanceEntity createFrom(SpaceInstLight space, String look, String wallpaper, String css)
          Creates a new space appearance entity from the specified data.
 boolean equals(Object obj)
           
protected  String getCSS()
           
protected  String getLook()
           
protected  URI getSpaceURI()
           
protected  String getStringBaseURI()
          Gets the URI base of the current entity
 URI getURI()
          Gets the URI at which this resource is published and can be accessed.
protected  String getWallpaper()
           
 int hashCode()
           
 SpaceAppearanceEntity withURI(URI uri)
          Sets a URI to this entity.
 
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
 

Field Detail

TYPE

public static final String TYPE
See Also:
Constant Field Values
Constructor Detail

SpaceAppearanceEntity

protected SpaceAppearanceEntity()
Method Detail

createFrom

public static SpaceAppearanceEntity createFrom(SpaceInstLight space,
                                               String look,
                                               String wallpaper,
                                               String css)
Creates a new space appearance entity from the specified data.

Parameters:
space -
look -
wallpaper -
Returns:

withURI

public SpaceAppearanceEntity 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.

Returns:
the web resource URI.

getSpaceURI

protected final URI getSpaceURI()
Returns:
the spaceURI

getLook

protected final String getLook()
Returns:
the look

getWallpaper

protected final String getWallpaper()
Returns:
the wallpaper

getCSS

protected final String getCSS()
Returns:
the wallpaper

getStringBaseURI

protected String getStringBaseURI()
Gets the URI base of the current entity

Returns:

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.