Class EntityObjectReadyForExport
- java.lang.Object
-
- com.atlassian.confluence.impl.backuprestore.backup.models.EntityObjectReadyForExport
-
public class EntityObjectReadyForExport extends Object
Contains all entity object's information needed for making backup. It includes id, all properties and all references. That means that having the list of such objects only, we can prepare entities.xml file.- Since:
- 7.20
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EntityObjectReadyForExport.CollectionOfElements
Represent a collection of elements.static class
EntityObjectReadyForExport.Property
static class
EntityObjectReadyForExport.Reference
-
Constructor Summary
Constructors Constructor Description EntityObjectReadyForExport(EntityObjectReadyForExport.Property id, Class<?> clazz)
EntityObjectReadyForExport(List<EntityObjectReadyForExport.Property> ids, Class<?> clazz)
-
Method Summary
-
-
-
Constructor Detail
-
EntityObjectReadyForExport
public EntityObjectReadyForExport(EntityObjectReadyForExport.Property id, Class<?> clazz)
-
EntityObjectReadyForExport
public EntityObjectReadyForExport(List<EntityObjectReadyForExport.Property> ids, Class<?> clazz)
-
-
Method Detail
-
getClazz
public Class<?> getClazz()
-
getId
public EntityObjectReadyForExport.Property getId()
NOTED: in order to deal with multiple underlining datatype from different DBs we will need to useAbstractDatabaseDataConverter.convertToLong(Object)
to convert ID from Object to Long- Returns:
- ID property
-
getIds
public List<EntityObjectReadyForExport.Property> getIds()
NOTED: in order to deal with multiple underlining datatype from different DBs we will need to useAbstractDatabaseDataConverter.convertToLong(Object)
to convert ID from Object to Long- Returns:
- IDs property
-
addProperty
public void addProperty(EntityObjectReadyForExport.Property property)
-
addReference
public void addReference(EntityObjectReadyForExport.Reference reference)
-
addCollectionOfElements
public void addCollectionOfElements(EntityObjectReadyForExport.CollectionOfElements collectionOfElements)
-
getProperties
public Collection<EntityObjectReadyForExport.Property> getProperties()
-
getProperty
public EntityObjectReadyForExport.Property getProperty(String name)
-
getReferences
public Collection<EntityObjectReadyForExport.Reference> getReferences()
-
getCollections
public Collection<EntityObjectReadyForExport.CollectionOfElements> getCollections()
-
findReferenceByName
public Optional<EntityObjectReadyForExport.Reference> findReferenceByName(String name)
-
getReason
public String getReason()
-
findPropertyByName
public Optional<EntityObjectReadyForExport.Property> findPropertyByName(String name)
-
-