org.musicontroller.security
Class Authority

java.lang.Object
  extended by org.musicontroller.security.Authority
All Implemented Interfaces:
java.io.Serializable, org.acegisecurity.GrantedAuthority

public class Authority
extends java.lang.Object
implements org.acegisecurity.GrantedAuthority, java.io.Serializable

A Authority is the right to perform a certain task in an application. Authorities are specified by a String giving a short description of the task.

Version:
$Id: Authority.java,v 1.1 2010/03/16 18:55:42 varienaja Exp $
Author:
Varienaja
See Also:
Serialized Form

Constructor Summary
Authority()
          Creates a new Authority-object with an empty description.
 
Method Summary
 java.lang.String getAuthority()
           
 java.lang.String getDescription()
           
 int getId()
           
 void setDescription(java.lang.String description)
          Sets the descrition of this Authority.
 void setId(int id)
          Set the identifier of this Authority
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Authority

public Authority()
Creates a new Authority-object with an empty description.

Method Detail

setId

public void setId(int id)
Set the identifier of this Authority

Parameters:
id - an integer.

getId

public int getId()
Returns:
the identifier of this Authority

getAuthority

public java.lang.String getAuthority()
Specified by:
getAuthority in interface org.acegisecurity.GrantedAuthority

setDescription

public void setDescription(java.lang.String description)
Sets the descrition of this Authority. Use cryptic names like 'CAN_CLOSE' or 'ROLE_COMMITTER' ;-)

Parameters:
description - The description of this Authority

getDescription

public java.lang.String getDescription()
Returns:
The description of this Authority.
See Also:
getAuthority()


Copyright © 2010 A.J.V.. All Rights Reserved.