Class OutputTemplateSynchronisationService
java.lang.Object
ch.tocco.nice2.synchronisation.api.AbstractSynchronisationService<OutputTemplateContribution>
ch.tocco.nice2.reporting.impl.sync.OutputTemplateSynchronisationService
- All Implemented Interfaces:
- SynchronisationService<OutputTemplateContribution>
@Component
@Order(300)
public class OutputTemplateSynchronisationService
extends AbstractSynchronisationService<OutputTemplateContribution>
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionOutputTemplateSynchronisationService(Context context, TextResources textResources, QueryBuilderFactory queryBuilderFactory, EntityDefaultValueService entityDefaultValueService, EntityDocumentsService entityDocumentsService, ContentTreeService contentTreeService, BinaryFactory binaryFactory, SynchronisationManager synchronisationManager) 
- 
Method SummaryModifier and TypeMethodDescriptioncreateEntity(OutputTemplateContribution description) creates and entity using the given descriptionvoidinitialiseEntity(Entity outputTemplate, OutputTemplateContribution description) Initialises an entity using the given description.voidresetEntity(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 uniqueId) retrieve a description using an identifierretrieveEntity(OutputTemplateContribution description) retrieves the entity for a given descriptionvoidsetOutputTemplateSources(List<OutputTemplateContributionsBuilder> outputTemplateSources) voidupdateEntity(Entity outputTemplate, OutputTemplateContribution description) updates the entity using the given descriptionMethods inherited from class ch.tocco.nice2.synchronisation.api.AbstractSynchronisationServicegetEdited, getExternal, retrieveIdentifier, setEdited, setExternal, synchronize
- 
Field Details- 
ORDERpublic static final int ORDER- See Also:
 
 
- 
- 
Constructor Details- 
OutputTemplateSynchronisationServicepublic OutputTemplateSynchronisationService(Context context, TextResources textResources, QueryBuilderFactory queryBuilderFactory, EntityDefaultValueService entityDefaultValueService, EntityDocumentsService entityDocumentsService, ContentTreeService contentTreeService, BinaryFactory binaryFactory, @Lazy SynchronisationManager synchronisationManager) 
 
- 
- 
Method Details- 
getEntityName
- 
retrieveEntityDescription copied from interface:SynchronisationServiceretrieves the entity for a given description
- 
retrieveAllExternalEntitiesDescription copied from interface:SynchronisationServiceretrieves all external entities
- 
retrieveDescriptionDescription copied from interface:SynchronisationServiceretrieve a description using an identifier
- 
retrieveAllDescriptionsDescription copied from interface:SynchronisationServiceretrieve all available descriptions
- 
createEntityDescription copied from interface:SynchronisationServicecreates and entity using the given description- Throws:
- IOException
 
- 
initialiseEntitypublic void initialiseEntity(Entity outputTemplate, OutputTemplateContribution 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
 
- 
updateEntitypublic void updateEntity(Entity outputTemplate, OutputTemplateContribution description) throws IOException Description copied from interface:SynchronisationServiceupdates the entity using the given description- Throws:
- IOException
 
- 
resetEntityDescription copied from interface:SynchronisationServiceResets 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- Specified by:
- resetEntityin interface- SynchronisationService<OutputTemplateContribution>
- Overrides:
- resetEntityin class- AbstractSynchronisationService<OutputTemplateContribution>
- Throws:
- IOException
 
- 
setOutputTemplateSources@Autowired public void setOutputTemplateSources(List<OutputTemplateContributionsBuilder> outputTemplateSources) 
 
-