Package org.ametys.cms.contenttype
Class MetadataDefinition
- All Implemented Interfaces:
MetadataDefinitionHolder
- Direct Known Subclasses:
DefaultContentType.RestrictedMetadataDefinition
,RepeaterDefinition
,RichTextMetadataDefinition
@Deprecated
public class MetadataDefinition
extends Parameter<MetadataType>
implements MetadataDefinitionHolder
Deprecated.
Metadata definition. The
Parameter.getId()
method returns the metadata path,
separated by slashes.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addMetadata
(MetadataDefinition metadataDef) Deprecated.Add a metadata definition.boolean
Deprecated.Deprecated.Get the metadata's content type (only applicable for a content-typed metadata).Deprecated.Get the custom enumeratorDeprecated.Get the custom validatorDeprecated.Get the configuration of enumeratorboolean
Deprecated.Returns true if mutual relationship should be set regardless of user's rightsDeprecated.Get the metadata's mutual relationship path (only applicable for a content-typed metadata).Deprecated.Use getMetadataNames insteadgetMetadataDefinition
(String metadataName) Deprecated.Retrieves the definition of a given metadata.Deprecated.Retrieves the metadata names.getName()
Deprecated.Retrieves the metadata name.Deprecated.Get the content type of reference (ie.Deprecated.Retrieves the rich text outgoing references extractor to use.Deprecated.Retrieves the rich text transformer to use.Deprecated.Get the configuration of validatorint
hashCode()
Deprecated.boolean
Deprecated.Test if the metadata is multiple.void
setContentType
(String contentType) Deprecated.Set the content type (only applicable for a content-typed metadata).void
setCustomEnumerator
(String customEnumerator) Deprecated.Set the custom enumeratorvoid
setCustomValidator
(String customValidator) Deprecated.Set the custom validatorvoid
setEnumeratorConfiguration
(Configuration configuration) Deprecated.Set the configuration of enumeratorvoid
setForceInvert
(boolean force) Deprecated.Force mutual relationship regardless of user's rights (only applicable for a content-typed metadata with invert relation path).void
setInvertRelationPath
(String invertRelationPath) Deprecated.Set the metadata's mutual relationship path (only applicable for a content-typed metadata).void
setMultiple
(boolean isMultiple) Deprecated.Set the metadata multiple status.void
Deprecated.Set the metadata name.void
setReferenceContentType
(String cTypeId) Deprecated.Set the id of reference content type (ie.void
setRichTextOutgoingReferencesExtractor
(RichTextOutgoingReferencesExtractor richTextOutgoingReferencesExtractor) Deprecated.Set the rich text outgoing references extractor to use.void
setRichTextTransformer
(RichTextTransformer transformer) Deprecated.Set the rich text transformer to use.void
setValidatorConfiguration
(Configuration configuration) Deprecated.Set the configuration of validatortoString()
Deprecated.Methods inherited from class org.ametys.runtime.parameter.Parameter
getDefaultValue, getDescription, getEnumerator, getId, getLabel, getPluginName, getType, getValidator, getWidget, getWidgetParameters, setDefaultValue, setDescription, setEnumerator, setId, setLabel, setPluginName, setType, setValidator, setWidget, setWidgetParameters
-
Constructor Details
-
MetadataDefinition
public MetadataDefinition()Deprecated.
-
-
Method Details
-
getName
Deprecated.Retrieves the metadata name.- Returns:
- the metadata name.
-
setName
Deprecated.Set the metadata name.- Parameters:
name
- the metadata name.
-
isMultiple
Deprecated.Test if the metadata is multiple.- Returns:
true
if the metadata is multiple.
-
setMultiple
Deprecated.Set the metadata multiple status.- Parameters:
isMultiple
- the metadata multiple status.
-
getReferenceContentType
Deprecated.Get the content type of reference (ie. the content type which has declared the metadata definition)- Returns:
- The id of reference content type
-
setReferenceContentType
Deprecated.Set the id of reference content type (ie. the content type which has declared the metadata definition)- Parameters:
cTypeId
- The id of reference content type
-
getContentType
Deprecated.Get the metadata's content type (only applicable for a content-typed metadata).- Returns:
- the metadata's content type, null if no restriction.
-
setContentType
Deprecated.Set the content type (only applicable for a content-typed metadata).- Parameters:
contentType
- the metadata's content type.
-
getInvertRelationPath
Deprecated.Get the metadata's mutual relationship path (only applicable for a content-typed metadata).- Returns:
- the metadata's mutual relationship path, null if not applicable.
-
setInvertRelationPath
Deprecated.Set the metadata's mutual relationship path (only applicable for a content-typed metadata).- Parameters:
invertRelationPath
- the metadata's mutual relationship path, separated by slashes.
-
setForceInvert
Deprecated.Force mutual relationship regardless of user's rights (only applicable for a content-typed metadata with invert relation path).- Parameters:
force
- true to force mutual relationship regardless of user's rights
-
getForceInvert
Deprecated.Returns true if mutual relationship should be set regardless of user's rights- Returns:
- true if mutual relationship should be set regardless of user's rights
-
getRichTextTransformer
Deprecated.Retrieves the rich text transformer to use.- Returns:
- the rich text transformer.
-
setRichTextTransformer
Deprecated.Set the rich text transformer to use.- Parameters:
transformer
- the rich text transformer.
-
getRichTextOutgoingReferencesExtractor
Deprecated.Retrieves the rich text outgoing references extractor to use.- Returns:
- the rich text outgoing references extractor.
-
setRichTextOutgoingReferencesExtractor
public void setRichTextOutgoingReferencesExtractor(RichTextOutgoingReferencesExtractor richTextOutgoingReferencesExtractor) Deprecated.Set the rich text outgoing references extractor to use.- Parameters:
richTextOutgoingReferencesExtractor
- The rich text outgoing references extractor
-
getMetadataComponentsName
Deprecated.Use getMetadataNames insteadRetrieves the metadata names below this composite metadata.- Returns:
- the metadata names.
-
getMetadataNames
Deprecated.Description copied from interface:MetadataDefinitionHolder
Retrieves the metadata names.- Specified by:
getMetadataNames
in interfaceMetadataDefinitionHolder
- Returns:
- the metadata names.
-
getMetadataDefinition
Deprecated.Description copied from interface:MetadataDefinitionHolder
Retrieves the definition of a given metadata.- Specified by:
getMetadataDefinition
in interfaceMetadataDefinitionHolder
- Parameters:
metadataName
- the metadata name.- Returns:
- the metadata definition.
-
addMetadata
Deprecated.Add a metadata definition.- Parameters:
metadataDef
- the metadata definition.- Returns:
true
if the metadata has been added,false
if this metadata already exists.
-
getEnumeratorConfiguration
Deprecated.Get the configuration of enumerator- Returns:
- the configuration of enumerator
-
getValidatorConfiguration
Deprecated.Get the configuration of validator- Returns:
- the configuration of validator
-
getCustomEnumerator
Deprecated.Get the custom enumerator- Returns:
- the custom enumerator
-
getCustomValidator
Deprecated.Get the custom validator- Returns:
- the custom validator
-
setEnumeratorConfiguration
Deprecated.Set the configuration of enumerator- Parameters:
configuration
- the configuration of enumerator
-
setValidatorConfiguration
Deprecated.Set the configuration of validator- Parameters:
configuration
- the configuration of validator
-
setCustomEnumerator
Deprecated.Set the custom enumerator- Parameters:
customEnumerator
- the custom enumerator to set
-
setCustomValidator
Deprecated.Set the custom validator- Parameters:
customValidator
- the custom validator to set
-
toString
Deprecated. -
equals
Deprecated. -
hashCode
Deprecated.
-
AttributeDefinition
instead