2.17.2: 2011-06-17

net.sf.basedb.core.data
Class ItemKeyData

java.lang.Object
  extended by net.sf.basedb.core.data.BasicData
      extended by net.sf.basedb.core.data.KeyData
          extended by net.sf.basedb.core.data.ItemKeyData
All Implemented Interfaces:
IdentifiableData

public class ItemKeyData
extends KeyData

This class holds information access privileges for users and groups.

Version:
2.0
Author:
Nicklas
See Also:
ItemKey, Authentication overview
Last modified
$Date: 2009-04-06 14:52:39 +0200 (Mon, 06 Apr 2009) $
Hibernate: subclass
discriminator-value="1"

Field Summary
private  Map<GroupData,Integer> groups
           
private  Map<UserData,Integer> users
           
 
Constructor Summary
ItemKeyData()
           
 
Method Summary
 Map<GroupData,Integer> getGroups()
          Get the map that manages which groups that have permissions for this key.
 Map<UserData,Integer> getUsers()
          Get the map that manages which users that have permissions for this key.
(package private)  void setGroups(Map<GroupData,Integer> groups)
           
(package private)  void setUsers(Map<UserData,Integer> 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
 

Field Detail

users

private Map<UserData,Integer> users

groups

private Map<GroupData,Integer> groups
Constructor Detail

ItemKeyData

public ItemKeyData()
Method Detail

getUsers

public Map<UserData,Integer> getUsers()
Get the map that manages which users that have permissions for this key.

Hibernate: map
table="`UserKeys`" lazy="true"
Hibernate: index-many-to-many
column="`user_id`" class="net.sf.basedb.core.data.UserData"
Hibernate: collection-key
column="`key_id`"
Hibernate: collection-element
column="`permission`" type="int" not-null="true"

setUsers

void setUsers(Map<UserData,Integer> users)

getGroups

public Map<GroupData,Integer> getGroups()
Get the map that manages which groups that have permissions for this key.

Hibernate: map
table="`GroupKeys`" lazy="true"
Hibernate: index-many-to-many
column="`group_id`" class="net.sf.basedb.core.data.GroupData"
Hibernate: collection-key
column="`key_id`"
Hibernate: collection-element
column="`permission`" type="int" not-null="true"

setGroups

void setGroups(Map<GroupData,Integer> groups)

2.17.2: 2011-06-17