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_typeThe reference type.private Object_valueThe reference value, depends on the reference type.static intTYPE_CONTENT_IDThe referenced content exits in the repository and its ID is known.static intTYPE_CONTENT_VALUESThe referenced content exits in the repository.static intTYPE_LOCAL_IDThe 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 intgetType()Get the type.ObjectgetValue()Get the value.voidsetType(int type)Set the type.voidsetValue(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.
-
-