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 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
Modifier and TypeClassDescriptionstatic enum
Enum for indicating the site type. -
Constructor Summary
ConstructorDescriptionDefault constructor.CmsSiteSelectorOption
(CmsSiteSelectorOption.Type type, String siteRoot, boolean isCurrentSite, String message) Creates a new site selector option. -
Method Summary
Modifier and TypeMethodDescriptionGets the message to display for this site.Gets the site root for the site.getType()
Gets the type of the site.boolean
Returns true if this site is the current site.
-
Constructor Details
-
CmsSiteSelectorOption
public CmsSiteSelectorOption()Default constructor.
-
-
Method Details
-
getMessage
Gets the message to display for this site.- Returns:
- the message to display for this site
-
getSiteRoot
Gets the site root for the site.- Returns:
- the site root
-
getType
Gets the type of the site.- Returns:
- the type of the site
-
isCurrentSite
Returns true if this site is the current site.- Returns:
- true if this is the current site
-