org.ikasan.framework.security.model
Class Authority

java.lang.Object
  extended by org.ikasan.framework.security.model.Authority
All Implemented Interfaces:
Serializable, Comparable, org.springframework.security.GrantedAuthority

public class Authority
extends Object
implements org.springframework.security.GrantedAuthority

Implementation of GrantedAuthority adding a description field and identity field suitable for ORM

Author:
Ikasan Development Team
See Also:
Serialized Form

Constructor Summary
Authority(String authority)
          Constructor
Authority(String authority, String description)
          Constructor
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object other)
           
 String getAuthority()
           
 String getDescription()
          Accessor method for description
 Long getId()
          Accessor method for id
 int hashCode()
           
 void setAuthority(String authority)
          Setter method for Authority
 void setDescription(String description)
          Setter method for description
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Authority

public Authority(String authority)
Constructor

Parameters:
authority -

Authority

public Authority(String authority,
                 String description)
Constructor

Parameters:
authority -
description -
Method Detail

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

equals

public boolean equals(Object other)
Overrides:
equals in class Object

getAuthority

public String getAuthority()
Specified by:
getAuthority in interface org.springframework.security.GrantedAuthority

getDescription

public String getDescription()
Accessor method for description

Returns:
description

hashCode

public int hashCode()
Overrides:
hashCode in class Object

setAuthority

public void setAuthority(String authority)
Setter method for Authority

Parameters:
authority -

setDescription

public void setDescription(String description)
Setter method for description

Parameters:
description -

getId

public Long getId()
Accessor method for id

Returns:
id

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007-2012 Ikasan. All Rights Reserved.