|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.vt.middleware.ed.AbstractDataType
edu.vt.middleware.ed.RoleType
public class RoleType
Role data type planned initially for role-based security, but generic enough for other uses.
| Field Summary | |
|---|---|
static RoleType |
ADMINISTRATOR
Administrator role |
static DataType[] |
ALL_TYPES
all types |
static RoleType |
CONTACT
Contact role |
static RoleType |
MANAGER
Manager role |
static RoleType |
MEMBER
Member role |
private static long |
serialVersionUID
Serialization version marker |
static RoleType |
SPONSOR
Sponsor role |
static RoleType |
VIEWER
Viewer role |
| Fields inherited from class edu.vt.middleware.ed.AbstractDataType |
|---|
HASH_CODE_SEED |
| Constructor Summary | |
|---|---|
protected |
RoleType()
Default constructor. |
protected |
RoleType(String code,
String name)
Creates a RoleType with the supplied code and name. |
| Method Summary | |
|---|---|
static RoleType |
getDataType(String typeCode)
Gets a RoleType object whose typeCode matches the given value. |
String |
getTypeCode()
This returns the type code. |
String |
getTypeName()
This returns the type name. |
| Methods inherited from class edu.vt.middleware.ed.AbstractDataType |
|---|
compareTo, equals, getDataType, hashCode, setTypeCode, setTypeName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final RoleType MEMBER
public static final RoleType VIEWER
public static final RoleType ADMINISTRATOR
public static final RoleType MANAGER
public static final RoleType CONTACT
public static final RoleType SPONSOR
public static final DataType[] ALL_TYPES
private static final long serialVersionUID
| Constructor Detail |
|---|
protected RoleType()
protected RoleType(String code,
String name)
RoleType with the supplied code and name.
code - 3-letter role code.name - Role name.| Method Detail |
|---|
public static RoleType getDataType(String typeCode)
RoleType object whose typeCode matches the given value.
typeCode - The typeCode of the RoleType to fetch.
public String getTypeCode()
getTypeCode in interface DataTypegetTypeCode in class AbstractDataTypeString - codepublic String getTypeName()
getTypeName in interface DataTypegetTypeName in class AbstractDataTypeString - name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||