@Override public void update(SBARResourceLight resource, byte[] content) throws SRecorderException { recorder.recordUpdate(UpdateRecord.buildSetFields(resource, Collections.singletonMap("content", content)), BAR_RESOURCE); }
@Override public void recordUpdate(final UpdateRecord record, String type) throws SRecorderException { final UpdateDescriptor desc = UpdateDescriptor.buildSetFields(record.getEntity(), record.getFields()); try { persistenceService.update(desc); eventService.fireEvent(createUpdateEvent(record.getEntity(), record.getFields(), type)); } catch (final Exception e) { logExceptionsFromHandlers(e); throw new SRecorderException(e); } }
public static UpdateRecord buildSetFields(final PersistentObject entity, final Map<String, Object> fields) { final UpdateRecord updateRecord = new UpdateRecord(entity); updateRecord.addFields(fields); return updateRecord; }
void update(long processId, SProcessDefinitionDeployInfo processDefinitionDeployInfo, UpdateRecord updateRecord, String eventType) throws SRecorderException, SCacheException { recorder.recordUpdate(updateRecord, eventType); if (!updateRecord.getFields().containsKey(SProcessDefinitionDeployInfoBuilderFactoryImpl.DESIGN_CONTENT)) { updateSProcessDefinitionTimestampInCache(processId, processDefinitionDeployInfo); } }
void update(long processId, SProcessDefinitionDeployInfo processDefinitionDeployInfo, UpdateRecord updateRecord, String eventType) throws SRecorderException, SCacheException { recorder.recordUpdate(updateRecord, eventType); if (!updateRecord.getFields().containsKey(SProcessDefinitionDeployInfoBuilderFactoryImpl.DESIGN_CONTENT)) { updateSProcessDefinitionTimestampInCache(processId, processDefinitionDeployInfo); } }
void update(final SPageMapping pageMapping, final EntityUpdateDescriptor descriptor) throws SObjectNotFoundException, SBonitaReadException, SRecorderException { recorder.recordUpdate(UpdateRecord.buildSetFields(pageMapping, descriptor), PAGE_MAPPING); }
@Override public void recordUpdate(final UpdateRecord record, String type) throws SRecorderException { final UpdateDescriptor desc = UpdateDescriptor.buildSetFields(record.getEntity(), record.getFields()); try { persistenceService.update(desc); eventService.fireEvent(createUpdateEvent(record.getEntity(), record.getFields(), type)); } catch (final Exception e) { logExceptionsFromHandlers(e); throw new SRecorderException(e); } }
public static UpdateRecord buildSetFields(final PersistentObject entity, final Map<String, Object> fields) { final UpdateRecord updateRecord = new UpdateRecord(entity); updateRecord.addFields(fields); return updateRecord; }
@Override public void update(SBARResourceLight resource, byte[] content) throws SRecorderException { recorder.recordUpdate(UpdateRecord.buildSetFields(resource, Collections.singletonMap("content", content)), BAR_RESOURCE); }
@Override public int recordUpdateWithQuery(final UpdateRecord record, String type, String query) throws SRecorderException { try { int updateCount = persistenceService.update(query, record.getFields()); if(updateCount > 0 ) eventService.fireEvent(createUpdateEvent(record.getEntity(), record.getFields(), type)); return updateCount; } catch (final Exception e) { logExceptionsFromHandlers(e); throw new SRecorderException(e); } }
public static UpdateRecord buildSetFields(final PersistentObject entity, final EntityUpdateDescriptor descriptor) { NullCheckingUtil.checkArgsNotNull(descriptor); final UpdateRecord updateRecord = new UpdateRecord(entity); updateRecord.addFields(descriptor.getFields()); return updateRecord; }
void update(final SPageMapping pageMapping, final EntityUpdateDescriptor descriptor) throws SObjectNotFoundException, SBonitaReadException, SRecorderException { recorder.recordUpdate(UpdateRecord.buildSetFields(pageMapping, descriptor), PAGE_MAPPING); }
@Override public int recordUpdateWithQuery(final UpdateRecord record, String type, String query) throws SRecorderException { try { int updateCount = persistenceService.update(query, record.getFields()); if(updateCount > 0 ) eventService.fireEvent(createUpdateEvent(record.getEntity(), record.getFields(), type)); return updateCount; } catch (final Exception e) { logExceptionsFromHandlers(e); throw new SRecorderException(e); } }
public static UpdateRecord buildSetFields(final PersistentObject entity, final EntityUpdateDescriptor descriptor) { NullCheckingUtil.checkArgsNotNull(descriptor); final UpdateRecord updateRecord = new UpdateRecord(entity); updateRecord.addFields(descriptor.getFields()); return updateRecord; }
private void updateRefBusinessDataInstance(final SRefBusinessDataInstance refBusinessDataInstance, final Map<String, Object> fields) throws SRefBusinessDataInstanceModificationException { try { recorder.recordUpdate(UpdateRecord.buildSetFields(refBusinessDataInstance, fields), REF_BUSINESS_DATA_INSTANCE); } catch (final SRecorderException sre) { throw new SRefBusinessDataInstanceModificationException(sre); } }
private void updateFields(final SDocumentMapping mappedDocument, final Map<String, Object> params) throws SObjectModificationException { try { recorder.recordUpdate(UpdateRecord.buildSetFields(mappedDocument, params), DOCUMENTMAPPING); } catch (final SRecorderException e) { throw new SObjectModificationException(e); } }
@Override public void updateJobLog(final SJobLog jobLog, final EntityUpdateDescriptor descriptor) throws SJobLogUpdatingException { try { recorder.recordUpdate(UpdateRecord.buildSetFields(jobLog, descriptor), JOB_LOG); } catch (final SRecorderException e) { throw new SJobLogUpdatingException(e); } }
private void updateFields(final SDocumentMapping mappedDocument, final Map<String, Object> params) throws SObjectModificationException { try { recorder.recordUpdate(UpdateRecord.buildSetFields(mappedDocument, params), DOCUMENTMAPPING); } catch (final SRecorderException e) { throw new SObjectModificationException(e); } }
private void updateOneField(SFlowNodeInstance flowNodeInstance, String event, EntityUpdateDescriptor descriptor) throws SFlowNodeModificationException { try { recorder.recordUpdate(UpdateRecord.buildSetFields(flowNodeInstance, descriptor), event); } catch (final SRecorderException e) { throw new SFlowNodeModificationException(e); } }
@Override public void updateCustomUserInfoValue(final SCustomUserInfoValue customUserInfo, final EntityUpdateDescriptor descriptor) throws SIdentityException { try { recorder.recordUpdate(UpdateRecord.buildSetFields(customUserInfo, descriptor), CUSTOM_USER_INFO_VALUE); } catch (final SRecorderException e) { throw new SIdentityException("Can't update custom user info definition " + customUserInfo, e); } }