Package org.ametys.odf.course
Class Course
-
- All Implemented Interfaces:
CommentableContent
,CommentableAmetysObject
,Content
,ModifiableContent
,ModifiableWorkflowAwareContent
,ReactionableObject
,ReportableObject
,WorkflowAwareContent
,CDMEntity
,CDMFRTagsConstants
,CourseListContainer
,ProgramItem
,ACLAmetysObject
,AmetysObject
,CopiableAmetysObject
,DataAwareAmetysObject
,ModelAwareDataAwareAmetysObject
,ModifiableModelAwareDataAwareAmetysObject
,DataHolder
,ModelAwareDataHolder
,ModifiableDataHolder
,ModifiableModelAwareDataHolder
,DublinCoreAwareAmetysObject
,ModifiableDublinCoreAwareAmetysObject
,JCRAmetysObject
,JCRTraversableAmetysObject
,LockableAmetysObject
,LockAwareAmetysObject
,MetadataAwareAmetysObject
,ModifiableMetadataAwareAmetysObject
,ModifiableACLAmetysObject
,ModifiableAmetysObject
,ModifiableTraversableAmetysObject
,RemovableAmetysObject
,TagAwareAmetysObject
,TaggableAmetysObject
,TraversableAmetysObject
,DataAndVersionAwareAmetysObject
,ModifiableDataAwareVersionableAmetysObject
,VersionableAmetysObject
,VersionAwareAmetysObject
,WorkflowAwareAmetysObject
public class Course extends ModifiableDefaultContent<CourseFactory> implements CourseListContainer, ProgramItem
Class representing aCourse
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ametys.cms.repository.ReactionableObject
ReactionableObject.ReactionType
-
-
Field Summary
Fields Modifier and Type Field Description static String
ACQUIRED_SKILLS
Constants for repeater 'acquiredSkills'static String
ADDITIONAL_INFORMATIONS
Constants for additionalInformations attributestatic String
BIBLIOGRAPHY
Constants for attribute 'bibliography'static String
CDM_CODE
Mandatory Identifier to generate the CDM-fr idstatic String
CHILD_COURSE_LISTS
Name of attribute for parent course listsstatic String
CHILD_COURSE_PARTS
Constants for attribute 'courseParts'static String
CONTACTS
Constants for attribute 'contacts'static String
CONTACTS_PERSONS
Constants for attribute 'contacts/persons'static String
CONTACTS_ROLE
Constants for attribute 'contacts/role'static String
COURSE_TYPE
Constants for attribute 'courseType'static String
DESCRIPTION
Constants for description attributestatic String
ECTS
Constants for ects attributestatic String
ERASMUS_CODE
Constants for erasmusCode attributestatic String
FORM_OF_ASSESSMENT
Constants for formOfAssessment attributestatic String
FORMODFTEACHING_METHOD
Constants for teachingMethod attributestatic String
FORMOFTEACHING_ORG
Constants for formofteachingOrg attributestatic String
KEYWORDS
Constants for keywords attributestatic String
LEVEL
Constants for level attributestatic String
LOM_SHEET_LABEL
Constants for LOM Sheet label attributestatic String
LOM_SHEET_URL
Constants for LOM Sheet URL attributestatic String
LOM_SHEETS
Constants for lomSheets attributestatic String
MAX_NUMBER_OF_STUDENTS
Constants for maxNumberOfStudents attributestatic String
NEEDED_PREREQUISITE
Constants for neededPrerequisite attributestatic String
NUMBER_OF_HOURS
Constants for nbHours attributestatic String
OBJECTIVES
Constants for objectives attributestatic String
OPEN_TO_EXCHANGE_STUDENTS
Constants for attribute 'openToExchangeStudents'static String
ORG_UNITS
Constants for orgunits attributestatic String
PARENT_COURSE_LISTS
Name of attribute for parent course listsstatic String
REQUIRED_SKILLS
Constants for attribute 'requiredSkills'static String
SKILLS
Constants for attribute 'skills'static String
START_DATE
Constants for startDate attributestatic String
SYLLABUS
Constants for syllabus attributestatic String
TEACHING_ACTIVITY
Constants for formOfTeaching attributestatic String
TEACHING_LANGUAGE
Constants for teachingLanguage attributestatic String
TEACHING_LOCATION
Constants for teachingLocation attributestatic String
TEACHING_TERM
Constants for teachingTerm attributestatic String
TIME_SLOT
Constants for timeSlot attributestatic String
TRAINING_COURSE_DURATION
Constants for trainingCourseDuration attributestatic String
WEB_LINK_LABEL
Constants for webLinkLabel attributestatic String
WEB_LINK_URL
Constants for webLinkUrl attribute-
Fields inherited from class org.ametys.cms.repository.DefaultContent
ATTACHMENTS_NODE_NAME, DEFAULT_CONTENT_LOCALE, METADATA_CONTENTTYPE, METADATA_CONTRIBUTOR, METADATA_CREATION, METADATA_CREATOR, METADATA_FIRST_VALIDATION, METADATA_LANGUAGE, METADATA_LAST_MAJORVALIDATION, METADATA_LAST_VALIDATION, METADATA_MIXINCONTENTTYPES, METADATA_MODIFIED, METADATA_OUTGOING_REFERENCE_NODETYPE, METADATA_OUTGOING_REFERENCE_PROPERTY, METADATA_OUTGOING_REFERENCES, METADATA_OUTGOING_REFERENCES_PATH_PROPERTY, METADATA_ROOT_OUTGOING_REFERENCES
-
Fields inherited from class org.ametys.plugins.repository.jcr.DefaultAmetysObject
PROTECTED_PROPERTIES
-
Fields inherited from interface org.ametys.odf.cdmfr.CDMFRTagsConstants
ATTRIBUTE_ACTIVITY_PART_STRUCTURE, ATTRIBUTE_BLOCK_LANG, ATTRIBUTE_BUILDING, ATTRIBUTE_CODE_SET, ATTRIBUTE_COMPETENCE_YIELDING, ATTRIBUTE_COUNTY_CODE, ATTRIBUTE_COURSE_STRUCTURE, ATTRIBUTE_CURRENCY, ATTRIBUTE_DATE, ATTRIBUTE_DEGREE, ATTRIBUTE_DEGREE_NOT_LMD, ATTRIBUTE_DIPLOMA_TYPE, ATTRIBUTE_DURATION, ATTRIBUTE_ECTS_CREDITS, ATTRIBUTE_EQUIV, ATTRIBUTE_HOURS_PER_WEEK, ATTRIBUTE_ID, ATTRIBUTE_ID_REF, ATTRIBUTE_IDENT, ATTRIBUTE_LANGUAGE, ATTRIBUTE_LEVEL, ATTRIBUTE_LIB_SET, ATTRIBUTE_LIMITED, ATTRIBUTE_METHOD, ATTRIBUTE_NATURE, ATTRIBUTE_ORG, ATTRIBUTE_ORG_TYPE, ATTRIBUTE_ORG_UNIT_KIND_CODE_VALUESET, ATTRIBUTE_PLACES, ATTRIBUTE_PRICE, ATTRIBUTE_REF, ATTRIBUTE_ROLE, ATTRIBUTE_ROOM, ATTRIBUTE_START, ATTRIBUTE_STUDY_PACE, ATTRIBUTE_TEACHING_LANG, ATTRIBUTE_TEACHING_START, ATTRIBUTE_TEACHING_TYPE, ATTRIBUTE_TEL_TYPE, ATTRIBUTE_TERM, ATTRIBUTE_TIME, ATTRIBUTE_TIME_OF_DAY, ATTRIBUTE_TOTAL_WORK_LOAD, ATTRIBUTE_USER_DEFINED, NAMESPACE_AMETYS_CDM, NAMESPACE_CDMFR, PHONE_TYPE_HOME, PHONE_TYPE_MOBILE, PHONE_TYPE_OFFICE, TAG_ACTIVITY_PARTS, TAG_ADDRESS, TAG_ADMISSION_DESCRIPTION, TAG_ADMISSION_INFO, TAG_AFFILIATION, TAG_ALT_LANG_BLOCK, TAG_BIBLIOGRAPHY, TAG_CANCEL_DEADLINE, TAG_CDM, TAG_CDM_DATE_TIME, TAG_CDM_LOCATION, TAG_COMPETENCE_DESC, TAG_COMPETENCE_VALIDITY, TAG_CONTACT_DATA, TAG_CONTACT_NAME, TAG_CONTACTS, TAG_COUNTRY, TAG_COURSE, TAG_COURSE_CODE, TAG_COURSE_CONTENTS, TAG_COURSE_DESCRIPTION, TAG_COURSE_ID, TAG_COURSE_NAME, TAG_CREDITS, TAG_CRITERIA, TAG_DATE_FROM, TAG_DATE_TO, TAG_DEGREE, TAG_DEGREE_NAME, TAG_DIGIT_PROD_PERC, TAG_DIGIT_PROD_UNT_PERC, TAG_DIGITAL_USE, TAG_DIPLOMA, TAG_ECTS_REQUIRED, TAG_EMAIL, TAG_END, TAG_EVALUATION_DEADLINE, TAG_EXAM, TAG_EXAM_DURATION, TAG_EXAM_END, TAG_EXAM_KIND, TAG_EXAM_LOCATION, TAG_EXAM_NAME, TAG_EXAM_PARTS, TAG_EXAM_START, TAG_EXAM_STRUCTURE, TAG_EXISTS, TAG_EXPENSES, TAG_EXTADR, TAG_EXTENSION_BLOCK, TAG_FAMILY_NAME, TAG_FAX, TAG_FORM_OF_ASSESSMENT, TAG_FORM_OF_TEACHING, TAG_FORMAL_PREREQUISITES, TAG_GIVEN_NAME, TAG_GLOBAL_VOLUME, TAG_HABILITATION, TAG_HABILITATION_ID, TAG_HEADER, TAG_HREF, TAG_INFO_BLOCK, TAG_INSTRUCTION_LANGUAGE, TAG_LCMS, TAG_LEARNING_OBJECTIVES, TAG_LEVEL, TAG_LEVEL_CODE, TAG_LINK_NAME, TAG_LOCALITY, TAG_NAME, TAG_OCCURRENCE_RULE, TAG_ORDINARY_NAME, TAG_ORG_UNIT, TAG_ORG_UNIT_ACRONYM, TAG_ORG_UNIT_CODE, TAG_ORG_UNIT_DESCRIPTION, TAG_ORG_UNIT_ID, TAG_ORG_UNIT_KIND, TAG_ORG_UNIT_NAME, TAG_OVERLAP, TAG_PART_STRUCTURE, TAG_PCODE, TAG_PERC_OF_USE, TAG_PERCENTAGE, TAG_PERSON, TAG_PERSON_ID, TAG_PHONE, TAG_PLACE, TAG_POBOX, TAG_PPAL_TEACHING_LANGUAGE, TAG_PROD_PEDA, TAG_PROFESS_FIELD, TAG_PROFESSION, TAG_PROFESSIONAL_DIPLOMA, TAG_PROGRAM, TAG_PROGRAM_CODE, TAG_PROGRAM_DESCRIPTION, TAG_PROGRAM_DURATION, TAG_PROGRAM_ID, TAG_PROGRAM_NAME, TAG_PROGRAM_STRUCTURE, TAG_QUALIFICATION, TAG_QUALIFICATION_DESCRIPTION, TAG_QUALIFICATION_NAME, TAG_RECOMMANDED_PREREQUISITES, TAG_REF_COURSE, TAG_REF_ORG_UNIT, TAG_REF_PERSON, TAG_REF_PROGRAM, TAG_REGION, TAG_REGISTRATION_DEADLINE, TAG_REGISTRATION_DETAIL, TAG_REGISTRATION_MODALITIES, TAG_REGISTRATION_PROCESS, TAG_REGISTRATION_START, TAG_REGULATIONS, TAG_REOCCURRING_EVENTS, TAG_RESOURCE_MGT, TAG_ROLE, TAG_ROME_DATA, TAG_SEARCH_WORD, TAG_SECT_CNU, TAG_SINGLE_EVENT, TAG_START, TAG_STATISTICS, TAG_STREET, TAG_STUDENT_FACILITIES, TAG_STUDENT_PLACES, TAG_STUDENT_STATUS, TAG_STUDY_ABROAD, TAG_STUDY_FIELD, TAG_STUDY_QUALIFICATION, TAG_SUB_BLOCK, TAG_SUB_PROGRAM, TAG_SYLLABUS, TAG_TARGET_GROUP, TAG_TEACHING_ACTIVITY, TAG_TEACHING_ACTIVITY_ID, TAG_TEACHING_ACTIVITY_NAME, TAG_TEACHING_ACTIVITY_STRUCTURE, TAG_TEACHING_PLACE, TAG_TEACHING_START, TAG_TEACHING_TERM, TAG_TEXT, TAG_TIME_FROM, TAG_TIME_OF_DAY, TAG_TIME_TO, TAG_TIMETABLE_ELEMENT, TAG_TITLE, TAG_UNIVERSAL_ADJUSTMENT, TAG_WEB_LINK, VALUE_A_CHOIX, VALUE_APPRENTICESHIP, VALUE_AREA, VALUE_AS_DEGREE, VALUE_ASSOCIATED_LABORITORIES, VALUE_ASSOCIATED_SCHOOLS, VALUE_CITE97, VALUE_COMPLEMENTARY_INFORMATIONS, VALUE_COMPONENT, VALUE_CONTINUE, VALUE_COURSE_STRUCTURE, VALUE_DEGREE, VALUE_DES, VALUE_DIP, VALUE_DISTANCE, VALUE_DOWNLOADING, VALUE_DUREE, VALUE_EC, VALUE_EDUCATION_TYPE, VALUE_ERASMUS, VALUE_FACULTATIVE, VALUE_FINALITE, VALUE_FORMCONTNONDIP, VALUE_FR_FR, VALUE_FRENCHLANGUAGE, VALUE_INIT, VALUE_INTERNATIONAL, VALUE_INTERNSHIP, VALUE_KNOWLEDGES, VALUE_KNOWMORELINK, VALUE_MENTION, VALUE_OBJECTIVES, VALUE_OBLIGATOIRE, VALUE_ORG_UNIT_PARENT, VALUE_PRESENCE, VALUE_PRESENTATION, VALUE_PRO, VALUE_PROFESSIONAL, VALUE_PROFESSIONAL_OBJECTIVES, VALUE_PURSUING, VALUE_RNCP, VALUE_SCHOOLPATH, VALUE_SISE, VALUE_SPECIALITY, VALUE_STAGE, VALUE_SUBPROG_TYPE, VALUE_TYPE, VALUE_UE, VALUE_UECONTAINER, VALUE_UEGROUP, VALUE_UNIVERSITY, VALUE_UNRLR, VALUE_VOLUME_HORAIRE, VALUE_VOLUME_HORAIRE_COURS, VALUE_VOLUME_HORAIRE_TD, VALUE_VOLUME_HORAIRE_TP
-
Fields inherited from interface org.ametys.cms.repository.Content
ATTRIBUTE_TITLE, METADATA_TITLE
-
Fields inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
ALTERNATIVE_SUFFIX, COMMENTS_SUFFIX, STATUS_SUFFIX
-
Fields inherited from interface org.ametys.odf.ProgramItem
CATALOG, CODE, PROGRAM_ITEM_CONTENT_TYPE
-
-
Constructor Summary
Constructors Constructor Description Course(Node node, String parentPath, CourseFactory factory)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsCourseList(String clId)
Determines if thisCourseListContainer
contains the given course list as childRichText
getAdditionalInformations()
Get the additional informationRichText
getBibliography()
Get the bibliographyString
getCatalog()
Get the catalog of this contentString
getCdmCode()
Get the CDM code.String
getCDMId()
Returns the CDM id.String
getCode()
Get the CDM-fr of theProgramItem
Set<String>
getContacts()
Return the list of Persons in charge binded to this programMap<String,List<String>>
getContactsByRole()
Return the list of Persons in charge binded to this programString
getContextPath()
Get the parent path.List<CourseList>
getCourseLists()
Returns the child course listsList<CoursePart>
getCourseParts()
Get the course parts.String
getCourseType()
Get the course type (nature)RichText
getDescription()
Get the descriptiondouble
getEcts()
Get the ECTSString
getErasmusCode()
Get the Erasmus codeRichText
getFormOfAssessment()
Get the formOfAssessment attributeString
getFormOfTeachingMethod()
Get the teaching methodString[]
getFormOfTeachingOrgs()
Get the teaching organizationsString[]
getKeywords()
Get the keywordsString
getLevel()
Get the levelList<String>
getLocalOrgUnits()
Return the id of local orgunit contents binded to this courseSet<LOMSheet>
getLOMSheets()
Get the list of LOM sheetsString
getMaxNumberOfStudents()
Get the effectivesRichText
getNeededPrerequisite()
Get the needed prerequisitesdouble
getNumberOfHours()
Get the number of hoursRichText
getObjectives()
Get the objectivesList<String>
getOrgUnits()
Return the id of orgunit content binded to this courseList<CourseList>
getParentCourseLists()
Get the parent course listsList<String>
getRemoteOrgUnits()
Return the id of remote orgunit contents binded to this courseString[]
getRequiredSkills()
Get the required skillsSet<Program>
getRootPrograms()
Returns the programs holding this program partRichText
getSkills()
Get the skillsLocalDate
getStartDate()
Get the start dateRichText
getSyllabus()
Get the syllabusString
getTeachingActivity()
Get the teaching activityString[]
getTeachingLanguage()
Get the teaching languageString[]
getTeachingLocation()
Get the teaching locationString
getTeachingTerm()
Get the teaching termString
getTimeSlot()
Get the time slotString
getWebLinkLabel()
Get the web link labelString
getWebLinkUrl()
Get the web link URLboolean
hasCourseLists()
Determines if thisCourseListContainer
contains child course listboolean
hasLOMSheet(LOMSheet lomSheet)
Determines if the course has LOM sheetboolean
isOpenToExchangeStudents()
Is open to exchange studentsvoid
setCatalog(String catalog)
Set the catalogvoid
setCdmCode(String cdmCode)
Set the CDM code.void
setCode(String code)
Set the CDM-fr codevoid
setContextPath(String path)
Set the parent path for links and breadcrumbvoid
setLOMSheets(Set<LOMSheet> sheets)
Set the LOM sheetsvoid
setTeachingLocation(String[] teachingLocation)
Set the teaching location-
Methods inherited from class org.ametys.cms.repository.ModifiableDefaultContent
createComment, createComment, fillContent, getComment, getComments, getCurrentStepId, getDataHolder, getLockOwner, getProposalDate, getWorkflowId, isLocked, lock, remove, setCreationDate, setCreator, setCurrentStepId, setDCContributor, setDCCoverage, setDCCreator, setDCDate, setDCDescription, setDCFormat, setDCIdentifier, setDCLanguage, setDCPublisher, setDCRelation, setDCRights, setDCSource, setDCSubject, setDCTitle, setDCType, setFirstValidationDate, setLastContributor, setLastMajorValidationDate, setLastModified, setLastValidationDate, setOutgoingReferences, setProposalDate, setTitle, setTitle, setWorkflowId, tag, unlock, untag
-
Methods inherited from class org.ametys.cms.repository.DefaultContent
addReaction, addReport, clearReports, copyTo, copyTo, copyTo, copyTo, copyTo, createChild, getChild, getChildren, getCreationDate, getCreator, getDCContributor, getDCCoverage, getDCCreator, getDCDate, getDCDescription, getDCFormat, getDCIdentifier, getDCLanguage, getDCPublisher, getDCRelation, getDCRights, getDCSource, getDCSubject, getDCTitle, getDCType, getFirstValidationDate, getInternalDataHolder, getLanguage, getLastContributor, getLastMajorValidationDate, getLastModified, getLastValidationDate, getMixinTypes, getOutgoingReferences, getReactionUsers, getReferencingContents, getReportsCount, getRootAttachments, getTags, getTitle, getTitle, getTypes, hasChild, hasReferencingContents, removeReaction, setLanguage, setMixinTypes, setReportsCount, setType, setTypes, toSAX
-
Methods inherited from class org.ametys.plugins.repository.jcr.DefaultAmetysObject
addAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, addLabel, checkpoint, copyNode, disallowInheritance, getAllLabels, getAllRevisions, getBaseNode, getBaseVersion, getLabels, getLabels, getNode, getProfilesForAnonymousAndAnyConnectedUser, getProfilesForGroups, getProfilesForUsers, getRevision, getRevisionTimestamp, getRevisionTimestamp, getUnversionedDataHolder, getVersionHistory, isInheritanceDisallowed, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsers, removeLabel, restoreFromLabel, restoreFromNode, restoreFromRevision, switchToLabel, switchToRevision
-
Methods inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObject
_getFactory, _invalidateName, _invalidateParentPath, getId, getMetadataHolder, getName, getParent, getParentPath, getPath, needsSave, rename, revertChanges, saveChanges
-
Methods inherited from class org.ametys.plugins.repository.AbstractAmetysObject
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.ametys.plugins.repository.ACLAmetysObject
getProfilesForAnonymousAndAnyConnectedUser, getProfilesForGroups, getProfilesForUsers, isInheritanceDisallowed
-
Methods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCode
-
Methods inherited from interface org.ametys.odf.cdmfr.CDMEntity
getLanguage
-
Methods inherited from interface org.ametys.cms.repository.Content
getCreationDate, getCreator, getFirstValidationDate, getInternalDataHolder, getLanguage, getLastContributor, getLastMajorValidationDate, getLastModified, getLastValidationDate, getMixinTypes, getOutgoingReferences, getReferencingContents, getRootAttachments, getTitle, getTitle, getTypes, hasReferencingContents, setLanguage, setMixinTypes, setType, setTypes, toSAX
-
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.DataAwareAmetysObject
copyTo, dataToSAX, dataToSAX
-
Methods inherited from interface org.ametys.plugins.repository.dublincore.DublinCoreAwareAmetysObject
getDCContributor, getDCCoverage, getDCCreator, getDCDate, getDCDescription, getDCFormat, getDCIdentifier, getDCLanguage, getDCPublisher, getDCRelation, getDCRights, getDCSource, getDCSubject, getDCTitle, getDCType
-
Methods inherited from interface org.ametys.plugins.repository.jcr.JCRAmetysObject
getNode
-
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModelAwareDataAwareAmetysObject
getComments, getDataNames, getDefinition, getExternalValue, getLocalValue, getModel, getStatus, getValue, getValue, hasComments, hasDefinition, hasExternalValue, hasExternalValueOrEmpty, hasLocalValue, hasLocalValueOrEmpty, hasValue, hasValueOrEmpty
-
Methods inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
commentsToSAX, dataToMap, dataToMap, dataToMap, dataToMap, dataToSAX, dataToSAX, dataToSAX, dataToSAX, dataToSAXForEdition, getDataNames, getType, getValue, hasValue, hasValueOrEmpty, isMultiple
-
Methods inherited from interface org.ametys.plugins.repository.ModifiableACLAmetysObject
addAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, disallowInheritance, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsers
-
Methods inherited from interface org.ametys.plugins.repository.ModifiableAmetysObject
needsSave, rename, revertChanges, saveChanges
-
Methods inherited from interface org.ametys.plugins.repository.metadata.ModifiableMetadataAwareAmetysObject
getMetadataHolder
-
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModifiableModelAwareDataAwareAmetysObject
getComposite, getComposite, getExternalComposite, getExternalComposite, getExternalRepeater, getExternalRepeater, getLocalComposite, getLocalComposite, getLocalRepeater, getLocalRepeater, getParentDataHolder, getRepeater, getRepeater, getRepositoryData, getRootDataHolder, removeExternalizableMetadataIfExists, removeExternalValue, removeLocalValue, removeValue, setComments, setExternalValue, setLocalValue, setStatus, setValue, synchronizeValues, synchronizeValues, synchronizeValues, synchronizeValues
-
Methods inherited from interface org.ametys.plugins.repository.tag.TagAwareAmetysObject
getTags
-
Methods inherited from interface org.ametys.plugins.repository.TraversableAmetysObject
getChildAt, getChildPosition
-
-
-
-
Field Detail
-
PARENT_COURSE_LISTS
public static final String PARENT_COURSE_LISTS
Name of attribute for parent course lists- See Also:
- Constant Field Values
-
CHILD_COURSE_LISTS
public static final String CHILD_COURSE_LISTS
Name of attribute for parent course lists- See Also:
- Constant Field Values
-
CDM_CODE
public static final String CDM_CODE
Mandatory Identifier to generate the CDM-fr id- See Also:
- Constant Field Values
-
ECTS
public static final String ECTS
Constants for ects attribute- See Also:
- Constant Field Values
-
LEVEL
public static final String LEVEL
Constants for level attribute- See Also:
- Constant Field Values
-
DESCRIPTION
public static final String DESCRIPTION
Constants for description attribute- See Also:
- Constant Field Values
-
OBJECTIVES
public static final String OBJECTIVES
Constants for objectives attribute- See Also:
- Constant Field Values
-
NUMBER_OF_HOURS
public static final String NUMBER_OF_HOURS
Constants for nbHours attribute- See Also:
- Constant Field Values
-
NEEDED_PREREQUISITE
public static final String NEEDED_PREREQUISITE
Constants for neededPrerequisite attribute- See Also:
- Constant Field Values
-
FORM_OF_ASSESSMENT
public static final String FORM_OF_ASSESSMENT
Constants for formOfAssessment attribute- See Also:
- Constant Field Values
-
REQUIRED_SKILLS
public static final String REQUIRED_SKILLS
Constants for attribute 'requiredSkills'- See Also:
- Constant Field Values
-
ACQUIRED_SKILLS
public static final String ACQUIRED_SKILLS
Constants for repeater 'acquiredSkills'- See Also:
- Constant Field Values
-
SYLLABUS
public static final String SYLLABUS
Constants for syllabus attribute- See Also:
- Constant Field Values
-
ADDITIONAL_INFORMATIONS
public static final String ADDITIONAL_INFORMATIONS
Constants for additionalInformations attribute- See Also:
- Constant Field Values
-
ERASMUS_CODE
public static final String ERASMUS_CODE
Constants for erasmusCode attribute- See Also:
- Constant Field Values
-
TEACHING_LOCATION
public static final String TEACHING_LOCATION
Constants for teachingLocation attribute- See Also:
- Constant Field Values
-
MAX_NUMBER_OF_STUDENTS
public static final String MAX_NUMBER_OF_STUDENTS
Constants for maxNumberOfStudents attribute- See Also:
- Constant Field Values
-
TEACHING_TERM
public static final String TEACHING_TERM
Constants for teachingTerm attribute- See Also:
- Constant Field Values
-
TIME_SLOT
public static final String TIME_SLOT
Constants for timeSlot attribute- See Also:
- Constant Field Values
-
TRAINING_COURSE_DURATION
public static final String TRAINING_COURSE_DURATION
Constants for trainingCourseDuration attribute- See Also:
- Constant Field Values
-
FORMODFTEACHING_METHOD
public static final String FORMODFTEACHING_METHOD
Constants for teachingMethod attribute- See Also:
- Constant Field Values
-
FORMOFTEACHING_ORG
public static final String FORMOFTEACHING_ORG
Constants for formofteachingOrg attribute- See Also:
- Constant Field Values
-
TEACHING_ACTIVITY
public static final String TEACHING_ACTIVITY
Constants for formOfTeaching attribute- See Also:
- Constant Field Values
-
TEACHING_LANGUAGE
public static final String TEACHING_LANGUAGE
Constants for teachingLanguage attribute- See Also:
- Constant Field Values
-
START_DATE
public static final String START_DATE
Constants for startDate attribute- See Also:
- Constant Field Values
-
KEYWORDS
public static final String KEYWORDS
Constants for keywords attribute- See Also:
- Constant Field Values
-
WEB_LINK_LABEL
public static final String WEB_LINK_LABEL
Constants for webLinkLabel attribute- See Also:
- Constant Field Values
-
WEB_LINK_URL
public static final String WEB_LINK_URL
Constants for webLinkUrl attribute- See Also:
- Constant Field Values
-
LOM_SHEETS
public static final String LOM_SHEETS
Constants for lomSheets attribute- See Also:
- Constant Field Values
-
LOM_SHEET_URL
public static final String LOM_SHEET_URL
Constants for LOM Sheet URL attribute- See Also:
- Constant Field Values
-
LOM_SHEET_LABEL
public static final String LOM_SHEET_LABEL
Constants for LOM Sheet label attribute- See Also:
- Constant Field Values
-
ORG_UNITS
public static final String ORG_UNITS
Constants for orgunits attribute- See Also:
- Constant Field Values
-
CONTACTS
public static final String CONTACTS
Constants for attribute 'contacts'- See Also:
- Constant Field Values
-
CONTACTS_ROLE
public static final String CONTACTS_ROLE
Constants for attribute 'contacts/role'- See Also:
- Constant Field Values
-
CONTACTS_PERSONS
public static final String CONTACTS_PERSONS
Constants for attribute 'contacts/persons'- See Also:
- Constant Field Values
-
COURSE_TYPE
public static final String COURSE_TYPE
Constants for attribute 'courseType'- See Also:
- Constant Field Values
-
BIBLIOGRAPHY
public static final String BIBLIOGRAPHY
Constants for attribute 'bibliography'- See Also:
- Constant Field Values
-
SKILLS
public static final String SKILLS
Constants for attribute 'skills'- See Also:
- Constant Field Values
-
OPEN_TO_EXCHANGE_STUDENTS
public static final String OPEN_TO_EXCHANGE_STUDENTS
Constants for attribute 'openToExchangeStudents'- See Also:
- Constant Field Values
-
CHILD_COURSE_PARTS
public static final String CHILD_COURSE_PARTS
Constants for attribute 'courseParts'- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Course
public Course(Node node, String parentPath, CourseFactory factory)
Constructor.- Parameters:
node
- the JCR Node.parentPath
- the parent pathfactory
- the corresponding factory.
-
-
Method Detail
-
getCourseLists
public List<CourseList> getCourseLists()
Description copied from interface:CourseListContainer
Returns the child course lists- Specified by:
getCourseLists
in interfaceCourseListContainer
- Returns:
- the child course lists
-
getParentCourseLists
public List<CourseList> getParentCourseLists()
Get the parent course lists- Returns:
- The parent course lists
-
hasCourseLists
public boolean hasCourseLists()
Description copied from interface:CourseListContainer
Determines if thisCourseListContainer
contains child course list- Specified by:
hasCourseLists
in interfaceCourseListContainer
- Returns:
- true if this
CourseListContainer
contains at least a child course list
-
containsCourseList
public boolean containsCourseList(String clId)
Description copied from interface:CourseListContainer
Determines if thisCourseListContainer
contains the given course list as child- Specified by:
containsCourseList
in interfaceCourseListContainer
- Parameters:
clId
- id of theCourseList
to test- Returns:
- true if the course list is part of this
CourseListContainer
-
getRootPrograms
public Set<Program> getRootPrograms()
Description copied from interface:ProgramItem
Returns the programs holding this program part- Specified by:
getRootPrograms
in interfaceProgramItem
- Returns:
- the root programs
-
getContacts
public Set<String> getContacts()
Return the list of Persons in charge binded to this program- Returns:
- the id of contacts
-
getContactsByRole
public Map<String,List<String>> getContactsByRole()
Return the list of Persons in charge binded to this program- Returns:
- a list of roles and UUID
-
setContextPath
public void setContextPath(String path)
Set the parent path for links and breadcrumb- Parameters:
path
- the parent path
-
getContextPath
public String getContextPath()
Get the parent path. Can be null.- Returns:
- the parent path
-
getOrgUnits
public List<String> getOrgUnits()
Return the id of orgunit content binded to this course- Returns:
- The id of contents
-
getLocalOrgUnits
public List<String> getLocalOrgUnits()
Return the id of local orgunit contents binded to this course- Returns:
- The id of contents
-
getRemoteOrgUnits
public List<String> getRemoteOrgUnits()
Return the id of remote orgunit contents binded to this course- Returns:
- The id of contents
-
getCatalog
public String getCatalog()
Description copied from interface:ProgramItem
Get the catalog of this content- Specified by:
getCatalog
in interfaceProgramItem
- Returns:
- the name of catalog or null if not set
-
setCatalog
public void setCatalog(String catalog) throws AmetysRepositoryException
Description copied from interface:ProgramItem
Set the catalog- Specified by:
setCatalog
in interfaceProgramItem
- Parameters:
catalog
- the name of catalog to set- Throws:
AmetysRepositoryException
- if an error occurred
-
getCode
public String getCode()
Description copied from interface:ProgramItem
Get the CDM-fr of theProgramItem
- Specified by:
getCode
in interfaceProgramItem
- Returns:
- the CDM-fr code
-
setCode
public void setCode(String code) throws AmetysRepositoryException
Description copied from interface:ProgramItem
Set the CDM-fr code- Specified by:
setCode
in interfaceProgramItem
- Parameters:
code
- the CDM-fr to set- Throws:
AmetysRepositoryException
- if an error occurs
-
getDescription
public RichText getDescription()
Get the description- Returns:
- the description or null
-
getObjectives
public RichText getObjectives()
Get the objectives- Returns:
- objectives
-
getCourseParts
public List<CoursePart> getCourseParts()
Get the course parts.- Returns:
- The
List
of attachedCoursePart
s
-
getNeededPrerequisite
public RichText getNeededPrerequisite()
Get the needed prerequisites- Returns:
- the needed prerequisites or null if not set
-
getFormOfAssessment
public RichText getFormOfAssessment()
Get the formOfAssessment attribute- Returns:
- the formOfAssessment or null if not set
-
getSyllabus
public RichText getSyllabus()
Get the syllabus- Returns:
- the syllabus or null if not set
-
getLOMSheets
public Set<LOMSheet> getLOMSheets()
Get the list of LOM sheets- Returns:
- the list of LOMsheets or an empty list
-
setLOMSheets
public void setLOMSheets(Set<LOMSheet> sheets)
Set the LOM sheets- Parameters:
sheets
- The LOM sheets
-
hasLOMSheet
public boolean hasLOMSheet(LOMSheet lomSheet)
Determines if the course has LOM sheet- Parameters:
lomSheet
- The LOM sheet to test- Returns:
true
if the course has LOM sheet
-
getAdditionalInformations
public RichText getAdditionalInformations()
Get the additional information- Returns:
- the additional information
-
getErasmusCode
public String getErasmusCode()
Get the Erasmus code- Returns:
- the Erasmus code
-
getTeachingLocation
public String[] getTeachingLocation()
Get the teaching location- Returns:
- the teaching location
-
setTeachingLocation
public void setTeachingLocation(String[] teachingLocation) throws AmetysRepositoryException
Set the teaching location- Parameters:
teachingLocation
- the teaching location to set- Throws:
AmetysRepositoryException
- if failed to set attribute
-
getEcts
public double getEcts()
Get the ECTS- Returns:
- the ECTS
-
getNumberOfHours
public double getNumberOfHours()
Get the number of hours- Returns:
- the number of hours
-
getMaxNumberOfStudents
public String getMaxNumberOfStudents()
Get the effectives- Returns:
- the effectives
- Throws:
AmetysRepositoryException
- if failed to get attribute
-
getTeachingTerm
public String getTeachingTerm()
Get the teaching term- Returns:
- the teaching term
-
getFormOfTeachingMethod
public String getFormOfTeachingMethod()
Get the teaching method- Returns:
- the teaching method
-
getFormOfTeachingOrgs
public String[] getFormOfTeachingOrgs()
Get the teaching organizations- Returns:
- the teaching organizations
-
getTeachingActivity
public String getTeachingActivity()
Get the teaching activity- Returns:
- the teaching activity
-
getTeachingLanguage
public String[] getTeachingLanguage()
Get the teaching language- Returns:
- the teaching language
-
getRequiredSkills
public String[] getRequiredSkills()
Get the required skills- Returns:
- the required skills
-
getStartDate
public LocalDate getStartDate()
Get the start date- Returns:
- the start date
-
getTimeSlot
public String getTimeSlot()
Get the time slot- Returns:
- the time slot
-
getKeywords
public String[] getKeywords()
Get the keywords- Returns:
- the keywords
-
getWebLinkLabel
public String getWebLinkLabel()
Get the web link label- Returns:
- the web link label
-
getWebLinkUrl
public String getWebLinkUrl()
Get the web link URL- Returns:
- the web link URL
-
getCourseType
public String getCourseType()
Get the course type (nature)- Returns:
- the course type
-
getBibliography
public RichText getBibliography()
Get the bibliography- Returns:
- the bibliography
-
isOpenToExchangeStudents
public boolean isOpenToExchangeStudents()
Is open to exchange students- Returns:
true
if the course is open to exchange students
-
getCdmCode
public String getCdmCode()
Description copied from interface:CDMEntity
Get the CDM code. This code is not empty only if the CDM entity was imported from a CDMfr file.- Specified by:
getCdmCode
in interfaceCDMEntity
- Returns:
- the CDM code. Can be null;
-
setCdmCode
public void setCdmCode(String cdmCode)
Description copied from interface:CDMEntity
Set the CDM code. This code should be setted only when the CDM entity was imported from a CDMfr file.- Specified by:
setCdmCode
in interfaceCDMEntity
- Parameters:
cdmCode
- the CDM code to set
-
-