|
2.9.0: 2008-11-26 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.basedb.core.data.BasicData
net.sf.basedb.core.data.RoleData
public class RoleData
This class holds information about a role.
Role
,
Authentication overviewField Summary | |
---|---|
private String |
description
|
private boolean |
isDefault
|
private Set<RoleKeyData> |
keys
|
private String |
name
|
private boolean |
removed
|
private String |
systemId
|
private Set<UserData> |
users
|
Fields inherited from interface net.sf.basedb.core.data.NameableData |
---|
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH |
Fields inherited from interface net.sf.basedb.core.data.SystemData |
---|
MAX_SYSTEM_ID_LENGTH |
Constructor Summary | |
---|---|
RoleData()
|
Method Summary | |
---|---|
String |
getDescription()
Get the description for the item. |
(package private) Set<RoleKeyData> |
getKeys()
This is the inverse end. |
String |
getName()
Get the name of the 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. |
boolean |
isRemoved()
Check if the removed flag is set for this item. |
void |
setDefault(boolean isDefault)
|
void |
setDescription(String description)
Set the description for the item. |
(package private) void |
setKeys(Set<RoleKeyData> keys)
|
void |
setName(String name)
Set the name of the item. |
void |
setRemoved(boolean removed)
Set the removed flag for this item. |
void |
setSystemId(String systemId)
|
(package private) void |
setUsers(Set<UserData> users)
|
Methods inherited from class net.sf.basedb.core.data.BasicData |
---|
equals, getId, getVersion, hashCode, setId, setVersion, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sf.basedb.core.data.IdentifiableData |
---|
getId, getVersion |
Field Detail |
---|
private String name
private String description
private boolean removed
private String systemId
private Set<UserData> users
private Set<RoleKeyData> keys
private boolean isDefault
Constructor Detail |
---|
public RoleData()
Method Detail |
---|
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 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 String getSystemId()
SystemData
getSystemId
in interface SystemData
public void setSystemId(String systemId)
public Set<UserData> getUsers()
void setUsers(Set<UserData> users)
Set<RoleKeyData> getKeys()
RoleKeyData.getRoles()
void setKeys(Set<RoleKeyData> keys)
public boolean isDefault()
public void setDefault(boolean isDefault)
|
2.9.0: 2008-11-26 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |