public class RoleData extends BasicData implements NameableData, RemovableData, SystemData, RegisteredData
Role
,
Developer documentation: User authenticationModifier and Type | Field and Description |
---|---|
private String |
description |
private Date |
entryDate |
private boolean |
isDefault |
private Set<RoleKeyData> |
keys |
private String |
name |
private Integer |
removedBy |
private String |
systemId |
private Set<UserData> |
users |
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
MAX_SYSTEM_ID_LENGTH
Constructor and Description |
---|
RoleData() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Get the description for the item.
|
Date |
getEntryDate()
Get the date this item was added to the database.
|
(package private) Set<RoleKeyData> |
getKeys()
This is the inverse end.
|
String |
getName()
Get the name of the item.
|
Integer |
getRemovedBy()
Get the ID of the user that removed this item.
|
String |
getSystemId()
Get the system id for the item.
|
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.
|
void |
setDefault(boolean isDefault) |
void |
setDescription(String description)
Set the description for the item.
|
void |
setEntryDate(Date entryDate) |
(package private) void |
setKeys(Set<RoleKeyData> keys) |
void |
setName(String name)
Set the name of the item.
|
void |
setRemovedBy(Integer removedBy)
Set the ID of the user that removed this item or null
to restore the item.
|
void |
setSystemId(String systemId) |
(package private) void |
setUsers(Set<UserData> users) |
equals, getId, getVersion, hashCode, setId, setVersion, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getVersion
private String name
private String description
private Integer removedBy
private String systemId
private Date entryDate
private Set<RoleKeyData> keys
private boolean isDefault
public String getName()
NameableData
getName
in interface NameableData
String
with the name of the itempublic void setName(String name)
NameableData
MAX_NAME_LENGTH
constant.setName
in interface NameableData
name
- The new name for the itempublic String getDescription()
NameableData
getDescription
in interface NameableData
String
with a description of the itempublic void setDescription(String description)
NameableData
MAX_DESCRIPTION_LENGTH
constant.setDescription
in interface NameableData
description
- The new description for the itempublic Integer getRemovedBy()
RemovableData
getRemovedBy
in interface RemovableData
public void setRemovedBy(Integer removedBy)
RemovableData
setRemovedBy
in interface RemovableData
public String getSystemId()
SystemData
getSystemId
in interface SystemData
public void setSystemId(String systemId)
public Date getEntryDate()
RegisteredData
getEntryDate
in interface RegisteredData
public void setEntryDate(Date entryDate)
public Set<UserData> getUsers()
Set<RoleKeyData> getKeys()
RoleKeyData.getRoles()
void setKeys(Set<RoleKeyData> keys)
public boolean isDefault()
public void setDefault(boolean isDefault)