public class ODFContentType extends DefaultContentType
DefaultContentType.AnnotableDefinition, DefaultContentType.MetadataAndRepeaterDefinitionParser, DefaultContentType.RestrictedDefinition, DefaultContentType.RestrictedMetadataDefinition, DefaultContentType.RestrictedRepeaterDefinition, DefaultContentType.RestrictedRichTextDefinition
Modifier and Type | Field and Description |
---|---|
protected ODFContentTypeMetadataManager |
_odfContentTypeMetadataManager
The ODF content type metadata manager
|
protected ShareableCourseHelper |
_shareableCourseHelper
The shareable course helper
|
protected ShareableCourseStatusHelper |
_shareableCourseStatusHelper
The shareable course status helper
|
__GLOBAL_VALIDATOR_ROLE_PREFIX, _abstract, _attributeDefinitionParser, _cocoonContext, _compositeDefinitionParser, _context, _dublinCoreAttributeDefinitionParser, _globalValidators, _hierarchicalSimpleContentsHelper, _indexingModel, _manager, _metadata, _modelItems, _parentMetadataName, _repeaterDefinitionParser, _restrictedModelItemHelper, _richTextOutgoingReferencesExtractor, _richTextTransformer, _richTextUpdater, _right, _tags, _views
_allMetadataSetsForEdition, _allMetadataSetsForView, _category, _contentTypesHelper, _cssFiles, _cTypeEP, _dcProvider, _defaultTitle, _description, _iconDecorator, _iconGlyph, _id, _label, _largeIcon, _mediumIcon, _metadataSetsForEdition, _metadataSetsForView, _pluginName, _smallIcon, _srcResolver, _superTypeIds
TAG_MIXIN, TAG_PRIVATE, TAG_REFERENCE_TABLE, TAG_RENDERABLE_FERENCE_TABLE
Constructor and Description |
---|
ODFContentType() |
Modifier and Type | Method and Description |
---|---|
boolean |
canRead(Content content,
MetadataDefinition metadataDef)
Determine whether a metadata can be read at this time.
|
boolean |
canWrite(Content content,
MetadataDefinition metadataDef)
Determine whether a metadata can be written at this time.
|
Map<String,Object> |
getAdditionalData(Content content)
Get the additional data relative to its
ContentType . |
void |
service(ServiceManager manager) |
_addSemanticAnnotations, _checkAttributeTypes, _checkAttributeTypes, _checkContentAttribute, _checkContentAttributes, _checkContentMutualReferences, _checkContentMutualReferences, _checkContentTypeSimplicity, _checkMetadataDefinition, _checkMetadataTypes, _computeIndexingModelReferences, _configureAttributeDefinitions, _configureCustomIndexingFields, _configureCustomMetadataIndexingFields, _configureGlobalValidators, _configureIndexingModel, _configureMetadataIndexingFields, _configureParentContentType, _configureViews, _fillViewItems, _getApplicableAttributes, _getApplicableViews, _getRestrictionsForPath, _getSemanticAnnotations, _getViewToInclude, _parseAllAttributes, _parseAllMetadatas, _parseDublinCoreAttributes, _parseDublinCoreMetadata, _parseDublinCoreViewItems, _parseMetadata, _parseModelItem, _parseModelViewItem, _parseSimpleViewItemGroup, _parseTags, _parseView, _parseViews, configure, contextualize, dispose, getFamilyId, getGlobalValidators, getIndexingFieldDefinitions, getIndexingModel, getMetadataDefinition, getMetadataDefinitionByPath, getMetadataNames, getModelItems, getOverridenConfiguration, getParentMetadata, getRichTextUpdater, getRight, getRootConfiguration, getTags, getView, getViewNames, hasMetadataDefinition, hasTag, isAbstract, isMixin, isMultilingual, isPrivate, isReferenceTable, isSimple, postInitialize, saxContentTypeAdditionalData, toString
_configureCSSFiles, _configureIcons, _configureLabels, _configureMetadataSets, _configureSuperTypes, _fillMetadataSetDublinCore, _fillMetadataSetElement, _getApplicableMetadataSets, _getDefaultCatalogue, _getIconPath, _parseI18nizableText, _parseI18nizableText, _parseIcon, _parseIcon, _parseIconGlyph, _parseMetadataSet, _parseMetadataSets, getCategory, getCSSFiles, getDefaultTitle, getDescription, getEditionMetadataSetNames, getIconDecorator, getIconGlyph, getId, getLabel, getLargeIcon, getMediumIcon, getMetadataSetForEdition, getMetadataSetForView, getPluginName, getSmallIcon, getSupertypeIds, getViewMetadataSetNames, setPluginInfo
getLogger, setLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCategory, getCSSFiles, getDefaultTitle, getDescription, getEditionMetadataSetNames, getIconDecorator, getIconGlyph, getId, getLabel, getLargeIcon, getMediumIcon, getMetadataSetForEdition, getMetadataSetForView, getPluginName, getSmallIcon, getSupertypeIds, getViewMetadataSetNames
getChild, getModelItem, hasModelItem
protected ODFContentTypeMetadataManager _odfContentTypeMetadataManager
protected ShareableCourseStatusHelper _shareableCourseStatusHelper
protected ShareableCourseHelper _shareableCourseHelper
public ODFContentType()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class DefaultContentType
ServiceException
public boolean canWrite(Content content, MetadataDefinition metadataDef) throws AmetysRepositoryException
ContentType
canWrite
in interface ContentType
canWrite
in class DefaultContentType
content
- The content where metadata is to be written on. Can be null, on content creation.metadataDef
- the metadata definitiontrue
if the current user is allowed to write the metadata of this content.AmetysRepositoryException
- if an error occurs while accessing the content.public boolean canRead(Content content, MetadataDefinition metadataDef) throws AmetysRepositoryException
ContentType
canRead
in interface ContentType
canRead
in class DefaultContentType
content
- The content where metadata is to be read on. Can be null, on content creation.metadataDef
- the metadata definitiontrue
if the current user is allowed to read the metadata of this content.AmetysRepositoryException
- if an error occurs while accessing the content.public Map<String,Object> getAdditionalData(Content content)
ContentType
ContentType
.
These additional data are delivered to client side.getAdditionalData
in interface ContentType
getAdditionalData
in class DefaultContentType
content
- The content