Class CorporateDesignSynchronisationService
java.lang.Object
ch.tocco.nice2.synchronisation.api.AbstractSynchronisationService<CorporateDesignContribution>
ch.tocco.nice2.reporting.impl.sync.CorporateDesignSynchronisationService
- All Implemented Interfaces:
SynchronisationService<CorporateDesignContribution>
@Component
@Order(100)
public class CorporateDesignSynchronisationService
extends AbstractSynchronisationService<CorporateDesignContribution>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCorporateDesignSynchronisationService
(Context context, QueryBuilderFactory queryBuilderFactory, EntityDefaultValueService defaultValueService, TextResources textResources) -
Method Summary
Modifier and TypeMethodDescriptioncreateEntity
(CorporateDesignContribution description) creates and entity using the given descriptionvoid
initialiseEntity
(Entity corporateDesign, CorporateDesignContribution description) Initialises an entity using the given description.retrieve all available descriptionsretrieves all external entitiesretrieveDescription
(String uniqueId) retrieve a description using an identifierretrieveEntity
(CorporateDesignContribution description) retrieves the entity for a given descriptionvoid
setCorporateDesigns
(List<CorporateDesignContribution> corporateDesigns) void
updateEntity
(Entity corporateDesign, CorporateDesignContribution description) updates the entity using the given descriptionMethods inherited from class ch.tocco.nice2.synchronisation.api.AbstractSynchronisationService
getEdited, getExternal, resetEntity, retrieveIdentifier, setEdited, setExternal, synchronize
-
Field Details
-
ORDER
public static final int ORDER- See Also:
-
-
Constructor Details
-
CorporateDesignSynchronisationService
public CorporateDesignSynchronisationService(Context context, QueryBuilderFactory queryBuilderFactory, EntityDefaultValueService defaultValueService, TextResources textResources)
-
-
Method Details
-
getEntityName
-
retrieveEntity
Description copied from interface:SynchronisationService
retrieves the entity for a given description -
retrieveAllExternalEntities
Description copied from interface:SynchronisationService
retrieves all external entities -
retrieveDescription
Description copied from interface:SynchronisationService
retrieve a description using an identifier -
retrieveAllDescriptions
Description copied from interface:SynchronisationService
retrieve all available descriptions -
createEntity
Description copied from interface:SynchronisationService
creates and entity using the given description- Throws:
IOException
-
initialiseEntity
public void initialiseEntity(Entity corporateDesign, CorporateDesignContribution description) throws IOException Description copied from interface:SynchronisationService
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
public void updateEntity(Entity corporateDesign, CorporateDesignContribution description) throws IOException Description copied from interface:SynchronisationService
updates the entity using the given description- Throws:
IOException
-
setCorporateDesigns
-