Class AbstractContentImporter.ContentReference

    • Field Detail

      • 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:
        Constant Field Values
      • 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:
        Constant Field Values
      • 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:
        Constant Field Values
    • Constructor Detail

      • ContentReference

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

      • 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