Last update: 2011-06-23

org.proteios.core.data
Class RoleKeyData

java.lang.Object
  extended by org.proteios.core.data.BasicData
      extended by org.proteios.core.data.KeyData
          extended by org.proteios.core.data.RoleKeyData
All Implemented Interfaces:
IdentifiableData

public class RoleKeyData
extends KeyData

This class holds information access privileges for roles.

Version:
2.0
Author:
Nicklas
See Also:
RoleKey, Authentication overview
Last modified
$Date: 2009-04-09 08:48:11 +0200 (Thu, 09 Apr 2009) $
Hibernate: subclass
discriminator-value="3"

Constructor Summary
RoleKeyData()
           
 
Method Summary
 String getDescription()
          Get the description for the item.
 int getItemType()
          Get the code for the type of items this role key applies to.
 String getName()
          Get the name of the role key.
 Map<RoleData,Integer> getRoles()
          Get the map that manages which roles that have permissions for this key.
 void setDescription(String description)
           
 void setItemType(int itemType)
           
 void setName(String name)
           
 
Methods inherited from class org.proteios.core.data.BasicData
equals, getId, getVersion, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RoleKeyData

public RoleKeyData()
Method Detail

getName

public String 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

public void setName(String name)

getDescription

public String 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

public void setDescription(String description)

getItemType

public int getItemType()
Get the code for the type of items this role key applies to. See the Item 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

public Map<RoleData,Integer> 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="org.proteios.core.data.RoleData"
Hibernate: collection-key
column="`key_id`"
Hibernate: collection-element
column="`permission`" type="int" not-null="true"

Last update: 2011-06-23