Package org.ametys.odf.course
Class Course
-
- All Implemented Interfaces:
CommentableContent,Content,ModifiableContent,ModifiableWorkflowAwareContent,ReactionableObject,ReportableObject,TagAwareAmetysObject,TaggableAmetysObject,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,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 private String_contextPathstatic StringACQUIRED_SKILLSConstants for repeater 'acquiredSkills'static StringADDITIONAL_INFORMATIONSConstants for additionalInformations attributestatic StringBIBLIOGRAPHYConstants for attribute 'bibliography'static StringCDM_CODEMandatory Identifier to generate the CDM-fr idstatic StringCHILD_COURSE_LISTSName of attribute for parent course listsstatic StringCHILD_COURSE_PARTSConstants for attribute 'courseParts'static StringCONTACTSConstants for attribute 'contacts'static StringCONTACTS_PERSONSConstants for attribute 'contacts/persons'static StringCONTACTS_ROLEConstants for attribute 'contacts/role'static StringCOURSE_TYPEConstants for attribute 'courseType'static StringDESCRIPTIONConstants for description attributestatic StringECTSConstants for ects attributestatic StringERASMUS_CODEConstants for erasmusCode attributestatic StringFORM_OF_ASSESSMENTConstants for formOfAssessment attributestatic StringFORMODFTEACHING_METHODConstants for teachingMethod attributestatic StringFORMOFTEACHING_ORGConstants for formofteachingOrg attributestatic StringKEYWORDSConstants for keywords attributestatic StringLEVELConstants for level attributestatic StringLOM_SHEET_LABELConstants for LOM Sheet label attributestatic StringLOM_SHEET_URLConstants for LOM Sheet URL attributestatic StringLOM_SHEETSConstants for lomSheets attributestatic StringMAX_NUMBER_OF_STUDENTSConstants for maxNumberOfStudents attributestatic StringNEEDED_PREREQUISITEConstants for neededPrerequisite attributestatic StringNUMBER_OF_HOURSConstants for nbHours attributestatic StringOBJECTIVESConstants for objectives attributestatic StringOPEN_TO_EXCHANGE_STUDENTSConstants for attribute 'openToExchangeStudents'static StringORG_UNITSConstants for orgunits attributestatic StringPARENT_COURSE_LISTSName of attribute for parent course listsstatic StringREQUIRED_SKILLSConstants for attribute 'requiredSkills'static StringSKILLSConstants for attribute 'skills'static StringSTART_DATEConstants for startDate attributestatic StringSYLLABUSConstants for syllabus attributestatic StringTEACHING_ACTIVITYConstants for formOfTeaching attributestatic StringTEACHING_LANGUAGEConstants for teachingLanguage attributestatic StringTEACHING_LOCATIONConstants for teachingLocation attributestatic StringTEACHING_TERMConstants for teachingTerm attributestatic StringTIME_SLOTConstants for timeSlot attributestatic StringTRAINING_COURSE_DURATIONConstants for trainingCourseDuration attributestatic StringWEB_LINK_LABELConstants for webLinkLabel attributestatic StringWEB_LINK_URLConstants 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, 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 voidaddOrgUnit(String orgUnitId)Add a orgunit to the referenced orgunitsbooleancontainsCourseList(String clId)Determines if thisCourseListContainercontains the given course list as childRichTextgetAdditionalInformations()Get the additional informationRichTextgetBibliography()Get the bibliographyStringgetCatalog()Get the catalog of this contentStringgetCdmCode()Get the CDM code.StringgetCDMId()Returns the CDM id.StringgetCode()Get the CDM-fr of theProgramItemSet<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 programStringgetContextPath()Get the parent path.List<CourseList>getCourseLists()Returns the child course listsList<CoursePart>getCourseParts()Get the course parts.StringgetCourseType()Get the course type (nature)RichTextgetDescription()Get the descriptiondoublegetEcts()Get the ECTSStringgetErasmusCode()Get the Erasmus codeRichTextgetFormOfAssessment()Get the formOfAssessment attributeStringgetFormOfTeachingMethod()Get the teaching methodString[]getFormOfTeachingOrgs()Get the teaching organizationsString[]getKeywords()Get the keywordsStringgetLevel()Get the levelList<String>getLocalOrgUnits()Return the id of local orgunit contents binded to this courseSet<LOMSheet>getLOMSheets()Get the list of LOM sheetsStringgetMaxNumberOfStudents()Get the effectivesRichTextgetNeededPrerequisite()Get the needed prerequisitesdoublegetNumberOfHours()Get the number of hoursRichTextgetObjectives()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 partRichTextgetSkills()Get the skillsLocalDategetStartDate()Get the start dateRichTextgetSyllabus()Get the syllabusStringgetTeachingActivity()Get the teaching activityString[]getTeachingLanguage()Get the teaching languageString[]getTeachingLocation()Get the teaching locationStringgetTeachingTerm()Get the teaching termStringgetTimeSlot()Get the time slotStringgetWebLinkLabel()Get the web link labelStringgetWebLinkUrl()Get the web link URLbooleanhasCourseLists()Determines if thisCourseListContainercontains child course listbooleanhasLOMSheet(LOMSheet lomSheet)Determines if the course has LOM sheetbooleanisOpenToExchangeStudents()Is open to exchange studentsvoidremoveOrgUnit(String orgUnitId)Remove a orgunit from referenced orgunitsvoidremoveReference(String attributeName, String value)Remove reference from local and remote attributevoidsetCatalog(String catalog)Set the catalogvoidsetCdmCode(String cdmCode)Set the CDM code.voidsetCode(String code)Set the CDM-fr codevoidsetContextPath(String path)Set the parent path for links and breadcrumbvoidsetLOMSheets(Set<LOMSheet> sheets)Set the LOM sheetsvoidsetTeachingLocation(String[] teachingLocation)Set the teaching location-
Methods inherited from class org.ametys.cms.repository.ModifiableDefaultContent
createComment, createComment, 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, setLanguage, setLastContributor, setLastMajorValidationDate, setLastModified, setLastValidationDate, setMixinTypes, setOutgoingReferences, setProposalDate, setTitle, setTitle, setTypes, 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, getLanguage, getLastContributor, getLastMajorValidationDate, getLastModified, getLastValidationDate, getMixinModels, getMixinTypes, getModels, getOutgoingReferences, getReactionUsers, getReferencingContents, getReportsCount, getRootAttachments, getTags, getTitle, getTitle, getTypes, hasChild, hasReferencingContents, removeReaction, setReportsCount, toSAX
-
Methods inherited from class org.ametys.plugins.repository.jcr.DefaultAmetysObject
addAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, addLabel, checkpoint, copyNode, disallowInheritance, getAllLabels, getAllowedGroups, getAllowedProfilesForAnonymous, getAllowedProfilesForAnyConnectedUser, getAllowedProfilesForGroups, getAllowedProfilesForUser, getAllowedProfilesForUsers, getAllowedUsers, getAllRevisions, getBaseNode, getBaseVersion, getDeniedGroups, getDeniedProfilesForAnonymous, getDeniedProfilesForAnyConnectedUser, getDeniedProfilesForGroups, getDeniedProfilesForUser, getDeniedProfilesForUsers, getDeniedUsers, getLabels, getLabels, getNode, 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
getAllowedGroups, getAllowedProfilesForAnonymous, getAllowedProfilesForAnyConnectedUser, getAllowedProfilesForGroups, getAllowedProfilesForUser, getAllowedProfilesForUsers, getAllowedUsers, getDeniedGroups, getDeniedProfilesForAnonymous, getDeniedProfilesForAnyConnectedUser, getDeniedProfilesForGroups, getDeniedProfilesForUser, getDeniedProfilesForUsers, getDeniedUsers, 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, getLanguage, getLastContributor, getLastMajorValidationDate, getLastModified, getLastValidationDate, getMixinTypes, getOutgoingReferences, getReferencingContents, getRootAttachments, getTitle, getTitle, getTypes, hasReferencingContents, toSAX
-
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.DataAwareAmetysObject
copyTo, dataToSAX
-
Methods inherited from interface org.ametys.plugins.repository.data.holder.DataHolder
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
dataToSAX, getDataNames, getDefinition, getExternalValue, getLocalValue, getModel, getStatus, getValue, getValue, hasDefinition, hasExternalValue, hasLocalValue, hasValue
-
Methods inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
dataToSAX, dataToSAX, dataToSAX, getDataNames, getType, getValue, hasValue, 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, getRepeater, getRepeater, getRepositoryData, removeExternalValue, removeLocalValue, removeValue, setExternalValue, setLocalValue, setStatus, setValue, synchronizeValues, synchronizeValues
-
Methods inherited from interface org.ametys.plugins.repository.data.holder.ModifiableModelAwareDataHolder
synchronizeValues, synchronizeValues, synchronizeValues, synchronizeValues, synchronizeValues, synchronizeValues
-
Methods inherited from interface org.ametys.cms.repository.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
-
_contextPath
private String _contextPath
-
-
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:CourseListContainerReturns the child course lists- Specified by:
getCourseListsin 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:CourseListContainerDetermines if thisCourseListContainercontains child course list- Specified by:
hasCourseListsin interfaceCourseListContainer- Returns:
- true if this
CourseListContainercontains at least a child course list
-
containsCourseList
public boolean containsCourseList(String clId)
Description copied from interface:CourseListContainerDetermines if thisCourseListContainercontains the given course list as child- Specified by:
containsCourseListin interfaceCourseListContainer- Parameters:
clId- id of theCourseListto test- Returns:
- true if the course list is part of this
CourseListContainer
-
getRootPrograms
public Set<Program> getRootPrograms()
Description copied from interface:ProgramItemReturns the programs holding this program part- Specified by:
getRootProgramsin interfaceProgramItem- Returns:
- the root programs
-
removeReference
public void removeReference(String attributeName, String value)
Remove reference from local and remote attribute- Parameters:
attributeName- The attribute namevalue- The value of reference to remove
-
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
-
addOrgUnit
public void addOrgUnit(String orgUnitId)
Add a orgunit to the referenced orgunits- Parameters:
orgUnitId- the id of orgunit content
-
removeOrgUnit
public void removeOrgUnit(String orgUnitId) throws AmetysRepositoryException
Remove a orgunit from referenced orgunits- Parameters:
orgUnitId- the id of orgunit content- Throws:
AmetysRepositoryException- if failed to remove orgunit
-
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:ProgramItemGet the catalog of this content- Specified by:
getCatalogin interfaceProgramItem- Returns:
- the name of catalog or null if not set
-
setCatalog
public void setCatalog(String catalog) throws AmetysRepositoryException
Description copied from interface:ProgramItemSet the catalog- Specified by:
setCatalogin interfaceProgramItem- Parameters:
catalog- the name of catalog to set- Throws:
AmetysRepositoryException- if an error occurred
-
getCode
public String getCode()
Description copied from interface:ProgramItemGet the CDM-fr of theProgramItem- Specified by:
getCodein interfaceProgramItem- Returns:
- the CDM-fr code
-
setCode
public void setCode(String code) throws AmetysRepositoryException
Description copied from interface:ProgramItemSet the CDM-fr code- Specified by:
setCodein 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
Listof attachedCourseParts
-
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:
trueif 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:
trueif the course is open to exchange students
-
getCdmCode
public String getCdmCode()
Description copied from interface:CDMEntityGet the CDM code. This code is not empty only if the CDM entity was imported from a CDMfr file.- Specified by:
getCdmCodein interfaceCDMEntity- Returns:
- the CDM code. Can be null;
-
setCdmCode
public void setCdmCode(String cdmCode)
Description copied from interface:CDMEntitySet the CDM code. This code should be setted only when the CDM entity was imported from a CDMfr file.- Specified by:
setCdmCodein interfaceCDMEntity- Parameters:
cdmCode- the CDM code to set
-
-