org.opencms.ade.galleries.shared
Class CmsSiteSelectorOption

java.lang.Object
  extended by org.opencms.ade.galleries.shared.CmsSiteSelectorOption
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable

public class CmsSiteSelectorOption
extends java.lang.Object
implements com.google.gwt.user.client.rpc.IsSerializable

Bean class which represents an option for the site selector in the gallery dialog.


Nested Class Summary
static class CmsSiteSelectorOption.Type
          Enum for indicating the site type.
 
Constructor Summary
CmsSiteSelectorOption()
          Default constructor.
CmsSiteSelectorOption(CmsSiteSelectorOption.Type type, java.lang.String siteRoot, boolean isCurrentSite, java.lang.String message)
          Creates a new site selector option.
 
Method Summary
 java.lang.String getMessage()
          Gets the message to display for this site.
 java.lang.String getSiteRoot()
          Gets the site root for the site.
 CmsSiteSelectorOption.Type getType()
          Gets the type of the site.
 boolean isCurrentSite()
          Returns true if this site is the current site.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsSiteSelectorOption

public CmsSiteSelectorOption()
Default constructor.


CmsSiteSelectorOption

public CmsSiteSelectorOption(CmsSiteSelectorOption.Type type,
                             java.lang.String siteRoot,
                             boolean isCurrentSite,
                             java.lang.String message)
Creates a new site selector option.

Parameters:
type - the site type
siteRoot - the site root
isCurrentSite - true if this is the current site
message - the message to display for this site
Method Detail

getMessage

public java.lang.String getMessage()
Gets the message to display for this site.

Returns:
the message to display for this site

getSiteRoot

public java.lang.String getSiteRoot()
Gets the site root for the site.

Returns:
the site root

getType

public CmsSiteSelectorOption.Type getType()
Gets the type of the site.

Returns:
the type of the site

isCurrentSite

public boolean isCurrentSite()
Returns true if this site is the current site.

Returns:
true if this is the current site