Class AbstractRoleBean
- java.lang.Object
-
- com.bloomreach.xm.repository.security.AbstractRoleBean
-
- All Implemented Interfaces:
AbstractRole
- Direct Known Subclasses:
RoleBean
,UserRoleBean
public abstract class AbstractRoleBean extends Object implements AbstractRole
Simple (abstract) POJO bean implementation ofAbstractRole
-
-
Constructor Summary
Constructors Constructor Description AbstractRoleBean()
AbstractRoleBean(AbstractRole role)
AbstractRoleBean(String name, String description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
The description of the roleString
getName()
The name of the roleHashSet<String>
getRoles()
The same of role names which are implied (included or merged) with this role.boolean
isSystem()
Indicator if the role is used or reserved for system purposes.void
setDescription(String description)
void
setName(String name)
void
setSystem(boolean system)
-
-
-
Constructor Detail
-
AbstractRoleBean
public AbstractRoleBean()
-
AbstractRoleBean
public AbstractRoleBean(AbstractRole role)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:AbstractRole
The name of the role- Specified by:
getName
in interfaceAbstractRole
- Returns:
- The name of the role
-
setName
public void setName(String name)
-
getDescription
public String getDescription()
Description copied from interface:AbstractRole
The description of the role- Specified by:
getDescription
in interfaceAbstractRole
- Returns:
- the description of the role
-
setDescription
public void setDescription(String description)
-
isSystem
public boolean isSystem()
Description copied from interface:AbstractRole
Indicator if the role is used or reserved for system purposes.- Specified by:
isSystem
in interfaceAbstractRole
- Returns:
- true if this is a system role, false otherwise
-
setSystem
public void setSystem(boolean system)
-
getRoles
public HashSet<String> getRoles()
Description copied from interface:AbstractRole
The same of role names which are implied (included or merged) with this role.- Specified by:
getRoles
in interfaceAbstractRole
- Returns:
- the set of other role names to implied by this role.
-
-