Package org.ametys.cms.contenttype
Class MetadataDefinition
- java.lang.Object
-
- org.ametys.runtime.parameter.Parameter<MetadataType>
-
- org.ametys.cms.contenttype.MetadataDefinition
-
- All Implemented Interfaces:
MetadataDefinitionHolder
- Direct Known Subclasses:
DefaultContentType.RestrictedMetadataDefinition
,RepeaterDefinition
,RichTextMetadataDefinition
@Deprecated public class MetadataDefinition extends Parameter<MetadataType> implements MetadataDefinitionHolder
Deprecated.UseAttributeDefinition
insteadMetadata definition. TheParameter.getId()
method returns the metadata path, separated by slashes.
-
-
Field Summary
Fields Modifier and Type Field Description private Map<String,MetadataDefinition>
_children
Deprecated.private String
_contentType
Deprecated.private String
_customEnumerator
Deprecated.private String
_customValidator
Deprecated.private Configuration
_enumeratorConfiguration
Deprecated.private boolean
_forceInvert
Deprecated.private String
_invertRelationPath
Deprecated.private boolean
_isMultiple
Deprecated.private String
_name
Deprecated.private String
_refContentTypeId
Deprecated.private RichTextOutgoingReferencesExtractor
_richTextOutgoingReferencesExtractor
Deprecated.private RichTextTransformer
_transformer
Deprecated.private Configuration
_validatorConfiguration
Deprecated.
-
Constructor Summary
Constructors Constructor Description MetadataDefinition()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
addMetadata(MetadataDefinition metadataDef)
Deprecated.Add a metadata definition.boolean
equals(Object obj)
Deprecated.String
getContentType()
Deprecated.Get the metadata's content type (only applicable for a content-typed metadata).String
getCustomEnumerator()
Deprecated.Get the custom enumeratorString
getCustomValidator()
Deprecated.Get the custom validatorConfiguration
getEnumeratorConfiguration()
Deprecated.Get the configuration of enumeratorboolean
getForceInvert()
Deprecated.Returns true if mutual relationship should be set regardless of user's rightsString
getInvertRelationPath()
Deprecated.Get the metadata's mutual relationship path (only applicable for a content-typed metadata).Set<String>
getMetadataComponentsName()
Deprecated.Use getMetadataNames insteadMetadataDefinition
getMetadataDefinition(String metadataName)
Deprecated.Retrieves the definition of a given metadata.Set<String>
getMetadataNames()
Deprecated.Retrieves the metadata names.String
getName()
Deprecated.Retrieves the metadata name.String
getReferenceContentType()
Deprecated.Get the content type of reference (ie.RichTextOutgoingReferencesExtractor
getRichTextOutgoingReferencesExtractor()
Deprecated.Retrieves the rich text outgoing references extractor to use.RichTextTransformer
getRichTextTransformer()
Deprecated.Retrieves the rich text transformer to use.Configuration
getValidatorConfiguration()
Deprecated.Get the configuration of validatorint
hashCode()
Deprecated.boolean
isMultiple()
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
setName(String name)
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 validatorString
toString()
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
-
-
-
-
Field Detail
-
_isMultiple
private boolean _isMultiple
Deprecated.
-
_contentType
private String _contentType
Deprecated.
-
_invertRelationPath
private String _invertRelationPath
Deprecated.
-
_forceInvert
private boolean _forceInvert
Deprecated.
-
_transformer
private RichTextTransformer _transformer
Deprecated.
-
_richTextOutgoingReferencesExtractor
private RichTextOutgoingReferencesExtractor _richTextOutgoingReferencesExtractor
Deprecated.
-
_children
private final Map<String,MetadataDefinition> _children
Deprecated.
-
_refContentTypeId
private String _refContentTypeId
Deprecated.
-
_customEnumerator
private String _customEnumerator
Deprecated.
-
_enumeratorConfiguration
private Configuration _enumeratorConfiguration
Deprecated.
-
_customValidator
private String _customValidator
Deprecated.
-
_validatorConfiguration
private Configuration _validatorConfiguration
Deprecated.
-
-
Constructor Detail
-
MetadataDefinition
public MetadataDefinition()
Deprecated.
-
-
Method Detail
-
getName
public String getName()
Deprecated.Retrieves the metadata name.- Returns:
- the metadata name.
-
setName
public void setName(String name)
Deprecated.Set the metadata name.- Parameters:
name
- the metadata name.
-
isMultiple
public boolean isMultiple()
Deprecated.Test if the metadata is multiple.- Returns:
true
if the metadata is multiple.
-
setMultiple
public void setMultiple(boolean isMultiple)
Deprecated.Set the metadata multiple status.- Parameters:
isMultiple
- the metadata multiple status.
-
getReferenceContentType
public String 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
public void setReferenceContentType(String cTypeId)
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
public String 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
public void setContentType(String contentType)
Deprecated.Set the content type (only applicable for a content-typed metadata).- Parameters:
contentType
- the metadata's content type.
-
getInvertRelationPath
public String 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
public void setInvertRelationPath(String invertRelationPath)
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
public void setForceInvert(boolean force)
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
public boolean 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
public RichTextTransformer getRichTextTransformer()
Deprecated.Retrieves the rich text transformer to use.- Returns:
- the rich text transformer.
-
setRichTextTransformer
public void setRichTextTransformer(RichTextTransformer transformer)
Deprecated.Set the rich text transformer to use.- Parameters:
transformer
- the rich text transformer.
-
getRichTextOutgoingReferencesExtractor
public RichTextOutgoingReferencesExtractor 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 public Set<String> getMetadataComponentsName()
Deprecated.Use getMetadataNames insteadRetrieves the metadata names below this composite metadata.- Returns:
- the metadata names.
-
getMetadataNames
public Set<String> getMetadataNames()
Deprecated.Description copied from interface:MetadataDefinitionHolder
Retrieves the metadata names.- Specified by:
getMetadataNames
in interfaceMetadataDefinitionHolder
- Returns:
- the metadata names.
-
getMetadataDefinition
public MetadataDefinition getMetadataDefinition(String metadataName)
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
public boolean addMetadata(MetadataDefinition metadataDef)
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
public Configuration getEnumeratorConfiguration()
Deprecated.Get the configuration of enumerator- Returns:
- the configuration of enumerator
-
getValidatorConfiguration
public Configuration getValidatorConfiguration()
Deprecated.Get the configuration of validator- Returns:
- the configuration of validator
-
getCustomEnumerator
public String getCustomEnumerator()
Deprecated.Get the custom enumerator- Returns:
- the custom enumerator
-
getCustomValidator
public String getCustomValidator()
Deprecated.Get the custom validator- Returns:
- the custom validator
-
setEnumeratorConfiguration
public void setEnumeratorConfiguration(Configuration configuration)
Deprecated.Set the configuration of enumerator- Parameters:
configuration
- the configuration of enumerator
-
setValidatorConfiguration
public void setValidatorConfiguration(Configuration configuration)
Deprecated.Set the configuration of validator- Parameters:
configuration
- the configuration of validator
-
setCustomEnumerator
public void setCustomEnumerator(String customEnumerator)
Deprecated.Set the custom enumerator- Parameters:
customEnumerator
- the custom enumerator to set
-
setCustomValidator
public void setCustomValidator(String customValidator)
Deprecated.Set the custom validator- Parameters:
customValidator
- the custom validator to set
-
-