org.norther.tammi.root.realm
Class PersistentUserRole

java.lang.Object
  extended by org.norther.tammi.root.realm.PersistentUserRole
All Implemented Interfaces:
Serializable

public class PersistentUserRole
extends Object
implements Serializable

The relation class between a persistent user and its roles.

Author:
Ilkka Priha
See Also:
Serialized Form

Nested Class Summary
static class PersistentUserRole.Id
          An inner class for a composite id.
 
Constructor Summary
PersistentUserRole()
          The default constructor.
PersistentUserRole(Object uid, Object rid)
          Constructs a new relation.
 
Method Summary
 PersistentUserRole.Id getId()
          Gets the composite id.
 Object getRoleId()
          Gets the role id.
 Object getUserId()
          Gets the user id.
 void setId(PersistentUserRole.Id id)
          Sets the composite id.
 void setRoleId(Object id)
          Sets the role id.
 void setUserId(Object id)
          Sets the user id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistentUserRole

public PersistentUserRole()
The default constructor.


PersistentUserRole

public PersistentUserRole(Object uid,
                          Object rid)
Constructs a new relation.

Parameters:
uid - the user id.
rid - the role id.
Method Detail

getId

public PersistentUserRole.Id getId()
Gets the composite id.

Returns:
the composite id.

setId

public void setId(PersistentUserRole.Id id)
Sets the composite id.

Parameters:
id - the composite id.

getUserId

public Object getUserId()
Gets the user id.

Returns:
the user id.

setUserId

public void setUserId(Object id)
Sets the user id.

Parameters:
id - the user id.

getRoleId

public Object getRoleId()
Gets the role id.

Returns:
the role id.

setRoleId

public void setRoleId(Object id)
Sets the role id.

Parameters:
id - the user id.


Copyright © 2004 The Norther Organization. All rights reserved.