za.org.coefficient.authentication
Class Role

java.lang.Object
  extended by za.org.coefficient.authentication.Role
All Implemented Interfaces:
java.io.Serializable

public class Role
extends java.lang.Object
implements java.io.Serializable

Title: Project Engine Description: Simple role object to describe user roles Copyright: Copyright (c) 2003 Company: icomtek CSIR

Version:
1.0
Author:
Krishendran Rangappa
See Also:
Serialized Form

Field Summary
private  java.lang.String description
           
private  java.lang.Long id
           
private  long roleValue
           
 
Constructor Summary
Role()
           
Role(long roleValue, java.lang.String description)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 java.lang.String getDescription()
          Gets the value of description
 java.lang.Long getId()
           
 long getRoleValue()
          Gets the value of roleValue
 void setDescription(java.lang.String desc)
           
 void setId(java.lang.Long id)
           
 void setRoleValue(long roleValue)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

private java.lang.Long id

description

private java.lang.String description

roleValue

private long roleValue
Constructor Detail

Role

public Role()

Role

public Role(long roleValue,
            java.lang.String description)
Method Detail

setDescription

public void setDescription(java.lang.String desc)

getDescription

public java.lang.String getDescription()
Gets the value of description

Returns:
the value of description

setId

public void setId(java.lang.Long id)

getId

public java.lang.Long getId()

setRoleValue

public void setRoleValue(long roleValue)

getRoleValue

public long getRoleValue()
Gets the value of roleValue

Returns:
the value of roleValue

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright CSIR. All Rights Reserved.