Package org.ametys.plugins.contentio.in
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 Summary
Modifier and TypeFieldDescriptionstatic final int
The referenced content exits in the repository and its ID is known.static final int
The referenced content exits in the repository.static final int
The referenced content doesn't exist in the repository, it's in the import file. -
Constructor Summary
-
Method Summary
-
Field Details
-
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
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
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
Build a content reference.- Parameters:
type
- the reference type.value
- the reference value.
-
-
Method Details
-
getType
Get the type.- Returns:
- the type
-
setType
Set the type.- Parameters:
type
- the type to set
-
getValue
Get the value.- Returns:
- the value
-
setValue
Set the value.- Parameters:
value
- the value to set
-