maintenance changes
This commit is contained in:
parent
accb6fc772
commit
31b4e8fd39
|
@ -141,7 +141,7 @@ public class MaintenanceServiceImpl implements MaintenanceService {
|
||||||
private void sendTenantDmpTouchEvents(UUID tenantId, String tenantCode) throws InvalidApplicationException {
|
private void sendTenantDmpTouchEvents(UUID tenantId, String tenantCode) throws InvalidApplicationException {
|
||||||
try {
|
try {
|
||||||
this.tenantScope.setTempTenant(this.entityManager.getEntityManager(), tenantId, tenantCode);
|
this.tenantScope.setTempTenant(this.entityManager.getEntityManager(), tenantId, tenantCode);
|
||||||
List<DmpEntity> items = this.queryFactory.query(DmpQuery.class).disableTracking().isActive(IsActive.Active).collectAs(new BaseFieldSet().ensure(Dmp._id).ensure(Dmp._isActive));
|
List<DmpEntity> items = this.queryFactory.query(DmpQuery.class).disableTracking().collectAs(new BaseFieldSet().ensure(Dmp._id).ensure(Dmp._isActive));
|
||||||
for (DmpEntity item : items) {
|
for (DmpEntity item : items) {
|
||||||
if (item.getIsActive().equals(IsActive.Active)) this.annotationEntityTouchedIntegrationEventHandler.handleDmp(item.getId());
|
if (item.getIsActive().equals(IsActive.Active)) this.annotationEntityTouchedIntegrationEventHandler.handleDmp(item.getId());
|
||||||
else this.annotationEntityRemovalIntegrationEventHandler.handleDmp(item.getId());
|
else this.annotationEntityRemovalIntegrationEventHandler.handleDmp(item.getId());
|
||||||
|
@ -171,7 +171,7 @@ public class MaintenanceServiceImpl implements MaintenanceService {
|
||||||
private void sendTenantDescriptionTouchEvents(UUID tenantId, String tenantCode) throws InvalidApplicationException {
|
private void sendTenantDescriptionTouchEvents(UUID tenantId, String tenantCode) throws InvalidApplicationException {
|
||||||
try {
|
try {
|
||||||
this.tenantScope.setTempTenant(this.entityManager.getEntityManager(), tenantId, tenantCode);
|
this.tenantScope.setTempTenant(this.entityManager.getEntityManager(), tenantId, tenantCode);
|
||||||
List<DescriptionEntity> items = this.queryFactory.query(DescriptionQuery.class).disableTracking().isActive(IsActive.Active).collectAs(new BaseFieldSet().ensure(Description._id).ensure(Description._isActive));
|
List<DescriptionEntity> items = this.queryFactory.query(DescriptionQuery.class).disableTracking().collectAs(new BaseFieldSet().ensure(Description._id).ensure(Description._isActive));
|
||||||
for (DescriptionEntity item : items) {
|
for (DescriptionEntity item : items) {
|
||||||
if (item.getIsActive().equals(IsActive.Active)) this.annotationEntityTouchedIntegrationEventHandler.handleDescription(item.getId());
|
if (item.getIsActive().equals(IsActive.Active)) this.annotationEntityTouchedIntegrationEventHandler.handleDescription(item.getId());
|
||||||
else this.annotationEntityRemovalIntegrationEventHandler.handleDescription(item.getId());
|
else this.annotationEntityRemovalIntegrationEventHandler.handleDescription(item.getId());
|
||||||
|
|
Loading…
Reference in New Issue