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.
Metadata definition. The Parameter.getId() method returns the metadata path, separated by slashes.
  • Constructor Details

  • Method Details

    • 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

      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

      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

      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

      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

      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 instead
      Retrieves 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 interface MetadataDefinitionHolder
      Returns:
      the metadata names.
    • getMetadataDefinition

      Deprecated.
      Description copied from interface: MetadataDefinitionHolder
      Retrieves the definition of a given metadata.
      Specified by:
      getMetadataDefinition in interface MetadataDefinitionHolder
      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

      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

      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
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object