Class OutputTemplateFieldSynchronisationService
java.lang.Object
ch.tocco.nice2.synchronisation.api.AbstractSynchronisationService<OutputTemplateFieldContribution>
ch.tocco.nice2.reporting.impl.sync.OutputTemplateFieldSynchronisationService
- All Implemented Interfaces:
SynchronisationService<OutputTemplateFieldContribution>
@Component
@Order(400)
public class OutputTemplateFieldSynchronisationService
extends AbstractSynchronisationService<OutputTemplateFieldContribution>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionOutputTemplateFieldSynchronisationService
(Context context, TextResources textResources, QueryBuilderFactory queryBuilderFactory, EntityDefaultValueService entityDefaultValueService) -
Method Summary
Modifier and TypeMethodDescriptioncreateEntity
(OutputTemplateFieldContribution description) creates and entity using the given descriptionvoid
initialiseEntity
(Entity field, OutputTemplateFieldContribution description) Initialises an entity using the given description.retrieve all available descriptionsretrieves all external entitiesretrieveDescription
(String identifier) retrieve a description using an identifierretrieveEntity
(OutputTemplateFieldContribution description) retrieves the entity for a given descriptionretrieveIdentifier
(Entity entity) retrieve an identifier with whom the description can be distinguishedvoid
setOutputTemplateFieldSources
(List<OutputTemplateFieldContributionsBuilder> outputTemplateFieldSources) void
updateEntity
(Entity field, OutputTemplateFieldContribution description) updates the entity using the given descriptionMethods inherited from class ch.tocco.nice2.synchronisation.api.AbstractSynchronisationService
getEdited, getExternal, resetEntity, setEdited, setExternal, synchronize
-
Field Details
-
ORDER
public static final int ORDER- See Also:
-
-
Constructor Details
-
OutputTemplateFieldSynchronisationService
public OutputTemplateFieldSynchronisationService(Context context, TextResources textResources, QueryBuilderFactory queryBuilderFactory, EntityDefaultValueService entityDefaultValueService)
-
-
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 -
retrieveIdentifier
Description copied from interface:SynchronisationService
retrieve an identifier with whom the description can be distinguished- Specified by:
retrieveIdentifier
in interfaceSynchronisationService<OutputTemplateFieldContribution>
- Overrides:
retrieveIdentifier
in classAbstractSynchronisationService<OutputTemplateFieldContribution>
-
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 field, OutputTemplateFieldContribution 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 field, OutputTemplateFieldContribution description) throws IOException Description copied from interface:SynchronisationService
updates the entity using the given description- Throws:
IOException
-
setOutputTemplateFieldSources
@Autowired(required=false) public void setOutputTemplateFieldSources(List<OutputTemplateFieldContributionsBuilder> outputTemplateFieldSources)
-