Package org.ametys.cms.repository
Interface ModifiableContent
- All Superinterfaces:
ACLAmetysObject,AmetysObject,Content,DataAwareAmetysObject,DataHolder,DublinCoreAwareAmetysObject,IndexableDataHolder,MetadataAwareAmetysObject,ModelAwareDataAwareAmetysObject,ModelAwareDataAwareAmetysObject,ModelAwareDataHolder,ModifiableACLAmetysObject,ModifiableAmetysObject,ModifiableDataHolder,ModifiableDublinCoreAwareAmetysObject,ModifiableIndexableDataHolder,ModifiableMetadataAwareAmetysObject,ModifiableModelAwareDataAwareAmetysObject,ModifiableModelAwareDataAwareAmetysObject,ModifiableModelAwareDataHolder,RemovableAmetysObject,TagAwareAmetysObject,TaggableAmetysObject
- All Known Subinterfaces:
CommentableContent,ModifiableWebContent,ModifiableWorkflowAwareContent
- All Known Implementing Classes:
AbstractProgram,AbstractProgramPart,AbstractTraversableProgramPart,Container,Course,CourseList,CoursePart,ModifiableDefaultContent,ModifiableDefaultWebContent,OrgUnit,Person,Program,SubProgram
public interface ModifiableContent
extends Content, ModifiableModelAwareDataAwareAmetysObject, ModifiableMetadataAwareAmetysObject, ModifiableDublinCoreAwareAmetysObject, RemovableAmetysObject, TaggableAmetysObject
Modifiable content abstraction
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.cms.repository.Content
Content.ReferencingContentsSearch -
Field Summary
Fields inherited from interface org.ametys.cms.repository.Content
ATTRIBUTE_TITLE, METADATA_TITLEFields inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
ALTERNATIVE_SUFFIX, COMMENTS_SUFFIX, STATUS_SUFFIX -
Method Summary
Modifier and TypeMethodDescriptionvoidfillContent(Node node, XMLValuesExtractorAdditionalDataGetter additionalDataGetter) Fills the current content with the values from the providedNode.voidsetCreationDate(ZonedDateTime creationDate) Set the creation date.voidsetCreator(UserIdentity user) Set the login of the creator.voidsetFirstValidationDate(ZonedDateTime validationDate) Set the first validation datevoidSet the identity of the first validator.voidSet the login of the last contributor.voidsetLastMajorValidationDate(ZonedDateTime validationDate) Set the last validation date resulting from a major modificationvoidSet the identity of the last major validator.voidsetLastModified(ZonedDateTime lastModified) Set the last modification date.voidsetLastValidationDate(ZonedDateTime validationDate) Set the last validation datevoidsetLastValidator(UserIdentity user) Set the identity of the last validator.voidsetOutgoingReferences(Map<String, OutgoingReferences> references) Store the outgoing references of the content.voidSet the title.voidSet the title from the given localeMethods inherited from interface org.ametys.plugins.repository.ACLAmetysObject
getProfilesForAnonymousAndAnyConnectedUser, getProfilesForGroups, getProfilesForUsers, isInheritanceDisallowedMethods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCodeMethods inherited from interface org.ametys.cms.repository.Content
getCreationDate, getCreator, getFirstValidationDate, getFirstValidator, getInternalDataHolder, getLanguage, getLastContributor, getLastMajorValidationDate, getLastMajorValidator, getLastModified, getLastValidationDate, getLastValidator, getMixinTypes, getOutgoingReferences, getReferencingContents, getRootAttachments, getTitle, getTitle, getTypes, hasReferencingContents, searchReferencingContents, setLanguage, setMixinTypes, setType, setTypes, toSAXMethods inherited from interface org.ametys.plugins.repository.data.ametysobject.DataAwareAmetysObject
copyTo, dataToJSON, dataToJSON, dataToSAX, dataToSAXMethods inherited from interface org.ametys.plugins.repository.dublincore.DublinCoreAwareAmetysObject
getDCContributor, getDCCoverage, getDCCreator, getDCDate, getDCDescription, getDCFormat, getDCIdentifier, getDCLanguage, getDCPublisher, getDCRelation, getDCRights, getDCSource, getDCSubject, getDCTitle, getDCTypeMethods inherited from interface org.ametys.cms.data.ametysobject.ModelAwareDataAwareAmetysObject
getComposite, getDataHolder, getExternalComposite, getExternalRepeater, getLocalComposite, getLocalRepeater, getParentDataHolder, getRepeater, getRootDataHolder, getSystemPropertyExtensionPoint, indexData, indexDataMethods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModelAwareDataAwareAmetysObject
dataToJSON, dataToJSONForEdition, dataToMap, dataToSAX, dataToSAXForEdition, getComments, getDataNames, getDefinition, getExternalValue, getLocalValue, getModel, getStatus, getValue, getValue, hasComments, hasDefinition, hasExternalValue, hasExternalValueOrEmpty, hasLocalValue, hasLocalValueOrEmpty, hasValue, hasValueOrEmptyMethods inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
commentsToSAX, dataToJSON, dataToJSON, dataToJSON, dataToMap, dataToMap, dataToMap, dataToSAX, dataToSAX, dataToSAX, getDataNames, getType, getValue, hasValue, hasValueOrEmpty, isMultipleMethods 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, removeDeniedUsersMethods inherited from interface org.ametys.plugins.repository.ModifiableAmetysObject
needsSave, rename, revertChanges, saveChangesMethods inherited from interface org.ametys.plugins.repository.data.holder.ModifiableDataHolder
getRepositoryDataMethods inherited from interface org.ametys.plugins.repository.dublincore.ModifiableDublinCoreAwareAmetysObject
setDCContributor, setDCCoverage, setDCCreator, setDCDate, setDCDescription, setDCFormat, setDCIdentifier, setDCLanguage, setDCPublisher, setDCRelation, setDCRights, setDCSource, setDCSubject, setDCTitle, setDCTypeMethods inherited from interface org.ametys.plugins.repository.metadata.ModifiableMetadataAwareAmetysObject
getMetadataHolderMethods inherited from interface org.ametys.cms.data.ametysobject.ModifiableModelAwareDataAwareAmetysObject
getComposite, getComposite, getDataHolder, getExternalComposite, getExternalComposite, getExternalRepeater, getExternalRepeater, getLocalComposite, getLocalComposite, getLocalRepeater, getLocalRepeater, getParentDataHolder, getRepeater, getRepeater, getRootDataHolderMethods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModifiableModelAwareDataAwareAmetysObject
getRepositoryData, removeExternalizableMetadataIfExists, removeExternalValue, removeLocalValue, removeValue, setComments, setExternalValue, setLocalValue, setStatus, setValue, synchronizeValues, synchronizeValues, synchronizeValues, synchronizeValuesMethods inherited from interface org.ametys.plugins.repository.RemovableAmetysObject
removeMethods inherited from interface org.ametys.plugins.repository.tag.TagAwareAmetysObject
getTagsMethods inherited from interface org.ametys.plugins.repository.tag.TaggableAmetysObject
tag, untag
-
Method Details
-
setTitle
Set the title from the given locale- Parameters:
title- the title.locale- The locale- Throws:
AmetysRepositoryException- if an error occurs.
-
setTitle
Set the title. Be careful ! Use only if content's title is not a multilingual string. If not sure usesetTitle(String, Locale)instead.- Parameters:
title- the title.- Throws:
AmetysRepositoryException- if an error occurs.
-
setCreator
Set the login of the creator.- Parameters:
user- the creator.- Throws:
AmetysRepositoryException- if an error occurs.
-
setCreationDate
Set the creation date.- Parameters:
creationDate- the creation date.- Throws:
AmetysRepositoryException- if an error occurs.
-
setLastContributor
Set the login of the last contributor.- Parameters:
user- the last contributor.- Throws:
AmetysRepositoryException- if an error occurs.
-
setLastModified
Set the last modification date.- Parameters:
lastModified- the last modification date.- Throws:
AmetysRepositoryException- if an error occurs.
-
setFirstValidator
Set the identity of the first validator.- Parameters:
user- the first validator.- Throws:
AmetysRepositoryException- if an error occurs.
-
setFirstValidationDate
Set the first validation date- Parameters:
validationDate- the validation date.- Throws:
AmetysRepositoryException- if an error occurs.
-
setLastValidator
Set the identity of the last validator.- Parameters:
user- the last validator.- Throws:
AmetysRepositoryException- if an error occurs.
-
setLastValidationDate
Set the last validation date- Parameters:
validationDate- the validation date.- Throws:
AmetysRepositoryException- if an error occurs.
-
setLastMajorValidator
Set the identity of the last major validator.- Parameters:
user- the last major validator.- Throws:
AmetysRepositoryException- if an error occurs.
-
setLastMajorValidationDate
Set the last validation date resulting from a major modification- Parameters:
validationDate- the validation date.- Throws:
AmetysRepositoryException- if an error occurs.
-
setOutgoingReferences
void setOutgoingReferences(Map<String, OutgoingReferences> references) throws AmetysRepositoryExceptionStore the outgoing references of the content.- Parameters:
references- A non null map of outgoing references grouped by metadata (key are metadata path)- Throws:
AmetysRepositoryException- if an error occurs.
-
fillContent
void fillContent(Node node, XMLValuesExtractorAdditionalDataGetter additionalDataGetter) throws Exception Fills the current content with the values from the providedNode.
This is the anti-operation ofContent.toSAX(org.xml.sax.ContentHandler, java.util.Locale, org.ametys.runtime.model.View, boolean), as the Node should be a Node previously generated with SAX events from this method.- Parameters:
node- The node to read for retrieving values to filladditionalDataGetter- The object that will retrieve potential additional data for the content's attributes- Throws:
Exception- if an exception occurs
-