Class AbstractContentImporter.ContentReference

java.lang.Object
org.ametys.plugins.contentio.in.AbstractContentImporter.ContentReference
Enclosing class:
AbstractContentImporter

Class representing a reference to a content in an import file.
  • Field Details

    • TYPE_LOCAL_ID

      public static final int TYPE_LOCAL_ID
      The referenced content doesn't exist in the repository, it's in the import file. The reference value is the content ID in the import file.
      See Also:
    • TYPE_CONTENT_ID

      public static final int TYPE_CONTENT_ID
      The referenced content exits in the repository and its ID is known. The reference value is the content ID in the repository (AmetysObject ID).
      See Also:
    • TYPE_CONTENT_VALUES

      public static final int TYPE_CONTENT_VALUES
      The referenced content exits in the repository. Its ID is not known, but it can be identified by one or several of its metadata. The reference value is a Map of metadata name -> value.
      See Also:
  • Constructor Details

    • ContentReference

      public ContentReference(int type, Object value)
      Build a content reference.
      Parameters:
      type - the reference type.
      value - the reference value.
  • Method Details

    • getType

      public int getType()
      Get the type.
      Returns:
      the type
    • setType

      public void setType(int type)
      Set the type.
      Parameters:
      type - the type to set
    • getValue

      public Object getValue()
      Get the value.
      Returns:
      the value
    • setValue

      public void setValue(Object value)
      Set the value.
      Parameters:
      value - the value to set