AttributeDefinition
instead@Deprecated public class MetadataDefinition extends Parameter<MetadataType> implements MetadataDefinitionHolder
Parameter.getId()
method returns the metadata path,
separated by slashes.Modifier and Type | Field and 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 and Description |
---|
MetadataDefinition()
Deprecated.
|
Modifier and Type | Method and 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 enumerator
|
String |
getCustomValidator()
Deprecated.
Get the custom validator
|
Configuration |
getEnumeratorConfiguration()
Deprecated.
Get the configuration of enumerator
|
boolean |
getForceInvert()
Deprecated.
Returns true if mutual relationship should be set regardless of user's
rights
|
String |
getInvertRelationPath()
Deprecated.
Get the metadata's mutual relationship path (only applicable for a
content-typed metadata).
|
Set<String> |
getMetadataComponentsName()
Deprecated.
Use getMetadataNames instead
|
MetadataDefinition |
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 validator
|
int |
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 enumerator
|
void |
setCustomValidator(String customValidator)
Deprecated.
Set the custom validator
|
void |
setEnumeratorConfiguration(Configuration configuration)
Deprecated.
Set the configuration of enumerator
|
void |
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 validator
|
String |
toString()
Deprecated.
|
getDefaultValue, getDescription, getEnumerator, getId, getLabel, getPluginName, getType, getValidator, getWidget, getWidgetParameters, setDefaultValue, setDescription, setEnumerator, setId, setLabel, setPluginName, setType, setValidator, setWidget, setWidgetParameters
private boolean _isMultiple
private String _contentType
private String _invertRelationPath
private boolean _forceInvert
private RichTextTransformer _transformer
private RichTextOutgoingReferencesExtractor _richTextOutgoingReferencesExtractor
private final Map<String,MetadataDefinition> _children
private String _refContentTypeId
private String _customEnumerator
private Configuration _enumeratorConfiguration
private String _customValidator
private Configuration _validatorConfiguration
public MetadataDefinition()
public String getName()
public void setName(String name)
name
- the metadata name.public boolean isMultiple()
true
if the metadata is multiple.public void setMultiple(boolean isMultiple)
isMultiple
- the metadata multiple status.public String getReferenceContentType()
public void setReferenceContentType(String cTypeId)
cTypeId
- The id of reference content typepublic String getContentType()
public void setContentType(String contentType)
contentType
- the metadata's content type.public String getInvertRelationPath()
public void setInvertRelationPath(String invertRelationPath)
invertRelationPath
- the metadata's mutual relationship path,
separated by slashes.public void setForceInvert(boolean force)
force
- true to force mutual relationship regardless of user's
rightspublic boolean getForceInvert()
public RichTextTransformer getRichTextTransformer()
public void setRichTextTransformer(RichTextTransformer transformer)
transformer
- the rich text transformer.public RichTextOutgoingReferencesExtractor getRichTextOutgoingReferencesExtractor()
public void setRichTextOutgoingReferencesExtractor(RichTextOutgoingReferencesExtractor richTextOutgoingReferencesExtractor)
richTextOutgoingReferencesExtractor
- The rich text outgoing
references extractor@Deprecated public Set<String> getMetadataComponentsName()
public Set<String> getMetadataNames()
MetadataDefinitionHolder
getMetadataNames
in interface MetadataDefinitionHolder
public MetadataDefinition getMetadataDefinition(String metadataName)
MetadataDefinitionHolder
getMetadataDefinition
in interface MetadataDefinitionHolder
metadataName
- the metadata name.public boolean addMetadata(MetadataDefinition metadataDef)
metadataDef
- the metadata definition.true
if the metadata has been added,
false
if this metadata already exists.public Configuration getEnumeratorConfiguration()
public Configuration getValidatorConfiguration()
public String getCustomEnumerator()
public String getCustomValidator()
public void setEnumeratorConfiguration(Configuration configuration)
configuration
- the configuration of enumeratorpublic void setValidatorConfiguration(Configuration configuration)
configuration
- the configuration of validatorpublic void setCustomEnumerator(String customEnumerator)
customEnumerator
- the custom enumerator to setpublic void setCustomValidator(String customValidator)
customValidator
- the custom validator to set