Class CmsLocaleLinkBean

java.lang.Object
org.opencms.ade.containerpage.shared.CmsLocaleLinkBean
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable

public class CmsLocaleLinkBean extends Object implements com.google.gwt.user.client.rpc.IsSerializable
Bean representing a link to a different locale variant.

  • Constructor Details

    • CmsLocaleLinkBean

      protected CmsLocaleLinkBean()
      Default constructor for serialization.

    • CmsLocaleLinkBean

      protected CmsLocaleLinkBean(String error, String link)
      Creates a new instance.

      Parameters:
      error - the error
      link - the link
  • Method Details

    • error

      public static CmsLocaleLinkBean error(String errorMsg)
      Creates a new link bean with an error message.

      Parameters:
      errorMsg - the error message
      Returns:
      the new bean
    • link

      public static CmsLocaleLinkBean link(String link)
      Creates a new link bean with a link.

      Parameters:
      link - the link
      Returns:
      the link bean
    • getError

      public String getError()
      Gets the error message.

      Returns:
      the error message
    • getLink

      public String getLink()
      Gets the link.

      Returns:
      the link