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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCollectionOfElements(EntityObjectReadyForExport.CollectionOfElements collectionOfElements)
void
addProperty(EntityObjectReadyForExport.Property property)
void
addReference(EntityObjectReadyForExport.Reference reference)
Optional<EntityObjectReadyForExport.Property>
findPropertyByName(String name)
Optional<EntityObjectReadyForExport.Reference>
findReferenceByName(String name)
Class<?>
getClazz()
Collection<EntityObjectReadyForExport.CollectionOfElements>
getCollections()
EntityObjectReadyForExport.Property
getId()
List<EntityObjectReadyForExport.Property>
getIds()
Collection<EntityObjectReadyForExport.Property>
getProperties()
EntityObjectReadyForExport.Property
getProperty(String name)
String
getReason()
Collection<EntityObjectReadyForExport.Reference>
getReferences()
-
-
-
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()
-
getIds
public List<EntityObjectReadyForExport.Property> getIds()
-
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)
-
-