org.codehaus.plexus.security.authorization.rbac.jdo.v0_9_0
Class JdoUserAssignment

java.lang.Object
  extended by org.codehaus.plexus.security.rbac.AbstractUserAssignment
      extended by org.codehaus.plexus.security.authorization.rbac.jdo.v0_9_0.JdoUserAssignment
All Implemented Interfaces:
Serializable, org.codehaus.plexus.security.rbac.UserAssignment

public class JdoUserAssignment
extends org.codehaus.plexus.security.rbac.AbstractUserAssignment
implements org.codehaus.plexus.security.rbac.UserAssignment, Serializable

binding of a principal to a role.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.codehaus.plexus.security.rbac.UserAssignment
ROLE
 
Constructor Summary
JdoUserAssignment()
           
 
Method Summary
 boolean equals(Object other)
          Method equals.
 String getPrincipal()
          Get the principal field.
 List getRoleNames()
          Method getRoleNames.
 Date getTimestamp()
          Get the timestamp field.
 int hashCode()
          Method hashCode.
 boolean isPermanent()
          Get true if this object is permanent.
 void setPermanent(boolean permanent)
          Set true if this object is permanent.
 void setPrincipal(String principal)
          Set the principal field.
 void setRoleNames(List roleNames)
          Set the roleNames field.
 void setTimestamp(Date timestamp)
          Set the timestamp field.
 String toString()
          Method toString.
 
Methods inherited from class org.codehaus.plexus.security.rbac.AbstractUserAssignment
addRoleName, addRoleName, removeRoleName, removeRoleName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.codehaus.plexus.security.rbac.UserAssignment
addRoleName, addRoleName, removeRoleName, removeRoleName
 

Constructor Detail

JdoUserAssignment

public JdoUserAssignment()
Method Detail

equals

public boolean equals(Object other)
Method equals.

Overrides:
equals in class Object
Parameters:
other -
Returns:
boolean

getPrincipal

public String getPrincipal()
Get the principal field.

Specified by:
getPrincipal in interface org.codehaus.plexus.security.rbac.UserAssignment
Returns:
String

getRoleNames

public List getRoleNames()
Method getRoleNames.

Specified by:
getRoleNames in interface org.codehaus.plexus.security.rbac.UserAssignment
Returns:
List

getTimestamp

public Date getTimestamp()
Get the timestamp field.

Returns:
Date

hashCode

public int hashCode()
Method hashCode.

Overrides:
hashCode in class Object
Returns:
int

isPermanent

public boolean isPermanent()
Get true if this object is permanent.

Specified by:
isPermanent in interface org.codehaus.plexus.security.rbac.UserAssignment
Returns:
boolean

setPermanent

public void setPermanent(boolean permanent)
Set true if this object is permanent.

Specified by:
setPermanent in interface org.codehaus.plexus.security.rbac.UserAssignment
Parameters:
permanent -

setPrincipal

public void setPrincipal(String principal)
Set the principal field.

Specified by:
setPrincipal in interface org.codehaus.plexus.security.rbac.UserAssignment
Parameters:
principal -

setRoleNames

public void setRoleNames(List roleNames)
Set the roleNames field.

Specified by:
setRoleNames in interface org.codehaus.plexus.security.rbac.UserAssignment
Parameters:
roleNames -

setTimestamp

public void setTimestamp(Date timestamp)
Set the timestamp field.

Parameters:
timestamp -

toString

public String toString()
Method toString.

Overrides:
toString in class Object
Returns:
String


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.