edu.jhu.tmaj.client.image.data
Class UserPermission

java.lang.Object
  extended by edu.jhu.tmaj.client.image.data.UserPermission
All Implemented Interfaces:
java.io.Serializable

public final class UserPermission
extends java.lang.Object
implements java.io.Serializable

A UserID and a PermissionType (READ OR WRITE).

See Also:
Serialized Form

Nested Class Summary
static class UserPermission.PermissionType
          Either READ or WRITE.
 
Constructor Summary
UserPermission(int userID, char permission)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 char getPermissionChar()
           
 UserPermission.PermissionType getPermissionType()
           
 int getUserID()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserPermission

public UserPermission(int userID,
                      char permission)
Method Detail

getUserID

public int getUserID()

getPermissionType

public UserPermission.PermissionType getPermissionType()

getPermissionChar

public char getPermissionChar()

equals

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

toString

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