|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.oscelot.webct.dao.LearningContextVO
The LearningContextVO is a value object that contains details about the learning context.
Based on com.webct.platform.sdkext.authmoduledata.LearningContextVO
Field Summary | |
static int |
TYPELEVEL_ALL
|
static int |
TYPELEVEL_COURSE
|
static int |
TYPELEVEL_DIVISION
|
static int |
TYPELEVEL_DOMAIN
|
static int |
TYPELEVEL_GROUP
|
static int |
TYPELEVEL_INSTITUTION
|
static int |
TYPELEVEL_LEARNING_GROUP
|
static int |
TYPELEVEL_SECTION
|
static int |
TYPELEVEL_SERVER
|
Constructor Summary | |
LearningContextVO()
Deprecated. LearningContextVO objects should be created using the
and methods. |
|
LearningContextVO(java.lang.String administrativePeriod,
java.lang.String endDate,
int endDateRestricted,
java.lang.String fullDescription,
java.lang.String glcId,
java.lang.String imsId,
java.lang.String imsSource,
long lcId,
java.lang.String longDescription,
java.lang.String name,
java.lang.String organizationName,
java.lang.String organizationType,
java.lang.String organizationUnit,
long parentLcId,
java.lang.String path,
java.lang.String startDate,
int startDateRestricted,
java.lang.String templateId,
java.lang.String title,
int typeLevel)
Deprecated. LearningContextVO objects should be created using the
and methods. |
Method Summary | |
java.lang.String |
getAdministrativePeriod()
Get the administrative period |
java.util.Map |
getChildMembers()
Get a map of members and the learning context in which their enrolment exists. |
java.util.Map |
getChildMembers(java.lang.String role)
Get a map of members and the learning context in which their enrolment exists The learning context ID will be the same as the current learning context except where it is the parent of a cross-listed set of sections. |
java.util.List |
getCrossListedChildren()
Retrieve a list of learning context Ids of the children for this learning context. |
java.lang.Long |
getCrossListedParent()
Retrieve the learning context Id of the parent for this learning context. |
LearningContextVO |
getCrossListedParentInfo()
Retrieve the LearningContextVO of the parent for this learning context. |
java.lang.String |
getDataSource()
Get the data source |
java.lang.String |
getEmail()
Get the email |
java.lang.String |
getEndDate()
Deprecated. Use the method instead |
int |
getEndDateRestricted()
Deprecated. Use the method instead |
java.lang.Long |
getEndDateTime()
Get the end date |
java.lang.String |
getFormattedName(java.lang.String format)
Get a formatted learning context name. |
java.lang.String |
getFormattedName(java.lang.String format,
java.lang.String dateFormat,
java.lang.String timeFormat)
Get a formatted learning context name (with specified date and time formats). |
java.lang.String |
getFullDescription()
Get the full description |
java.lang.String |
getGlcId()
Get the global learning context Id |
java.lang.String |
getImsId()
Get the IMS Id |
java.lang.String |
getImsSource()
Get the IMS source |
java.lang.Long |
getInstitutionLCId()
Get the parent learning context Id |
java.lang.Long |
getLastArchivedDateTime()
Get the last archived date |
long |
getLcId()
Deprecated. Use the method instead |
java.lang.Long |
getLCId()
Get the learning context Id |
java.lang.String |
getLongDescription()
Get the long description |
java.util.List |
getMemberIDsWhere(int fieldType,
java.lang.String fieldName,
java.lang.String fieldValue,
java.util.List roles)
Get a list of member IDs satisfying a specified condition |
java.util.List |
getMembers()
Get a list of members |
java.util.List |
getMembers(java.util.List roles,
int pageNum,
int pageSize)
Get a list of members |
java.util.List |
getMembers(java.lang.String role)
Get a list of members |
java.util.List |
getMembers(java.lang.String role,
int pageNum,
int pageSize)
Get a list of members |
java.util.Map |
getMemberSettingsWhere(int fieldType,
java.lang.String fieldName,
java.lang.String fieldValue,
java.util.List roles)
Get a map of member setting values satisfying a specified condition |
java.util.List |
getMembersWhere(int fieldType,
java.lang.String fieldName,
java.lang.String fieldValue,
java.util.List roles,
int pageNum,
int pageSize)
Get a list of members satisfying a specified condition |
java.lang.String |
getName()
Get the learning context name |
java.lang.Long |
getNumMembersWhere(int fieldType,
java.lang.String fieldName,
java.lang.String fieldValue,
java.util.List roles)
Get a count of members satisfying a specified condition |
java.lang.String |
getOrganizationName()
Get the organization name |
java.lang.String |
getOrganizationType()
Get the organization type |
java.lang.String |
getOrganizationUnit()
Get the organization unit |
long |
getParentLcId()
Deprecated. Use the method instead |
java.lang.Long |
getParentLCId()
Get the parent learning context Id |
java.lang.String |
getPath()
Get the learning context path |
java.lang.String |
getStartDate()
Deprecated. Use the method instead |
int |
getStartDateRestricted()
Deprecated. Use the method instead |
java.lang.Long |
getStartDateTime()
Get the start date |
java.lang.String |
getTemplateId()
Get the template Id |
TermVO |
getTerm()
Get the term |
java.lang.String |
getTitle()
Get the learning context title |
java.lang.String |
getTypeLabel()
Get the learning context type label |
int |
getTypeLevel()
Get the learning context type level |
java.lang.String |
getWebLink()
Get the web link |
boolean |
isCourse()
Is this learning context a course? |
boolean |
isCrossListedChild()
Is the learning context a cross-listed child section? |
boolean |
isCrossListedParent()
Is the learning context a cross-listed parent section? |
boolean |
isDivision()
Is this learning context a division? |
boolean |
isDomain()
Is this learning context a domain? |
boolean |
isEndDateRestricted()
Is the end date restricted? |
boolean |
isGroup()
Is this learning context a group? |
boolean |
isInstitution()
Is this learning context an institution? |
boolean |
isSection()
Is this learning context a section? |
boolean |
isServer()
Is this learning context a server? |
boolean |
isStartDateRestricted()
Is the start date restricted? |
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 int TYPELEVEL_SERVER
public static final int TYPELEVEL_DOMAIN
public static final int TYPELEVEL_INSTITUTION
public static final int TYPELEVEL_DIVISION
public static final int TYPELEVEL_GROUP
public static final int TYPELEVEL_COURSE
public static final int TYPELEVEL_SECTION
public static final int TYPELEVEL_LEARNING_GROUP
public static final int TYPELEVEL_ALL
Constructor Detail |
public LearningContextVO()
LearningContextService.getLCInfo(Long)
and UserService.getLearningContexts(String, int)
methods.
public LearningContextVO(java.lang.String administrativePeriod, java.lang.String endDate, int endDateRestricted, java.lang.String fullDescription, java.lang.String glcId, java.lang.String imsId, java.lang.String imsSource, long lcId, java.lang.String longDescription, java.lang.String name, java.lang.String organizationName, java.lang.String organizationType, java.lang.String organizationUnit, long parentLcId, java.lang.String path, java.lang.String startDate, int startDateRestricted, java.lang.String templateId, java.lang.String title, int typeLevel)
LearningContextService.getLCInfo(Long)
and UserService.getLearningContexts(String, int)
methods.
administrativePeriod
- administrative periodendDate
- end dateendDateRestricted
- end date restrictedfullDescription
- full descriptionglcId
- global learning context IdimsId
- ims IdimsSource
- ims sourcelcId
- learning context IdlongDescription
- long descriptionname
- nameorganizationName
- organization nameorganizationType
- organization typeorganizationUnit
- organization unitparentLcId
- parent learning context Idpath
- pathstartDate
- start datestartDateRestricted
- start date restrictedtemplateId
- template Idtitle
- titletypeLevel
- type levelMethod Detail |
public java.lang.String getAdministrativePeriod()
public java.lang.String getDataSource()
public java.lang.String getEmail()
public java.lang.String getEndDate()
getEndDateTime()
method instead
public java.lang.Long getEndDateTime()
public int getEndDateRestricted()
isEndDateRestricted()
method instead
public java.lang.String getFullDescription()
public java.lang.String getGlcId()
public java.lang.String getImsId()
public java.lang.String getImsSource()
public java.lang.Long getInstitutionLCId()
public java.lang.Long getLastArchivedDateTime()
public long getLcId()
getLCId()
method instead
public java.lang.Long getLCId()
public java.lang.String getLongDescription()
public java.lang.String getName()
public java.lang.String getOrganizationName()
public java.lang.String getOrganizationType()
public java.lang.String getOrganizationUnit()
public long getParentLcId()
getParentLCId()
method instead
public java.lang.Long getParentLCId()
public java.lang.String getPath()
public java.lang.String getStartDate()
getStartDateTime()
method instead
public java.lang.Long getStartDateTime()
public int getStartDateRestricted()
isStartDateRestricted()
method instead
public java.lang.String getTemplateId()
public java.lang.String getTitle()
public java.lang.String getTypeLabel()
public int getTypeLevel()
public java.lang.String getWebLink()
public TermVO getTerm()
public java.lang.String getFormattedName(java.lang.String format)
The format parameter is used to specify how a name is displayed. It uses the same variable substitution as used by WebCT in the My Blackboard settings for the Section link display and Section description display:
%1
= Parent learning context name%2
= Parent learning context long description%3
= Parent learning context full description%4
= Parent learning context IMS ID%5
= Parent learning context category%6
= Parent learning context start date%7
= Parent learning context start time%8
= Parent learning context end date%9
= Parent learning context end time%C
= Learning context name%D
= Learning context long description%E
= Learning context full description%G
= Learning context IMS ID%H
= Learning context category%I
= Learning context start date%J
= Learning context start time%K
= Learning context end date%L
= Learning context end timeThe following additional variable substitutions are supported:
%0
= Parent learning context IMS Source%F
= Learning context IMS Source
Any date and time substitutions will use formats of d-MMM-yyyy
and
HH:mm
but these defaults can be overridden by including a
dateformat
and/or timeformat
setting in the properties file.
If the learning context does not have a parent (i.e. server level) no substitution
is performed for parent-related variables.
format
- format of name to be generated
public java.lang.String getFormattedName(java.lang.String format, java.lang.String dateFormat, java.lang.String timeFormat)
See
method for details of the format parameter.
getFormattedName(String)
The date and time formats should be strings using the patterns supported by
java.text.SimpleDateFormat
. Null values will cause the default to be used.
Note that it is possible to include time patterns in the date format string
and vice versa.
format
- format of name to be generateddateFormat
- format for displaying datestimeFormat
- format for displaying times
public java.util.List getMembers()
public java.util.List getMembers(java.lang.String role)
role
- the role which members should have (null for any role)
public java.util.List getMembers(java.lang.String role, int pageNum, int pageSize)
role
- the role which members should have (null for any role)pageNum
- the page number of the set of members to return (0 for all)pageSize
- the maximum number of members to return (0 for default)
public java.util.List getMembers(java.util.List roles, int pageNum, int pageSize)
roles
- list containing the roles which members should have at least one of (null for any role)pageNum
- the page number of the set of members to return (0 for all)pageSize
- the maximum number of members to return (0 for default)
public java.util.List getMembersWhere(int fieldType, java.lang.String fieldName, java.lang.String fieldValue, java.util.List roles, int pageNum, int pageSize)
fieldType
- one of the constants representing the type of field being used as a selection conditionfieldName
- name of the field used in the selection conditionfieldValue
- LIKE clause to apply to the field (null for any non-null value)roles
- list containing the roles which members should have at least one of (null for any role)pageNum
- the page number of the set of members to return (0 for all)pageSize
- the maximum number of members to return (0 for default)
public java.util.List getMemberIDsWhere(int fieldType, java.lang.String fieldName, java.lang.String fieldValue, java.util.List roles)
fieldType
- one of the constants representing the type of field being used as a selection conditionfieldName
- name of the field used in the selection conditionfieldValue
- LIKE clause to apply to the field (null for any non-null value)roles
- list containing the roles which members should have at least one of (null for any role)
public java.util.Map getMemberSettingsWhere(int fieldType, java.lang.String fieldName, java.lang.String fieldValue, java.util.List roles)
fieldType
- one of the constants representing the type of field being used as a selection conditionfieldName
- name of the field used in the selection conditionfieldValue
- LIKE clause to apply to the field (null for any non-null value)roles
- list containing the roles which members should have at least one of (null for any role)
public java.lang.Long getNumMembersWhere(int fieldType, java.lang.String fieldName, java.lang.String fieldValue, java.util.List roles)
fieldType
- one of the constants representing the type of field being used as a selection conditionfieldName
- name of the field used in the selection conditionfieldValue
- LIKE clause to apply to the field (null for any non-null value)roles
- list containing the roles which members should have at least one of (null for any role)
public java.util.Map getChildMembers()
Map<UserVO, Long>
)public java.util.Map getChildMembers(java.lang.String role)
role
- the role which members should have (null for any role)
Map<UserVO, Long>
)public java.util.List getCrossListedChildren() throws VistaDataException
List<Long>
)
VistaDataException
public java.lang.Long getCrossListedParent() throws VistaDataException
Long
)
VistaDataException
public LearningContextVO getCrossListedParentInfo() throws VistaDataException
LearningContextVO
)
VistaDataException
public boolean isServer()
public boolean isDomain()
public boolean isInstitution()
public boolean isDivision()
public boolean isGroup()
public boolean isCourse()
public boolean isSection()
public boolean isStartDateRestricted()
public boolean isEndDateRestricted()
public boolean isCrossListedParent()
public boolean isCrossListedChild()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |