|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.oscelot.webct.dao.UserVO
The UserVO is a value object that contains details about the user.
Based on com.webct.platform.sdkext.authmoduledata.UserVO
Field Summary | |
static java.lang.String |
ADDRESS_COUNTRY
|
static java.lang.String |
ADDRESS_EXTADD
|
static java.lang.String |
ADDRESS_LOCALITY
|
static java.lang.String |
ADDRESS_PCODE
|
static java.lang.String |
ADDRESS_POBOX
|
static java.lang.String |
ADDRESS_REGION
|
static java.lang.String |
ADDRESS_STREET
|
static java.lang.String |
COURSE_DESIGNER_ROLE
|
static java.lang.String |
COURSE_INSTRUCTOR_ROLE
|
static java.lang.String |
DIVISION_ADMIN_ROLE
|
static java.lang.String |
DIVISION_DESIGNER_ROLE
|
static java.lang.String |
DIVISION_ENROLMENT_MANAGER_ROLE
|
static java.lang.String |
DIVISION_LEARNING_CONTEXT_MANAGER_ROLE
|
static java.lang.String |
DIVISION_REPOSITORY_MANAGER_ROLE
|
static java.lang.String |
DIVISION_TEMPLATE_MANAGER_ROLE
|
static java.lang.String |
DOMAIN_ADMIN_ROLE
|
static java.lang.String |
DOMAIN_DESIGNER_ROLE
|
static java.lang.String |
GROUP_ADMIN_ROLE
|
static java.lang.String |
GROUP_DESIGNER_ROLE
|
static java.lang.String |
GROUP_ENROLMENT_MANAGER_ROLE
|
static java.lang.String |
GROUP_LEARNING_CONTEXT_MANAGER_ROLE
|
static java.lang.String |
GROUP_REPOSITORY_MANAGER_ROLE
|
static java.lang.String |
GROUP_TEMPLATE_MANAGER_ROLE
|
static java.lang.String |
INSTITUTION_ADMIN_ROLE
|
static java.lang.String |
INSTITUTION_DESIGNER_ROLE
|
static java.lang.String |
INSTITUTION_ENROLMENT_MANAGER_ROLE
|
static java.lang.String |
INSTITUTION_LEARNING_CONTEXT_MANAGER_ROLE
|
static java.lang.String |
INSTITUTION_MEMBER_ROLE
|
static java.lang.String |
INSTITUTION_REPOSITORY_MANAGER_ROLE
|
static java.lang.String |
INSTITUTION_TEMPLATE_MANAGER_ROLE
|
static java.lang.String |
INSTITUTION_USER_MANAGER_ROLE
|
static java.lang.String |
PHONE_FAX
|
static java.lang.String |
PHONE_MOBILE
|
static java.lang.String |
PHONE_PAGER
|
static java.lang.String |
PHONE_VOICE1
|
static java.lang.String |
PHONE_VOICE2
|
static java.lang.String |
SECTION_AUDITOR_ROLE
|
static java.lang.String |
SECTION_DESIGNER_ROLE
|
static java.lang.String |
SECTION_INSTRUCTOR_ROLE
|
static java.lang.String |
SECTION_STUDENT_ROLE
|
static java.lang.String |
SECTION_TEACHING_ASSISTANT_ROLE
|
static java.lang.String |
SERVER_ADMIN_ROLE
|
static int |
SQL_WHERE_ADDRESS
|
static int |
SQL_WHERE_CUSTOM
|
static int |
SQL_WHERE_NONE
|
static int |
SQL_WHERE_PHONE
|
static int |
SQL_WHERE_USER
|
Constructor Summary | |
UserVO()
Deprecated. UserVO objects should be created using the
and methods. |
|
UserVO(int demoUser,
java.lang.String firstName,
long institutionId,
long personId,
java.lang.String lastName,
java.lang.String namePrefix,
java.lang.String nameSuffix,
java.lang.String otherName,
java.lang.String sourceId,
java.lang.String sourceName,
int status,
java.lang.String userId,
java.lang.String passwordHash,
java.lang.String email,
java.lang.String userPrimaryKey,
java.util.List userRoles)
Deprecated. UserVO objects should be created using the
and methods. |
Method Summary | |
java.util.Map |
getAddresses()
Get the list of address details associated with the user. |
java.lang.Long |
getBirthday()
Get the birthday of the user |
java.util.Map |
getCustomColumns()
Get the list of custom column values associated with the user |
java.lang.String |
getDataSource()
Get the data source |
int |
getDemoUser()
Deprecated. Use the method instead |
java.lang.String |
getEmail()
Get the email address of the user |
java.lang.String |
getFirstname()
Get the first name of the user |
java.lang.String |
getFormattedName(java.lang.String format)
Get a formatted user name. |
java.lang.String |
getFullname()
Get the full name of the user |
long |
getInstitutionLCId()
Get the institution learning context Id for the user |
java.lang.String |
getLastname()
Get the last name of the user |
java.util.List |
getLearningContexts(int typeLevel)
Get the learning contexts in which the user is a member |
java.lang.String |
getNamePrefix()
Get the name prefix of the user |
java.lang.String |
getNameSuffix()
Get the name suffix of the user |
java.lang.String |
getNickname()
Get the nickname of the user |
java.lang.String |
getOtherName()
Get the other name of the user |
java.lang.String |
getPasswordHash()
Deprecated. Always returns null |
long |
getPersonId()
Get the person Id for the user |
java.util.Map |
getPhones()
Get the list of phone numbers associated with the user. |
java.util.List |
getRoles()
Get the list of roles associated with the user for the learning context; this is equivalent to getRoles(Boolean.TRUE) |
java.util.List |
getRoles(java.lang.Boolean lcRoles)
Get the list of roles associated with the user |
java.lang.String |
getSortName()
Get the sort name of the user |
java.lang.String |
getsourceId()
Deprecated. Use the method instead |
java.lang.String |
getSourceId()
Get the source Id for the user |
java.lang.String |
getsourceName()
Deprecated. Use the method instead |
java.lang.String |
getSourceName()
Get the source name for the user |
int |
getStatus()
Get the status of the user |
java.lang.String |
getUserId()
Get the user Id |
java.lang.String |
getUserPrimaryKey()
Deprecated. Use the method instead |
java.util.List |
getUserRoles()
Deprecated. Use the method instead |
boolean |
hasGender()
Is this user's gender known? |
boolean |
isAuditor()
Is this user an auditor? |
boolean |
isCourseDesigner()
Is this user a course designer? |
boolean |
isCourseInstructor()
Is this user a course instructor? |
boolean |
isDemoUser()
Is this user a demo student? |
boolean |
isDesignerInstructor()
Deprecated. This does not represent a valid role type for a user |
boolean |
isDivisionAdmin()
Is this user a division administrator? |
boolean |
isDivisionDesigner()
Is this user a division designer? |
boolean |
isDomainAdmin()
Is this user a domain admin? |
boolean |
isDomainDesigner()
Is this user a domain designer? |
boolean |
isFemale()
Is this user a female? |
boolean |
isGroupAdmin()
Is this user a group admin? |
boolean |
isGroupDesigner()
Is this user a group designer? |
boolean |
isInstitutionalAdmin()
Is this user an institutional admin? |
boolean |
isInstitutionalDesigner()
Is this user an institutional designer? |
boolean |
isMale()
Is this user a male? |
boolean |
isMentor()
Deprecated. This does not represent a valid role type for a user |
boolean |
isPrimarySectionInstructor()
Is this user a primary section instructor? |
boolean |
isSectionDesigner()
Is this user a section designer? |
boolean |
isSectionInstructor()
Is this user a section instructor? |
boolean |
isServerAdmin()
Is this user a server administrator? |
boolean |
isStudent()
Is this user a student? |
boolean |
isTA()
Is this user a TA? |
boolean |
isUserInRole(java.lang.String roleName)
Is this user in the given role? |
boolean |
isUserInRole(UserRole role)
Deprecated. As the class has been deprecated, use the
method instead. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String SERVER_ADMIN_ROLE
public static final java.lang.String DOMAIN_ADMIN_ROLE
public static final java.lang.String DOMAIN_DESIGNER_ROLE
public static final java.lang.String INSTITUTION_ADMIN_ROLE
public static final java.lang.String INSTITUTION_DESIGNER_ROLE
public static final java.lang.String INSTITUTION_LEARNING_CONTEXT_MANAGER_ROLE
public static final java.lang.String INSTITUTION_ENROLMENT_MANAGER_ROLE
public static final java.lang.String INSTITUTION_REPOSITORY_MANAGER_ROLE
public static final java.lang.String INSTITUTION_TEMPLATE_MANAGER_ROLE
public static final java.lang.String INSTITUTION_USER_MANAGER_ROLE
public static final java.lang.String INSTITUTION_MEMBER_ROLE
public static final java.lang.String DIVISION_ADMIN_ROLE
public static final java.lang.String DIVISION_DESIGNER_ROLE
public static final java.lang.String DIVISION_LEARNING_CONTEXT_MANAGER_ROLE
public static final java.lang.String DIVISION_ENROLMENT_MANAGER_ROLE
public static final java.lang.String DIVISION_REPOSITORY_MANAGER_ROLE
public static final java.lang.String DIVISION_TEMPLATE_MANAGER_ROLE
public static final java.lang.String GROUP_ADMIN_ROLE
public static final java.lang.String GROUP_DESIGNER_ROLE
public static final java.lang.String GROUP_LEARNING_CONTEXT_MANAGER_ROLE
public static final java.lang.String GROUP_ENROLMENT_MANAGER_ROLE
public static final java.lang.String GROUP_REPOSITORY_MANAGER_ROLE
public static final java.lang.String GROUP_TEMPLATE_MANAGER_ROLE
public static final java.lang.String COURSE_INSTRUCTOR_ROLE
public static final java.lang.String COURSE_DESIGNER_ROLE
public static final java.lang.String SECTION_INSTRUCTOR_ROLE
public static final java.lang.String SECTION_DESIGNER_ROLE
public static final java.lang.String SECTION_TEACHING_ASSISTANT_ROLE
public static final java.lang.String SECTION_STUDENT_ROLE
public static final java.lang.String SECTION_AUDITOR_ROLE
public static final java.lang.String ADDRESS_POBOX
public static final java.lang.String ADDRESS_STREET
public static final java.lang.String ADDRESS_EXTADD
public static final java.lang.String ADDRESS_LOCALITY
public static final java.lang.String ADDRESS_REGION
public static final java.lang.String ADDRESS_PCODE
public static final java.lang.String ADDRESS_COUNTRY
public static final java.lang.String PHONE_VOICE1
public static final java.lang.String PHONE_VOICE2
public static final java.lang.String PHONE_FAX
public static final java.lang.String PHONE_MOBILE
public static final java.lang.String PHONE_PAGER
public static final int SQL_WHERE_NONE
public static final int SQL_WHERE_USER
public static final int SQL_WHERE_ADDRESS
public static final int SQL_WHERE_PHONE
public static final int SQL_WHERE_CUSTOM
Constructor Detail |
public UserVO()
UserService.getUser(String, Long)
and UserService.getMembers(Long)
methods.
public UserVO(int demoUser, java.lang.String firstName, long institutionId, long personId, java.lang.String lastName, java.lang.String namePrefix, java.lang.String nameSuffix, java.lang.String otherName, java.lang.String sourceId, java.lang.String sourceName, int status, java.lang.String userId, java.lang.String passwordHash, java.lang.String email, java.lang.String userPrimaryKey, java.util.List userRoles)
UserService.getUser(String, Long)
and UserService.getMembers(Long)
methods.
demoUser
- demo user valuefirstName
- first nameinstitutionId
- institution IdpersonId
- person IdlastName
- last namenamePrefix
- name prefixnameSuffix
- name suffixotherName
- other namesourceId
- source IdsourceName
- source namestatus
- statususerId
- user IdpasswordHash
- deprecatedemail
- emailuserPrimaryKey
- user primary keyuserRoles
- user rolesMethod Detail |
public java.lang.String getDataSource()
public int getDemoUser()
isDemoUser()
method instead
public java.lang.String getFirstname()
public long getInstitutionLCId()
public long getPersonId()
public java.lang.String getLastname()
public java.lang.String getNamePrefix()
public java.lang.String getNameSuffix()
public java.lang.String getOtherName()
public java.lang.String getsourceId()
getSourceId()
method instead
public java.lang.String getSourceId()
public java.lang.String getsourceName()
getSourceName()
method instead
public java.lang.String getSourceName()
public int getStatus()
public java.lang.String getUserId()
public java.lang.String getPasswordHash()
public java.lang.String getEmail()
public java.lang.String getFullname()
public java.lang.String getNickname()
public java.lang.String getSortName()
public java.lang.Long getBirthday()
public java.lang.String getUserPrimaryKey()
getSourceId()
method instead
public java.lang.String getFormattedName(java.lang.String format)
The format parameter is used to specify how a name is displayed. It supports the following variable substitutions:
%a
= firstname%b
= lastname%c
= othername%d
= name prefix%e
= name suffix%f
= fullname%g
= nickname%h
= email%i
= sortname%j
= sourceName%k
= sourceId%l
= userId
The names of elements from the user's addresses (see
),
phone numbers (see getAddresses()
) and custom columns (see
getPhones()
) may also be substituted using the
syntax getCustomColumns()
%{element name}
; for example, %{Street 1}
will
be replaced with the user's street name from address 1. Element names are case
insensitive.
format
- format of name to be generated
public java.util.List getLearningContexts(int typeLevel)
typeLevel
- the learning context type level
public java.util.List getUserRoles()
getRoles()
method instead
public java.util.List getRoles()
public java.util.List getRoles(java.lang.Boolean lcRoles)
lcRoles
- true if only roles for the learning context should be returned,
false if only roles for parent learning contexts should be
returned, or null if both sets of roles should be returned
public java.util.Map getAddresses()
The map will contain an entry for each address element even if it has no
value (to allow them to be used in variable substitution, see
). The following address elements
are populated:
getFormattedName(String)
Each of these element names is defined as a constant value. A suffix is
added to the element name when adding entries to the map to reflect which
address it relates to; for example, Street 1
for the name of
the street in address 1.
public java.util.Map getPhones()
The map will contain an entry for each phone type even if it has no
value (to allow them to be used in variable substitution, see
). The phone types defined
by WebCT are as follows:
getFormattedName(String)
public java.util.Map getCustomColumns()
public boolean isUserInRole(java.lang.String roleName)
roleName
- the user role string (i.e. SINS, SDES, ...)
public boolean isUserInRole(UserRole role)
UserRole
class has been deprecated, use the
isUserInRole(String)
method instead.
role
- the UserRole (i.e. UserRole.STUDENT_ROLE, ...)
public boolean isServerAdmin()
public boolean isDivisionAdmin()
public boolean isDivisionDesigner()
public boolean isInstitutionalAdmin()
public boolean isInstitutionalDesigner()
public boolean isDomainAdmin()
public boolean isDomainDesigner()
public boolean isGroupAdmin()
public boolean isGroupDesigner()
public boolean isCourseDesigner()
public boolean isCourseInstructor()
public boolean isSectionDesigner()
public boolean isSectionInstructor()
public boolean isPrimarySectionInstructor()
public boolean isTA()
public boolean isStudent()
public boolean isAuditor()
public boolean isDesignerInstructor()
public boolean isMentor()
public boolean isDemoUser()
public boolean isMale()
public boolean isFemale()
public boolean hasGender()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |