public class CoursePart extends ModifiableDefaultContent<CoursePartFactory>
CoursePartReactionableObject.ReactionType| Modifier and Type | Field and Description |
|---|---|
static String |
METADATA_CATALOG
The metadata holding the catalog
|
static String |
METADATA_CODE
The metadata holding the code
|
static String |
METADATA_COURSE_HOLDER
Name of metadata for course holder
|
static String |
METADATA_NATURE
Constants for metadata 'nature'
|
static String |
METADATA_NB_HOURS
Constants for metadata 'nbHours'
|
static String |
METADATA_PARENT_COURSES
Name of metadata for parent courses
|
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_REFERENCESPROTECTED_PROPERTIESATTRIBUTE_TITLE, METADATA_TITLE| Constructor and Description |
|---|
CoursePart(Node node,
String parentPath,
CoursePartFactory factory)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCatalog()
Get the catalog.
|
String |
getCode()
Get the code.
|
Course |
getCourseHolder()
Get the course holder
|
List<Course> |
getCourses()
Get the parent courses.
|
String |
getNature()
Get the nature.
|
double |
getNumberOfHours()
Get the number of hours
|
Set<Program> |
getRootPrograms()
Returns the programs holding this course part through the courses
|
void |
setCatalog(String catalog)
Set the catalog.
|
void |
setCode(String code)
Set the code.
|
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, untagaddReaction, 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, getDefinition, getFirstValidationDate, getLanguage, getLastContributor, getLastMajorValidationDate, getLastModified, getLastValidationDate, getMixinTypes, getModels, getOutgoingReferences, getReactionUsers, getReferencingContents, getRootAttachments, getTags, getTitle, getTitle, getTypes, hasChild, hasReferencingContents, removeReactionaddAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, addLabel, checkpoint, copyNode, getAllLabels, getAllowedGroups, getAllowedProfilesForAnonymous, getAllowedProfilesForAnyConnectedUser, getAllowedProfilesForGroups, getAllowedProfilesForUser, getAllowedProfilesForUsers, getAllowedUsers, getAllRevisions, getBaseNode, getBaseVersion, getDeniedGroups, getDeniedProfilesForAnonymous, getDeniedProfilesForAnyConnectedUser, getDeniedProfilesForGroups, getDeniedProfilesForUser, getDeniedProfilesForUsers, getDeniedUsers, getLabels, getLabels, getNode, getRevision, getRevisionTimestamp, getRevisionTimestamp, getUnversionedMetadataHolder, getVersionHistory, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsers, removeLabel, restoreFromLabel, restoreFromNode, restoreFromRevision, switchToLabel, switchToRevision_getFactory, _invalidateName, _invalidateParentPath, getId, getMetadataHolder, getName, getParent, getParentPath, getPath, needsSave, rename, revertChanges, saveChangesequals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetComposite, getComposite, getRepeater, getRepeater, removeValue, setValuegetCreationDate, getCreator, getDefinition, getFirstValidationDate, getLanguage, getLastContributor, getLastMajorValidationDate, getLastModified, getLastValidationDate, getMixinTypes, getOutgoingReferences, getReferencingContents, getRootAttachments, getTitle, getTitle, getTypes, hasReferencingContentsgetType, getValue, getValue, hasValue, isMultiplecopyTo, getDataNamestoSAX, toSAXdataToSAX, dataToSAX, dataToSAX, dataToSAXgetDCContributor, getDCCoverage, getDCCreator, getDCDate, getDCDescription, getDCFormat, getDCIdentifier, getDCLanguage, getDCPublisher, getDCRelation, getDCRights, getDCSource, getDCSubject, getDCTitle, getDCTypegetTagsaddAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsersgetAllowedGroups, getAllowedProfilesForAnonymous, getAllowedProfilesForAnyConnectedUser, getAllowedProfilesForGroups, getAllowedProfilesForUser, getAllowedProfilesForUsers, getAllowedUsers, getDeniedGroups, getDeniedProfilesForAnonymous, getDeniedProfilesForAnyConnectedUser, getDeniedProfilesForGroups, getDeniedProfilesForUser, getDeniedProfilesForUsers, getDeniedUsersgetNodeneedsSave, rename, revertChanges, saveChangesequals, getId, getName, getParent, getParentPath, getPath, hashCodegetChildAt, getChildPositionpublic static final String METADATA_CATALOG
public static final String METADATA_CODE
public static final String METADATA_NATURE
public static final String METADATA_NB_HOURS
public static final String METADATA_COURSE_HOLDER
public static final String METADATA_PARENT_COURSES
public CoursePart(Node node, String parentPath, CoursePartFactory factory)
node - the JCR Node.parentPath - the parent pathfactory - the corresponding factory.public String getCatalog()
public void setCatalog(String catalog) throws AmetysRepositoryException
catalog - The catalogAmetysRepositoryException - if an error occurspublic void setCode(String code) throws AmetysRepositoryException
code - The codeAmetysRepositoryException - if an error occurspublic double getNumberOfHours()
public Course getCourseHolder()
public List<Course> getCourses()
public Set<Program> getRootPrograms()