|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectokapi.coreobjects.OkapiRole
public class OkapiRole
Role: Possible roles for a User within an OkapiNexus.
Examples of roles are "Student" or "Learner", "Faculty", "Grader", "TA",
"Administrator", "Guest", "Manager", "Mentor", "Content Developer"
These map to IMS Enterprise Membership Data Object roles and subtypes as
follows:
"Student" or "Learner" = 01
"Faculty", "Grader", "TA" are subtypes of 02
"Administrator" = 07,
"Guest" is subtype of 04
"Manager" = 05
"Mentor" = 06
"Content Developer" = 03
Field Summary | |
---|---|
static OkapiRole |
CONTENT_DEVELOPER
Content Developer contributes content to nexus, otherwise not involved. |
static OkapiRole |
COURSE_ADMINISTRATOR
Class administrator |
protected java.lang.String |
description
description of the entity represented by this object. |
static OkapiRole |
GRADER
Grader of assignments. |
static OkapiRole |
GUEST
Guest: person given access to class but with no other association |
static OkapiRole |
HELP_DESK_STAFF
Help Desk Staff. |
static OkapiRole |
INSTRUCTOR
Instructor for class |
static OkapiRole |
LEARNER
Student auditing class |
protected java.lang.String |
longName
Long-form name for the entity represented by this object. |
static OkapiRole |
MANAGER
Manager: non-instructional staff for nexus. |
static OkapiRole |
MENTOR
Mentor: guest of instructor, contributing to education. |
protected java.lang.String |
name
Short, single word name for the entity represented by this object. |
static OkapiRole |
NULL
No role in class, used for lists of people who had or may in the future have access |
static OkapiRole |
STUDENT
Student in class for credit |
static OkapiRole |
SYSTEM_ADMINISTRATOR
System Administrator for Site. |
static OkapiRole |
TA
Teaching Assistant for class |
Constructor Summary | |
---|---|
OkapiRole()
Create new empty OkapiRole object. |
|
OkapiRole(java.lang.String name,
java.lang.String longName,
java.lang.String description,
java.lang.String imsRoleType,
java.lang.String imsRoleSubType)
Create new fully defined OkapiRole object. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Method equals |
java.lang.String |
getAsXml(java.util.Map options)
Method getAsXml |
java.lang.String |
getAsXml(java.util.Map options,
int indent)
Method getAsXml |
java.lang.String |
getAsXml(java.util.Map options,
java.lang.String tag)
Method getAsXml |
java.lang.String |
getAsXml(java.util.Map options,
java.lang.String tag,
int indent)
Returns an xml representation of this object, with the options defined by the options map, an element of type tag surrounding the xml, and the first line indented indent times. |
java.lang.String |
getDescription()
Method getDescription |
java.lang.String |
getIMSRoleSubType()
Method getIMSRoleSubType |
java.lang.String |
getIMSRoleType()
Method getIMSRoleType |
java.lang.String |
getLongName()
Method getLongName |
java.lang.String |
getName()
Method getName |
static OkapiRole |
getRole(java.lang.String name)
Return Role with this name |
protected int |
getRoleCode()
Return roleCode of this Role |
protected static int |
getRoleCode(java.lang.String name)
Return roleCode of the Role with this name |
void |
setDescription(java.lang.String newDescription)
Method setDescription |
void |
setIMSRoleSubType(java.lang.String imsRoleSubType)
Method setIMSRoleSubType |
void |
setIMSRoleType(java.lang.String imsRoleType)
Method setIMSRoleType |
void |
setLongName(java.lang.String newLongName)
Method setLongName |
void |
setName(java.lang.String newName)
Method setName |
java.lang.String |
toString()
Method toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String name
protected java.lang.String longName
protected java.lang.String description
public static final OkapiRole NULL
public static final OkapiRole STUDENT
public static final OkapiRole LEARNER
public static final OkapiRole INSTRUCTOR
public static final OkapiRole GRADER
public static final OkapiRole TA
public static final OkapiRole COURSE_ADMINISTRATOR
public static final OkapiRole GUEST
public static final OkapiRole MANAGER
public static final OkapiRole MENTOR
public static final OkapiRole CONTENT_DEVELOPER
public static final OkapiRole SYSTEM_ADMINISTRATOR
public static final OkapiRole HELP_DESK_STAFF
Constructor Detail |
---|
public OkapiRole()
public OkapiRole(java.lang.String name, java.lang.String longName, java.lang.String description, java.lang.String imsRoleType, java.lang.String imsRoleSubType)
Method Detail |
---|
protected int getRoleCode()
protected static int getRoleCode(java.lang.String name)
public static OkapiRole getRole(java.lang.String name)
public void setName(java.lang.String newName)
newName
- public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public void setLongName(java.lang.String newLongName)
newLongName
- public java.lang.String getLongName()
public void setDescription(java.lang.String newDescription)
newDescription
- public java.lang.String getDescription()
public void setIMSRoleType(java.lang.String imsRoleType)
imsRoleType
- public java.lang.String getIMSRoleType()
public void setIMSRoleSubType(java.lang.String imsRoleSubType)
imsRoleSubType
- public java.lang.String getIMSRoleSubType()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
-
public java.lang.String getAsXml(java.util.Map options, java.lang.String tag, int indent)
public java.lang.String getAsXml(java.util.Map options, java.lang.String tag)
options
- tag
-
public java.lang.String getAsXml(java.util.Map options, int indent)
options
- indent
-
public java.lang.String getAsXml(java.util.Map options)
options
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |