|
|||||||||
| Home >> All >> com >> clra >> [ member overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.clra.member
Class MemberRole

java.lang.Objectcom.clra.member.MemberRole
- All Implemented Interfaces:
- java.io.Serializable
- public class MemberRole
- extends java.lang.Object
- implements java.io.Serializable
- extends java.lang.Object
Encapsulates information about the role of a member within the club. A member's roles determine his or her access rights. For example, a treasurer or a member-manager may update the account information of other members, but they can not create or edit rowing sessions. Conversely, a captain or a coach may create and edit rowing sessions, but they can not update the account information of other members. If a member has no roles, the member has no access rights to the website.
- Version:
- $Revision: 1.8 $ $Date: 2003/03/01 00:45:14 $
| Field Summary | |
static MemberRole |
CAPTAIN
The role of a member who is in charge of club operations |
static MemberRole |
COACH
The role of a member who can assign boatings |
static MemberRole |
MEMBER
The default role for members |
static MemberRole |
MEMBERMGR
The role of a member who assigns roles to other members |
private java.lang.String |
role
The role of the Member |
static java.lang.String |
ROLE_CAPTAIN
Designates a member who is in charge of club operations |
static java.lang.String |
ROLE_COACH
Designates a member who can assign boatings |
static java.lang.String |
ROLE_MEMBER
Designates the default role for active members |
static java.lang.String |
ROLE_MEMBERMGR
Designates a member who assigns roles to other members |
static java.lang.String |
ROLE_SESSIONMGR
Designates a member who takes attendance |
static java.lang.String |
ROLE_TREASURER
Designates a member who is in charge of invoicing |
private java.lang.String |
roleGroup
The JAAS-related group of the role |
static java.lang.String |
ROLEGROUP_ROLES
The default group for member roles |
static MemberRole |
SESSIONMGR
The role of a member who takes attendance |
static MemberRole |
TREASURER
The role of a member who is in charge of invoicing |
| Constructor Summary | |
MemberRole(java.lang.String role)
Creates a role in the default role group |
|
MemberRole(java.lang.String role,
java.lang.String roleGroup)
Creates a role in the specified role group |
|
| Method Summary | |
static java.lang.String[] |
ALLOWED_ROLEGROUPS()
|
static java.lang.String[] |
ALLOWED_ROLES()
|
boolean |
equals(java.lang.Object o)
For now, string comparison assume the default group |
java.lang.String |
getRole()
|
java.lang.String |
getRoleGroup()
|
int |
hashCode()
Get a value that represents this Object, as uniquely as possible within the confines of an int. |
java.lang.String |
toString()
Convert this Object to a human-readable String. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
ROLEGROUP_ROLES
public static final java.lang.String ROLEGROUP_ROLES
- The default group for member roles
- See Also:
- Constant Field Values
ROLE_MEMBER
public static final java.lang.String ROLE_MEMBER
- Designates the default role for active members
- See Also:
- Constant Field Values
ROLE_COACH
public static final java.lang.String ROLE_COACH
- Designates a member who can assign boatings
- See Also:
- Constant Field Values
ROLE_CAPTAIN
public static final java.lang.String ROLE_CAPTAIN
- Designates a member who is in charge of club operations
- See Also:
- Constant Field Values
ROLE_SESSIONMGR
public static final java.lang.String ROLE_SESSIONMGR
- Designates a member who takes attendance
- See Also:
- Constant Field Values
ROLE_TREASURER
public static final java.lang.String ROLE_TREASURER
- Designates a member who is in charge of invoicing
- See Also:
- Constant Field Values
ROLE_MEMBERMGR
public static final java.lang.String ROLE_MEMBERMGR
- Designates a member who assigns roles to other members
- See Also:
- Constant Field Values
MEMBER
public static final MemberRole MEMBER
- The default role for members
COACH
public static final MemberRole COACH
- The role of a member who can assign boatings
CAPTAIN
public static final MemberRole CAPTAIN
- The role of a member who is in charge of club operations
SESSIONMGR
public static final MemberRole SESSIONMGR
- The role of a member who takes attendance
TREASURER
public static final MemberRole TREASURER
- The role of a member who is in charge of invoicing
MEMBERMGR
public static final MemberRole MEMBERMGR
- The role of a member who assigns roles to other members
role
private final java.lang.String role
- The role of the Member
roleGroup
private final java.lang.String roleGroup
- The JAAS-related group of the role
| Constructor Detail |
MemberRole
public MemberRole(java.lang.String role)
- Creates a role in the default role group
MemberRole
public MemberRole(java.lang.String role, java.lang.String roleGroup)
- Creates a role in the specified role group
| Method Detail |
ALLOWED_ROLES
public static final java.lang.String[] ALLOWED_ROLES()
ALLOWED_ROLEGROUPS
public static final java.lang.String[] ALLOWED_ROLEGROUPS()
getRole
public java.lang.String getRole()
getRoleGroup
public java.lang.String getRoleGroup()
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
equals
public boolean equals(java.lang.Object o)
- For now, string comparison assume the default group
hashCode
public int hashCode()
- Description copied from class:
java.lang.Object - Get a value that represents this Object, as uniquely as
possible within the confines of an int.
There are some requirements on this method which subclasses must follow:
- Semantic equality implies identical hashcodes. In other
words, if
a.equals(b)is true, thena.hashCode() == b.hashCode()must be as well. However, the reverse is not necessarily true, and two objects may have the same hashcode without being equal. - It must be consistent. Whichever value o.hashCode() returns on the first invocation must be the value returned on all later invocations as long as the object exists. Notice, however, that the result of hashCode may change between separate executions of a Virtual Machine, because it is not invoked on the same object.
Notice that since
hashCodeis used in java.util.Hashtable and other hashing classes, a poor implementation will degrade the performance of hashing (so don't blindly implement it as returning a constant!). Also, if calculating the hash is time-consuming, a class may consider caching the results.The default implementation returns
System.identityHashCode(this) - Semantic equality implies identical hashcodes. In other
words, if
|
|||||||||
| Home >> All >> com >> clra >> [ member overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.clra.member.MemberRole