Interface SynchronisationService<T extends SynchronisationDescription>
- All Known Implementing Classes:
AbstractSynchronisationService
,BusinessUnitCorporateDesignSynchronisationService
,CorporateDesignSynchronisationService
,LabelContentSynchronisationService
,LabelFormatSynchronisationService
,LabelSynchronisationService
,OutputTemplateFieldSynchronisationService
,OutputTemplateLayoutSynchronisationService
,OutputTemplateSynchronisationService
,ReportSynchronisationService
,TemplateSnippetSynchronisationService
public interface SynchronisationService<T extends SynchronisationDescription>
-
Method Summary
Modifier and TypeMethodDescriptioncreateEntity
(T description) creates and entity using the given descriptionboolean
Returns the edited flagboolean
getExternal
(Entity entity) Returns the external flagvoid
initialiseEntity
(Entity entity, T description) Initialises an entity using the given description.void
resetEntity
(Entity entity, List<String> options) Resets the the entity using the unique_id of the given entity - if no description can be retrieved using the unique_id, the external flag is set to false - if a description can be retrieved, the entity is updated according to this description and the edited flag is set to falseretrieve all available descriptionsretrieves all external entitiesretrieveDescription
(String identifier) retrieve a description using an identifierretrieveEntity
(T description) retrieves the entity for a given descriptionretrieveIdentifier
(Entity entity) retrieve an identifier with whom the description can be distinguishedSets the edited flag on the given entitysetExternal
(Entity entity, boolean newValue) Sets the external flag on the given entityvoid
retrieves all descriptions, loops over them and...void
updateEntity
(Entity entity, T description) updates the entity using the given description
-
Method Details
-
getEntityName
String getEntityName() -
synchronize
retrieves all descriptions, loops over them and... ... creates non-existent entities (identified by unique_id) ... updates existing entities that have not been edited (external = true and edited = false) ... removes the external flag from entities if no description exists for it- Throws:
IOException
-
retrieveEntity
retrieves the entity for a given description -
retrieveAllExternalEntities
retrieves all external entities -
retrieveDescription
retrieve a description using an identifier -
retrieveIdentifier
retrieve an identifier with whom the description can be distinguished -
retrieveAllDescriptions
Collection<T> retrieveAllDescriptions()retrieve all available descriptions -
createEntity
creates and entity using the given description- Throws:
IOException
-
initialiseEntity
Initialises an entity using the given description. This method sets fields that may be edited without breaking synchronisation. It is called when creating or reseting an entity.- Throws:
IOException
-
updateEntity
updates the entity using the given description- Throws:
IOException
-
resetEntity
Resets the the entity using the unique_id of the given entity - if no description can be retrieved using the unique_id, the external flag is set to false - if a description can be retrieved, the entity is updated according to this description and the edited flag is set to false- Throws:
IOException
-
setEdited
Sets the edited flag on the given entity -
getEdited
Returns the edited flag -
setExternal
Sets the external flag on the given entity -
getExternal
Returns the external flag
-