public class RoleData extends BasicData implements NameableData, RemovableData, SystemData, RegisteredData
Role
,
Developer documentation: User authenticationModifier and Type | Field and Description |
---|---|
private java.lang.String |
description |
private java.util.Date |
entryDate |
private boolean |
isDefault |
private java.util.Set<RoleKeyData> |
keys |
private java.lang.String |
name |
private boolean |
removed |
private java.lang.String |
systemId |
private java.util.Set<UserData> |
users |
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
MAX_SYSTEM_ID_LENGTH
Constructor and Description |
---|
RoleData() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Get the description for the item.
|
java.util.Date |
getEntryDate()
Get the date this item was added to the database.
|
(package private) java.util.Set<RoleKeyData> |
getKeys()
This is the inverse end.
|
java.lang.String |
getName()
Get the name of the item.
|
java.lang.String |
getSystemId()
Get the system id for the item.
|
java.util.Set<UserData> |
getUsers()
Get the set that manages which users are members of this role.
|
boolean |
isDefault()
If this role should be assigned to new users by default or not.
|
boolean |
isRemoved()
Check if the removed flag is set for this item.
|
void |
setDefault(boolean isDefault) |
void |
setDescription(java.lang.String description)
Set the description for the item.
|
void |
setEntryDate(java.util.Date entryDate) |
(package private) void |
setKeys(java.util.Set<RoleKeyData> keys) |
void |
setName(java.lang.String name)
Set the name of the item.
|
void |
setRemoved(boolean removed)
Set the removed flag for this item.
|
void |
setSystemId(java.lang.String systemId) |
(package private) void |
setUsers(java.util.Set<UserData> users) |
equals, getId, getVersion, hashCode, setId, setVersion, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getVersion
private java.lang.String name
private java.lang.String description
private boolean removed
private java.lang.String systemId
private java.util.Date entryDate
private java.util.Set<UserData> users
private java.util.Set<RoleKeyData> keys
private boolean isDefault
public java.lang.String getName()
NameableData
getName
in interface NameableData
String
with the name of the itempublic void setName(java.lang.String name)
NameableData
MAX_NAME_LENGTH
constant.setName
in interface NameableData
name
- The new name for the itempublic java.lang.String getDescription()
NameableData
getDescription
in interface NameableData
String
with a description of the itempublic void setDescription(java.lang.String description)
NameableData
MAX_DESCRIPTION_LENGTH
constant.setDescription
in interface NameableData
description
- The new description for the itempublic boolean isRemoved()
RemovableData
isRemoved
in interface RemovableData
public void setRemoved(boolean removed)
RemovableData
setRemoved
in interface RemovableData
removed
- TRUE if the item should be flagged as removed,
FALSE otherwisepublic java.lang.String getSystemId()
SystemData
getSystemId
in interface SystemData
public void setSystemId(java.lang.String systemId)
public java.util.Date getEntryDate()
RegisteredData
getEntryDate
in interface RegisteredData
public void setEntryDate(java.util.Date entryDate)
public java.util.Set<UserData> getUsers()
void setUsers(java.util.Set<UserData> users)
java.util.Set<RoleKeyData> getKeys()
RoleKeyData.getRoles()
void setKeys(java.util.Set<RoleKeyData> keys)
public boolean isDefault()
public void setDefault(boolean isDefault)