Class TemplateSnippetSynchronisationService
java.lang.Object
ch.tocco.nice2.synchronisation.api.AbstractSynchronisationService<TemplateSnippetContribution>
ch.tocco.nice2.reporting.impl.sync.TemplateSnippetSynchronisationService
- All Implemented Interfaces:
SynchronisationService<TemplateSnippetContribution>
@Component
@Order(0)
public class TemplateSnippetSynchronisationService
extends AbstractSynchronisationService<TemplateSnippetContribution>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTemplateSnippetSynchronisationService(Context context, BinaryFactory binaryFactory, TextResources textResources, QueryBuilderFactory queryBuilderFactory, EntityDefaultValueService entityDefaultValueService) -
Method Summary
Modifier and TypeMethodDescriptioncreateEntity(TemplateSnippetContribution description) creates and entity using the given descriptionvoidinitialiseEntity(Entity templateSnippet, TemplateSnippetContribution description) Initialises an entity using the given description.retrieve all available descriptionsretrieves all external entitiesretrieveDescription(String uniqueId) retrieve a description using an identifierretrieveEntity(TemplateSnippetContribution description) retrieves the entity for a given descriptionvoidsetTemplateSnippetSources(List<TemplateSnippetContributionsBuilder> templateSnippetSources) voidupdateEntity(Entity templateSnippet, TemplateSnippetContribution 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
-
TemplateSnippetSynchronisationService
public TemplateSnippetSynchronisationService(Context context, BinaryFactory binaryFactory, TextResources textResources, QueryBuilderFactory queryBuilderFactory, EntityDefaultValueService entityDefaultValueService)
-
-
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- Throws:
IOException
-
initialiseEntity
public void initialiseEntity(Entity templateSnippet, TemplateSnippetContribution description) throws IOException 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.- Throws:
IOException
-
updateEntity
public void updateEntity(Entity templateSnippet, TemplateSnippetContribution description) throws IOException Description copied from interface:SynchronisationServiceupdates the entity using the given description- Throws:
IOException
-
setTemplateSnippetSources
@Autowired public void setTemplateSnippetSources(List<TemplateSnippetContributionsBuilder> templateSnippetSources)
-