public class CoursePart extends ModifiableDefaultContent<CoursePartFactory>
CoursePart
ReactionableObject.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_REFERENCES
PROTECTED_PROPERTIES
ATTRIBUTE_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, untag
addReaction, 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, removeReaction
addAllowedGroups, 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, saveChanges
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getComposite, getComposite, getRepeater, getRepeater, removeValue, setValue
getCreationDate, getCreator, getDefinition, getFirstValidationDate, getLanguage, getLastContributor, getLastMajorValidationDate, getLastModified, getLastValidationDate, getMixinTypes, getOutgoingReferences, getReferencingContents, getRootAttachments, getTitle, getTitle, getTypes, hasReferencingContents
getType, getValue, getValue, hasValue, isMultiple
copyTo, getDataNames
toSAX, toSAX
dataToSAX, dataToSAX, dataToSAX, dataToSAX
getDCContributor, getDCCoverage, getDCCreator, getDCDate, getDCDescription, getDCFormat, getDCIdentifier, getDCLanguage, getDCPublisher, getDCRelation, getDCRights, getDCSource, getDCSubject, getDCTitle, getDCType
getTags
addAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsers
getAllowedGroups, getAllowedProfilesForAnonymous, getAllowedProfilesForAnyConnectedUser, getAllowedProfilesForGroups, getAllowedProfilesForUser, getAllowedProfilesForUsers, getAllowedUsers, getDeniedGroups, getDeniedProfilesForAnonymous, getDeniedProfilesForAnyConnectedUser, getDeniedProfilesForGroups, getDeniedProfilesForUser, getDeniedProfilesForUsers, getDeniedUsers
getNode
needsSave, rename, revertChanges, saveChanges
equals, getId, getName, getParent, getParentPath, getPath, hashCode
getChildAt, getChildPosition
public 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()