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 java.lang.Object implements com.google.gwt.user.client.rpc.IsSerializable
Bean representing a link to a different locale variant.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CmsLocaleLinkBean()
Default constructor for serialization.protected
CmsLocaleLinkBean(java.lang.String error, java.lang.String link)
Creates a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CmsLocaleLinkBean
error(java.lang.String errorMsg)
Creates a new link bean with an error message.java.lang.String
getError()
Gets the error message.java.lang.String
getLink()
Gets the link.static CmsLocaleLinkBean
link(java.lang.String link)
Creates a new link bean with a link.
-
-
-
Constructor Detail
-
CmsLocaleLinkBean
protected CmsLocaleLinkBean()
Default constructor for serialization.
-
CmsLocaleLinkBean
protected CmsLocaleLinkBean(java.lang.String error, java.lang.String link)
Creates a new instance.- Parameters:
error
- the errorlink
- the link
-
-
Method Detail
-
error
public static CmsLocaleLinkBean error(java.lang.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(java.lang.String link)
Creates a new link bean with a link.- Parameters:
link
- the link- Returns:
- the link bean
-
getError
public java.lang.String getError()
Gets the error message.- Returns:
- the error message
-
getLink
public java.lang.String getLink()
Gets the link.- Returns:
- the link
-
-