Skip navigation links


com.fatwire.services.beans.entity
Class SiteBean

java.lang.Object
  extended by com.fatwire.services.beans.BaseBean
      extended by com.fatwire.services.beans.entity.SiteBean

All Implemented Interfaces:
java.io.Serializable

public class SiteBean
extends BaseBean

The SiteBean represents the fundamental entity of the site. A site can exist independently. However, a user can gain access to a site only once roles are assigned to the user for that site. Both the name and the numeric id of a site can serve as unique identifiers. The SiteBean also provides the following information:

See Also:
Serialized Form

Constructor Summary
SiteBean()
          Default Constructor.
SiteBean(long id)
          Overloaded constructor which sets the identifier for the site.

 

Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDescription()
          Returns the description of this site.
 long getId()
          Returns the numeric identifier for this site.
 java.lang.String getName()
          Returns the name of this site.
 AssetId getPreviewAsset()
          Returns the asset identifier for the default asset configured for preview of this site.
 int hashCode()
           
 void setDescription(java.lang.String description)
          Sets the description for this site.
 void setId(long id)
          Sets the numeric identifier for this site.
 void setName(java.lang.String name)
          Sets the name of this site.
 void setPreviewAsset(AssetId previewAsset)
          Sets the asset identifier for the default asset configured for preview of this site.

 

Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

SiteBean

public SiteBean()
Default Constructor.

SiteBean

public SiteBean(long id)
Overloaded constructor which sets the identifier for the site.
Parameters:
id - the identifier to set.

Method Detail

setId

public void setId(long id)
Sets the numeric identifier for this site.
Parameters:
id - the identifier to set for this site.

getId

public long getId()
Returns the numeric identifier for this site.
Returns:
the id for this site.

setName

public void setName(java.lang.String name)
Sets the name of this site.
Parameters:
name - the name of this site to set.

getName

public java.lang.String getName()
Returns the name of this site.
Returns:
the name of this site.

setDescription

public void setDescription(java.lang.String description)
Sets the description for this site.
Parameters:
description - the description of this site to set.

getDescription

public java.lang.String getDescription()
Returns the description of this site.
Returns:
the description of this site.

setPreviewAsset

public void setPreviewAsset(AssetId previewAsset)
Sets the asset identifier for the default asset configured for preview of this site.
Parameters:
previewAsset - the asset identifier to set.

getPreviewAsset

public AssetId getPreviewAsset()
Returns the asset identifier for the default asset configured for preview of this site.
Returns:
the asset identifier of the default preview asset.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

Skip navigation links


Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.