net.sourceforge.jaulp.auth
Class SimpleRole

java.lang.Object
  extended by net.sourceforge.jaulp.auth.SimpleRole
All Implemented Interfaces:
java.io.Serializable, Role

public class SimpleRole
extends java.lang.Object
implements Role

The Class SimpleRole.

Version:
1.0
Author:
Asterios Raptis
See Also:
Serialized Form

Constructor Summary
SimpleRole()
           
 
Method Summary
 java.util.Collection<AccessRight> getAccessRights()
          Gets the access rights.
 java.lang.String getDescription()
          Returns the field description.
 java.lang.String getName()
          Gets the name.
 void setAccessRights(java.util.Collection<AccessRight> permissions)
          Sets the permissions.
 void setDescription(java.lang.String description)
          Sets the field description.
 void setName(java.lang.String name)
          Sets the name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleRole

public SimpleRole()
Method Detail

getAccessRights

public java.util.Collection<AccessRight> getAccessRights()
Gets the access rights.

Specified by:
getAccessRights in interface Role
Returns:
the permissions
See Also:
Role.getAccessRights()

getDescription

public java.lang.String getDescription()
Returns the field description.

Returns:
The field description.

getName

public java.lang.String getName()
Gets the name.

Specified by:
getName in interface Role
Returns:
the name.
See Also:
Role.getName()

setAccessRights

public void setAccessRights(java.util.Collection<AccessRight> permissions)
Sets the permissions.

Specified by:
setAccessRights in interface Role
Parameters:
permissions - the new access rights.
See Also:
Role.setAccessRights(java.util.Collection)

setDescription

public void setDescription(java.lang.String description)
Sets the field description.

Parameters:
description - The description to set

setName

public void setName(java.lang.String name)
Sets the name.

Specified by:
setName in interface Role
Parameters:
name - the new name.
See Also:
Role.setName(java.lang.String)


Copyright © 2010. All Rights Reserved.