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.

  • Constructor Details

    • CmsSiteSelectorOption

      Default constructor.

    • CmsSiteSelectorOption

      public CmsSiteSelectorOption(CmsSiteSelectorOption.Type type, String siteRoot, boolean isCurrentSite, 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 Details

    • getMessage

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

      Returns:
      the message to display for this site
    • getSiteRoot

      public String 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

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

      Returns:
      true if this is the current site