Package org.ametys.plugins.contentio
Class AbstractContentImporter.ContentReference
- java.lang.Object
-
- org.ametys.plugins.contentio.AbstractContentImporter.ContentReference
-
- Enclosing class:
- AbstractContentImporter
public class AbstractContentImporter.ContentReference extends Object
Class representing a reference to a content in an import file.
-
-
Field Summary
Fields Modifier and Type Field Description private int
_type
The reference type.private Object
_value
The reference value, depends on the reference type.static int
TYPE_CONTENT_ID
The referenced content exits in the repository and its ID is known.static int
TYPE_CONTENT_VALUES
The referenced content exits in the repository.static int
TYPE_LOCAL_ID
The referenced content doesn't exist in the repository, it's in the import file.
-
Constructor Summary
Constructors Constructor Description ContentReference(int type, Object value)
Build a content reference.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getType()
Get the type.Object
getValue()
Get the value.void
setType(int type)
Set the type.void
setValue(Object value)
Set the value.
-
-
-
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
-
_type
private int _type
The reference type.
-
-
Constructor Detail
-
ContentReference
public ContentReference(int type, Object value)
Build a content reference.- Parameters:
type
- the reference type.value
- the reference value.
-
-