Package org.opencms.gwt.shared
Class CmsBrokenLinkBean
- java.lang.Object
-
- org.opencms.gwt.shared.CmsBrokenLinkBean
-
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
public class CmsBrokenLinkBean extends java.lang.Object implements com.google.gwt.user.client.rpc.IsSerializable
A bean which represents either the source or the target of a broken link.- Since:
- 8.0.0
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CmsBrokenLinkBean()
Hidden default constructor.CmsBrokenLinkBean(CmsUUID structureId, java.lang.String title, java.lang.String subtitle, java.lang.String type, java.lang.String icon)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChild(CmsBrokenLinkBean bean)
Adds a child bean to this bean.void
addInfo(java.lang.String name, java.lang.String value)
Adds optional page information to the broken link bean.boolean
equals(java.lang.Object obj)
java.util.List<CmsBrokenLinkBean>
getChildren()
Returns the child beans of this bean.java.lang.String
getIcon()
Gets the icon CSS classes.java.util.Map<java.lang.String,java.lang.String>
getInfo()
Returns the additional link info.CmsUUID
getStructureId()
Gets the structure id.java.lang.String
getSubTitle()
Returns the sub-title of the bean.java.lang.String
getTitle()
Returns the title of the bean.java.lang.String
getType()
Returns the resource type.int
hashCode()
-
-
-
Constructor Detail
-
CmsBrokenLinkBean
public CmsBrokenLinkBean(CmsUUID structureId, java.lang.String title, java.lang.String subtitle, java.lang.String type, java.lang.String icon)
Constructor.- Parameters:
structureId
- the structure idtitle
- the titlesubtitle
- the subtitletype
- the resource typeicon
- the
-
CmsBrokenLinkBean
protected CmsBrokenLinkBean()
Hidden default constructor.
-
-
Method Detail
-
addChild
public void addChild(CmsBrokenLinkBean bean)
Adds a child bean to this bean.The child usually represents a link target.
- Parameters:
bean
- the bean to add as a sub-bean
-
addInfo
public void addInfo(java.lang.String name, java.lang.String value)
Adds optional page information to the broken link bean.- Parameters:
name
- the info namevalue
- the info
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
- See Also:
Object.equals(java.lang.Object)
-
getChildren
public java.util.List<CmsBrokenLinkBean> getChildren()
Returns the child beans of this bean.- Returns:
- the list of child beans
-
getIcon
public java.lang.String getIcon()
Gets the icon CSS classes.- Returns:
- the icon CSS classes
-
getInfo
public java.util.Map<java.lang.String,java.lang.String> getInfo()
Returns the additional link info.- Returns:
- the broken link info
-
getStructureId
public CmsUUID getStructureId()
Gets the structure id.- Returns:
- the structure id
-
getSubTitle
public java.lang.String getSubTitle()
Returns the sub-title of the bean.- Returns:
- the sub-title
-
getTitle
public java.lang.String getTitle()
Returns the title of the bean.- Returns:
- the title of the bean
-
getType
public java.lang.String getType()
Returns the resource type.- Returns:
- the resource type
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
- See Also:
Object.hashCode()
-
-