Package net.sf.basedb.core.data
Class RoleKeyData
java.lang.Object
net.sf.basedb.core.data.BasicData
net.sf.basedb.core.data.KeyData
net.sf.basedb.core.data.RoleKeyData
- All Implemented Interfaces:
IdentifiableData
This class holds information access privileges for roles.
- Version:
- 2.0
- Author:
- Nicklas
- See Also:
- Last modified
- $Date: 2011-10-21 13:15:41 +0200 (fr, 21 okt 2011) $
- Hibernate: subclass
- discriminator-value="3"
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the description for the item.int
Get the code for the type of items this role key applies to.getName()
Get the name of the role key.getRoles()
Get the map that manages which roles that have permissions for this key.void
setDescription
(String description) void
setItemType
(int itemType) void
(package private) void
Methods inherited from class net.sf.basedb.core.data.BasicData
equals, getId, getVersion, hashCode, setId, setVersion, toString
-
Field Details
-
name
-
description
-
itemType
private int itemType -
roles
-
-
Constructor Details
-
RoleKeyData
public RoleKeyData()
-
-
Method Details
-
getName
Get the name of the role key.- Hibernate: property
- type="string"
- Hibernate: column
- name="`name`" type="string" length="255" not-null="false" index="name_idx"
-
setName
-
getDescription
Get the description for the item.- Returns:
- A
String
with a description of the item - Hibernate: property
- column="`description`" type="text" not-null="false"
-
setDescription
-
getItemType
public int getItemType()Get the code for the type of items this role key applies to. See theItem
class for a list of constants.- Hibernate: property
- column="`item_type`" type="int" not-null="false" update="false"
-
setItemType
public void setItemType(int itemType) -
getRoles
Get the map that manages which roles that have permissions for this key.- Hibernate: map
- table="`RoleKeys`" lazy="true"
- Hibernate: index-many-to-many
- column="`role_id`" class="net.sf.basedb.core.data.RoleData"
- Hibernate: collection-key
- column="`key_id`"
- Hibernate: collection-element
- column="`permission`" type="int" not-null="true"
-
setRoles
-