Package org.opencms.ade.galleries.shared
Class CmsSiteSelectorOption
- java.lang.Object
-
- 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
Nested Classes Modifier and Type Class Description static class
CmsSiteSelectorOption.Type
Enum for indicating the site type.
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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 typesiteRoot
- the site rootisCurrentSite
- true if this is the current sitemessage
- 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
-
-