Class LabelSynchronisationService
java.lang.Object
ch.tocco.nice2.synchronisation.api.AbstractSynchronisationService<LabelSynchronisationDescription>
ch.tocco.nice2.reporting.impl.sync.LabelSynchronisationService
- All Implemented Interfaces:
SynchronisationService<LabelSynchronisationDescription>
@Component
@Order(200)
public class LabelSynchronisationService
extends AbstractSynchronisationService<LabelSynchronisationDescription>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLabelSynchronisationService(QueryBuilderFactory queryBuilderFactory, Context context, EntityDefaultValueService defaultValueService, TextResources textResources) -
Method Summary
Modifier and TypeMethodDescriptioncreateEntity(LabelSynchronisationDescription description) creates and entity using the given descriptionvoidinitialiseEntity(Entity label, LabelSynchronisationDescription description) Initialises an entity using the given description.retrieve all available descriptionsretrieves all external entitiesretrieveDescription(String identifier) retrieve a description using an identifierretrieveEntity(LabelSynchronisationDescription description) retrieves the entity for a given descriptionvoidsetLabels(List<LabelSynchronisationDescription> labels) voidupdateEntity(Entity label, LabelSynchronisationDescription description) updates the entity using the given descriptionMethods inherited from class AbstractSynchronisationService
getEdited, getExternal, resetEntity, retrieveIdentifier, setEdited, setExternal, synchronize
-
Field Details
-
ORDER
public static final int ORDER- See Also:
-
-
Constructor Details
-
LabelSynchronisationService
public LabelSynchronisationService(QueryBuilderFactory queryBuilderFactory, Context context, EntityDefaultValueService defaultValueService, TextResources textResources)
-
-
Method Details
-
getEntityName
-
retrieveEntity
Description copied from interface:SynchronisationServiceretrieves the entity for a given description -
retrieveAllExternalEntities
Description copied from interface:SynchronisationServiceretrieves all external entities -
retrieveDescription
Description copied from interface:SynchronisationServiceretrieve a description using an identifier -
retrieveAllDescriptions
Description copied from interface:SynchronisationServiceretrieve all available descriptions -
createEntity
Description copied from interface:SynchronisationServicecreates and entity using the given description -
initialiseEntity
Description copied from interface:SynchronisationServiceInitialises 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. -
updateEntity
Description copied from interface:SynchronisationServiceupdates the entity using the given description -
setLabels
-