|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tranche.commons.Debuggable
org.tranche.users.User
public class User
Represents a Tranche user.
| Field Summary | |
|---|---|
static int |
ALL_PRIVILEGES
Flag to allow user to do everything, like an admin. |
static int |
CAN_DELETE_DATA
Flag for whether the User can delete data. |
static int |
CAN_DELETE_META_DATA
Flag for whether the User can delete meta data. |
static int |
CAN_GET_CONFIGURATION
Flag for whether the User can get configuration. |
static int |
CAN_SET_CONFIGURATION
Flag for whether the User can set configuration. |
static int |
CAN_SET_DATA
Flag for whether the User can set data. |
static int |
CAN_SET_META_DATA
Flag for whether the User can set meta data. |
static int |
NO_PRIVILEGES
User can do nothing. |
static int |
VERSION_ONE
Flag for User version 1.0. |
| Constructor Summary | |
|---|---|
User()
|
|
| Method Summary | |
|---|---|
boolean |
canDeleteData()
The permission flag for whether this user can delete data. |
boolean |
canDeleteMetaData()
The permission flag for whether this user can delete meta data. |
boolean |
canGetConfiguration()
The permission flag for whether this user can get configuration. |
boolean |
canSetConfiguration()
The permission flag for whether this user can set configuration. |
boolean |
canSetData()
The permission flag for whether this user can set data. |
boolean |
canSetMetaData()
The permission flag for whether this user can set meta data. |
int |
compareTo(java.lang.Object o)
Compare the certificates between User objects. |
boolean |
equals(User u)
Compare two user objects. |
java.security.cert.X509Certificate |
getCertificate()
Get the certificate. |
int |
getFlags()
Get the flags. |
boolean |
isVersionOne()
The flag for whether the User object version is 1.0. |
void |
setCertificate(java.security.cert.X509Certificate certificate)
Set the certificate |
void |
setFlags(int flags)
Set the flags. |
| Methods inherited from class org.tranche.commons.Debuggable |
|---|
debugErr, debugErr, debugOut, isDebug, setDebug |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CAN_SET_DATA
Flag for whether the User can set data.
public static final int CAN_SET_META_DATA
Flag for whether the User can set meta data.
public static final int CAN_DELETE_DATA
Flag for whether the User can delete data.
public static final int CAN_DELETE_META_DATA
Flag for whether the User can delete meta data.
public static final int CAN_GET_CONFIGURATION
Flag for whether the User can get configuration.
public static final int CAN_SET_CONFIGURATION
Flag for whether the User can set configuration.
public static final int VERSION_ONE
Flag for User version 1.0.
public static final int ALL_PRIVILEGES
Flag to allow user to do everything, like an admin.
public static final int NO_PRIVILEGES
User can do nothing.
| Constructor Detail |
|---|
public User()
| Method Detail |
|---|
public java.security.cert.X509Certificate getCertificate()
Get the certificate.
public void setCertificate(java.security.cert.X509Certificate certificate)
Set the certificate
certificate - public int getFlags()
Get the flags.
public void setFlags(int flags)
Set the flags.
flags - public boolean canSetData()
The permission flag for whether this user can set data.
public boolean canSetMetaData()
The permission flag for whether this user can set meta data.
public boolean canDeleteData()
The permission flag for whether this user can delete data.
public boolean canDeleteMetaData()
The permission flag for whether this user can delete meta data.
public boolean canGetConfiguration()
The permission flag for whether this user can get configuration.
public boolean canSetConfiguration()
The permission flag for whether this user can set configuration.
public boolean isVersionOne()
The flag for whether the User object version is 1.0.
public int compareTo(java.lang.Object o)
Compare the certificates between User objects.
compareTo in interface java.lang.Comparableo -
public boolean equals(User u)
Compare two user objects. To be equal, they must be the same certificate and have the same permissions.
u -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||