Class EntityObjectReadyForExport
java.lang.Object
com.atlassian.confluence.impl.backuprestore.backup.models.EntityObjectReadyForExport
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 ClassesModifier and TypeClassDescriptionstatic class
Represent a collection of elements.static class
static class
-
Constructor Summary
ConstructorsConstructorDescriptionEntityObjectReadyForExport
(List<EntityObjectReadyForExport.Property> ids, Class<?> clazz) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCollectionOfElements
(EntityObjectReadyForExport.CollectionOfElements collectionOfElements) void
void
addReference
(EntityObjectReadyForExport.Reference reference) findPropertyByName
(String name) findReferenceByName
(String name) Class<?>
getClazz()
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 LonggetIds()
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 LonggetProperty
(String name)
-
Constructor Details
-
EntityObjectReadyForExport
-
EntityObjectReadyForExport
-
-
Method Details
-
getClazz
-
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
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
-
addReference
-
addCollectionOfElements
public void addCollectionOfElements(EntityObjectReadyForExport.CollectionOfElements collectionOfElements) -
getProperties
-
getProperty
-
getReferences
-
getCollections
-
findReferenceByName
-
getReason
-
findPropertyByName
-