add status changed notifications
This commit is contained in:
parent
3c46462e10
commit
38542c65ad
|
@ -11,11 +11,13 @@ public class NotificationProperties {
|
|||
private UUID planInvitationExistingUserType;
|
||||
private UUID planModifiedType;
|
||||
private UUID planFinalisedType;
|
||||
private UUID planStatusChangedType;
|
||||
private UUID planAnnotationCreatedType;
|
||||
private UUID planAnnotationStatusChangedType;
|
||||
private UUID descriptionCreatedType;
|
||||
private UUID descriptionModifiedType;
|
||||
private UUID descriptionFinalisedType;
|
||||
private UUID descriptionStatusChangedType;
|
||||
private UUID descriptionAnnotationCreatedType;
|
||||
private UUID descriptionAnnotationStatusChangedType;
|
||||
private UUID mergeAccountConfirmationType;
|
||||
|
@ -61,6 +63,14 @@ public class NotificationProperties {
|
|||
this.planFinalisedType = planFinalisedType;
|
||||
}
|
||||
|
||||
public UUID getPlanStatusChangedType() {
|
||||
return planStatusChangedType;
|
||||
}
|
||||
|
||||
public void setPlanStatusChangedType(UUID planStatusChangedType) {
|
||||
this.planStatusChangedType = planStatusChangedType;
|
||||
}
|
||||
|
||||
public UUID getPlanAnnotationCreatedType() {
|
||||
return planAnnotationCreatedType;
|
||||
}
|
||||
|
@ -101,6 +111,14 @@ public class NotificationProperties {
|
|||
this.descriptionFinalisedType = descriptionFinalisedType;
|
||||
}
|
||||
|
||||
public UUID getDescriptionStatusChangedType() {
|
||||
return descriptionStatusChangedType;
|
||||
}
|
||||
|
||||
public void setDescriptionStatusChangedType(UUID descriptionStatusChangedType) {
|
||||
this.descriptionStatusChangedType = descriptionStatusChangedType;
|
||||
}
|
||||
|
||||
public UUID getMergeAccountConfirmationType() {
|
||||
return this.mergeAccountConfirmationType;
|
||||
}
|
||||
|
|
|
@ -392,7 +392,7 @@ public class DescriptionServiceImpl implements DescriptionService {
|
|||
private void sendNotification(DescriptionEntity description, Boolean isUpdate) throws InvalidApplicationException {
|
||||
DescriptionStatusEntity descriptionStatusEntity = this.entityManager.find(DescriptionStatusEntity.class, description.getStatusId(), true);
|
||||
if (descriptionStatusEntity == null) throw new MyNotFoundException(this.messageSource.getMessage("General_ItemNotFound", new Object[]{description, DescriptionStatus.class.getSimpleName()}, LocaleContextHolder.getLocale()));
|
||||
if (descriptionStatusEntity.getInternalStatus() == null || descriptionStatusEntity.getInternalStatus().equals(DescriptionStatus.Canceled)) return;
|
||||
if (descriptionStatusEntity.getInternalStatus() != null && descriptionStatusEntity.getInternalStatus().equals(DescriptionStatus.Canceled)) return;
|
||||
|
||||
List<PlanUserEntity> existingUsers = this.queryFactory.query(PlanUserQuery.class).disableTracking()
|
||||
.planIds(description.getPlanId())
|
||||
|
@ -406,7 +406,7 @@ public class DescriptionServiceImpl implements DescriptionService {
|
|||
if (!planUser.getUserId().equals(this.userScope.getUserIdSafe())){
|
||||
UserEntity user = this.queryFactory.query(UserQuery.class).disableTracking().ids(planUser.getUserId()).first();
|
||||
if (user == null || user.getIsActive().equals(IsActive.Inactive)) throw new MyValidationException(this.errors.getPlanInactiveUser().getCode(), this.errors.getPlanInactiveUser().getMessage());
|
||||
this.createDescriptionNotificationEvent(description, descriptionStatusEntity.getInternalStatus(), user, isUpdate);
|
||||
this.createDescriptionNotificationEvent(description, descriptionStatusEntity, user, isUpdate);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -455,17 +455,19 @@ public class DescriptionServiceImpl implements DescriptionService {
|
|||
return cleanData;
|
||||
}
|
||||
|
||||
private void createDescriptionNotificationEvent(DescriptionEntity description, DescriptionStatus internalStatus, UserEntity user, Boolean isUpdate) throws InvalidApplicationException {
|
||||
private void createDescriptionNotificationEvent(DescriptionEntity description, DescriptionStatusEntity descriptionStatus, UserEntity user, Boolean isUpdate) throws InvalidApplicationException {
|
||||
NotifyIntegrationEvent event = new NotifyIntegrationEvent();
|
||||
event.setUserId(user.getId());
|
||||
|
||||
this.applyNotificationType(internalStatus, event, isUpdate);
|
||||
if (descriptionStatus.getInternalStatus() == null) event.setNotificationType(this.notificationProperties.getDescriptionStatusChangedType());
|
||||
else this.applyNotificationType(descriptionStatus.getInternalStatus(), event, isUpdate);
|
||||
NotificationFieldData data = new NotificationFieldData();
|
||||
List<FieldInfo> fieldInfoList = new ArrayList<>();
|
||||
fieldInfoList.add(new FieldInfo("{recipient}", DataType.String, user.getName()));
|
||||
fieldInfoList.add(new FieldInfo("{reasonName}", DataType.String, this.queryFactory.query(UserQuery.class).disableTracking().ids(this.userScope.getUserId()).first().getName()));
|
||||
fieldInfoList.add(new FieldInfo("{name}", DataType.String, description.getLabel()));
|
||||
fieldInfoList.add(new FieldInfo("{id}", DataType.String, description.getId().toString()));
|
||||
if (descriptionStatus.getInternalStatus() == null) fieldInfoList.add(new FieldInfo("{statusName}", DataType.String, descriptionStatus.getName()));
|
||||
if(this.tenantScope.getTenantCode() != null && !this.tenantScope.getTenantCode().equals(this.tenantScope.getDefaultTenantCode())){
|
||||
fieldInfoList.add(new FieldInfo("{tenant-url-path}", DataType.String, String.format("/t/%s", this.tenantScope.getTenantCode())));
|
||||
}
|
||||
|
@ -525,7 +527,7 @@ public class DescriptionServiceImpl implements DescriptionService {
|
|||
this.eventBroker.emit(new DescriptionTouchedEvent(data.getId()));
|
||||
|
||||
this.annotationEntityTouchedIntegrationEventHandler.handleDescription(data.getId());
|
||||
if (newStatusEntity.getInternalStatus() != null && newStatusEntity.getInternalStatus().equals(DescriptionStatus.Finalized)) this.sendNotification(data, true);
|
||||
this.sendNotification(data, true);
|
||||
}
|
||||
return this.builderFactory.builder(DescriptionBuilder.class).authorize(AuthorizationFlags.AllExceptPublic).build(BaseFieldSet.build(fields, Description._id), data);
|
||||
}
|
||||
|
|
|
@ -316,7 +316,6 @@ public class PlanServiceImpl implements PlanService {
|
|||
private void sendNotification(PlanEntity plan) throws InvalidApplicationException {
|
||||
PlanStatusEntity planStatusEntity = this.entityManager.find(PlanStatusEntity.class, plan.getStatusId(), true);
|
||||
if (planStatusEntity == null) throw new MyNotFoundException(this.messageSource.getMessage("General_ItemNotFound", new Object[]{plan.getStatusId(), PlanStatusEntity.class.getSimpleName()}, LocaleContextHolder.getLocale()));
|
||||
if (planStatusEntity.getInternalStatus() == null) return;
|
||||
|
||||
List<PlanUserEntity> existingUsers = this.queryFactory.query(PlanUserQuery.class).disableTracking()
|
||||
.planIds(plan.getId())
|
||||
|
@ -331,22 +330,25 @@ public class PlanServiceImpl implements PlanService {
|
|||
if (!planUser.getUserId().equals(this.userScope.getUserIdSafe())){
|
||||
UserEntity user = this.queryFactory.query(UserQuery.class).disableTracking().ids(planUser.getUserId()).first();
|
||||
if (user == null || user.getIsActive().equals(IsActive.Inactive)) throw new MyValidationException(this.errors.getPlanInactiveUser().getCode(), this.errors.getPlanInactiveUser().getMessage());
|
||||
this.createPlanNotificationEvent(plan, planStatusEntity.getInternalStatus(), user);
|
||||
this.createPlanNotificationEvent(plan, planStatusEntity, user);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void createPlanNotificationEvent(PlanEntity plan, PlanStatus internalStatus, UserEntity user) throws InvalidApplicationException {
|
||||
private void createPlanNotificationEvent(PlanEntity plan, PlanStatusEntity planStatus, UserEntity user) throws InvalidApplicationException {
|
||||
NotifyIntegrationEvent event = new NotifyIntegrationEvent();
|
||||
event.setUserId(user.getId());
|
||||
|
||||
this.applyNotificationType(internalStatus, event);
|
||||
if (planStatus.getInternalStatus() == null) event.setNotificationType(this.notificationProperties.getPlanStatusChangedType());
|
||||
else this.applyNotificationType(planStatus.getInternalStatus(), event);
|
||||
|
||||
NotificationFieldData data = new NotificationFieldData();
|
||||
List<FieldInfo> fieldInfoList = new ArrayList<>();
|
||||
fieldInfoList.add(new FieldInfo("{recipient}", DataType.String, user.getName()));
|
||||
fieldInfoList.add(new FieldInfo("{reasonName}", DataType.String, this.queryFactory.query(UserQuery.class).disableTracking().ids(this.userScope.getUserId()).first().getName()));
|
||||
fieldInfoList.add(new FieldInfo("{name}", DataType.String, plan.getLabel()));
|
||||
fieldInfoList.add(new FieldInfo("{id}", DataType.String, plan.getId().toString()));
|
||||
if (planStatus.getInternalStatus() == null) fieldInfoList.add(new FieldInfo("{statusName}", DataType.String, planStatus.getName()));
|
||||
if(this.tenantScope.getTenantCode() != null && !this.tenantScope.getTenantCode().equals(this.tenantScope.getDefaultTenantCode())){
|
||||
fieldInfoList.add(new FieldInfo("{tenant-url-path}", DataType.String, String.format("/t/%s", this.tenantScope.getTenantCode())));
|
||||
}
|
||||
|
@ -1626,6 +1628,7 @@ public class PlanServiceImpl implements PlanService {
|
|||
|
||||
this.entityManager.merge(plan);
|
||||
this.entityManager.flush();
|
||||
this.sendNotification(plan);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -3,11 +3,13 @@ notification:
|
|||
planInvitationExistingUserType: 4904dea2-5079-46d3-83be-3a19c9ab45dc
|
||||
planModifiedType: 4542262A-22F8-4BAA-9DB6-1C8E70AC1DBB
|
||||
planFinalisedType: 90DB0B46-42DE-BD89-AEBF-6F27EFEB256E
|
||||
planStatusChangedType: 25bbc307-4fa8-4381-b2d7-a3395f57d575
|
||||
planAnnotationCreatedType: 1cca80f5-2ea9-41ae-a204-9b4332216c24
|
||||
planAnnotationStatusChangedType: 0c8a5c62-e48f-4eca-99ee-a7f262477061
|
||||
descriptionCreatedType: 8965b1d5-99a6-4acf-9016-c0d0ce341364
|
||||
descriptionModifiedType: 4FDBFA80-7A71-4A69-B854-67CBB70648F1
|
||||
descriptionFinalisedType: 33790bad-94d4-488a-8ee2-7f6295ca18ea
|
||||
descriptionStatusChangedType: 8389aca8-43bd-4aac-958d-24daf6ed47b4
|
||||
descriptionAnnotationCreatedType: db1e99d2-a240-4e75-9bb2-ef25b234c1f0
|
||||
descriptionAnnotationStatusChangedType: 3189e3a6-91e6-40c6-8ff8-275a68445aec
|
||||
mergeAccountConfirmationType: BFE68845-CB05-4C5A-A03D-29161A7C9660
|
||||
|
|
|
@ -2259,11 +2259,13 @@
|
|||
"PLAN-INVITATION-EXISTING-USER": "Plan Invitation Existing User",
|
||||
"PLAN-MODIFIED": "Plan Modified",
|
||||
"PLAN-FINALISED": "Plan Finalised",
|
||||
"PLAN-STATUS-CHANGED": "Plan Status Changed",
|
||||
"PLAN-ANNOTATION-CREATED": "Plan Annotation Created",
|
||||
"PLAN-ANNOTATION-STATUS-CHANGED": "Plan Annotation Status Changed",
|
||||
"DESCRIPTION-CREATED": "Description Created",
|
||||
"DESCRIPTION-MODIFIED": "Description Modified",
|
||||
"DESCRIPTION-FINALISED": "Description Finalised",
|
||||
"DESCRIPTION-STATUS-CHANGED": "Description Status Changed",
|
||||
"DESCRIPTION-ANNOTATION-CREATED": "Description Annotation Created",
|
||||
"DESCRIPTION-ANNOTATION-STATUS-CHANGED": "Description Annotation Status Changed",
|
||||
"MERGE-ACCOUNT-CONFIRMATION": "Merge Account Confirmation",
|
||||
|
|
|
@ -2259,11 +2259,13 @@
|
|||
"PLAN-INVITATION-EXISTING-USER": "Plan Invitation Existing User",
|
||||
"PLAN-MODIFIED": "Plan Modified",
|
||||
"PLAN-FINALISED": "Plan Finalised",
|
||||
"PLAN-STATUS-CHANGED": "Plan Status Changed",
|
||||
"PLAN-ANNOTATION-CREATED": "Plan Annotation Created",
|
||||
"PLAN-ANNOTATION-STATUS-CHANGED": "Plan Annotation Status Changed",
|
||||
"DESCRIPTION-CREATED": "Description Created",
|
||||
"DESCRIPTION-MODIFIED": "Description Modified",
|
||||
"DESCRIPTION-FINALISED": "Description Finalised",
|
||||
"DESCRIPTION-STATUS-CHANGED": "Description Status Changed",
|
||||
"DESCRIPTION-ANNOTATION-CREATED": "Description Annotation Created",
|
||||
"DESCRIPTION-ANNOTATION-STATUS-CHANGED": "Description Annotation Status Changed",
|
||||
"MERGE-ACCOUNT-CONFIRMATION": "Merge Account Confirmation",
|
||||
|
|
|
@ -2259,11 +2259,13 @@
|
|||
"PLAN-INVITATION-EXISTING-USER": "Plan Invitation Existing User",
|
||||
"PLAN-MODIFIED": "Plan Modified",
|
||||
"PLAN-FINALISED": "Plan Finalised",
|
||||
"PLAN-STATUS-CHANGED": "Plan Status Changed",
|
||||
"PLAN-ANNOTATION-CREATED": "Plan Annotation Created",
|
||||
"PLAN-ANNOTATION-STATUS-CHANGED": "Plan Annotation Status Changed",
|
||||
"DESCRIPTION-CREATED": "Description Created",
|
||||
"DESCRIPTION-MODIFIED": "Description Modified",
|
||||
"DESCRIPTION-FINALISED": "Description Finalised",
|
||||
"DESCRIPTION-STATUS-CHANGED": "Description Status Changed",
|
||||
"DESCRIPTION-ANNOTATION-CREATED": "Description Annotation Created",
|
||||
"DESCRIPTION-ANNOTATION-STATUS-CHANGED": "Description Annotation Status Changed",
|
||||
"MERGE-ACCOUNT-CONFIRMATION": "Merge Account Confirmation",
|
||||
|
|
|
@ -2259,11 +2259,13 @@
|
|||
"PLAN-INVITATION-EXISTING-USER": "Plan Invitation Existing User",
|
||||
"PLAN-MODIFIED": "Plan Modified",
|
||||
"PLAN-FINALISED": "Plan Finalised",
|
||||
"PLAN-STATUS-CHANGED": "Plan Status Changed",
|
||||
"PLAN-ANNOTATION-CREATED": "Plan Annotation Created",
|
||||
"PLAN-ANNOTATION-STATUS-CHANGED": "Plan Annotation Status Changed",
|
||||
"DESCRIPTION-CREATED": "Description Created",
|
||||
"DESCRIPTION-MODIFIED": "Description Modified",
|
||||
"DESCRIPTION-FINALISED": "Description Finalised",
|
||||
"DESCRIPTION-STATUS-CHANGED": "Description Status Changed",
|
||||
"DESCRIPTION-ANNOTATION-CREATED": "Description Annotation Created",
|
||||
"DESCRIPTION-ANNOTATION-STATUS-CHANGED": "Description Annotation Status Changed",
|
||||
"MERGE-ACCOUNT-CONFIRMATION": "Merge Account Confirmation",
|
||||
|
|
|
@ -2259,11 +2259,13 @@
|
|||
"PLAN-INVITATION-EXISTING-USER": "Plan Invitation Existing User",
|
||||
"PLAN-MODIFIED": "Plan Modified",
|
||||
"PLAN-FINALISED": "Plan Finalised",
|
||||
"PLAN-STATUS-CHANGED": "Plan Status Changed",
|
||||
"PLAN-ANNOTATION-CREATED": "Plan Annotation Created",
|
||||
"PLAN-ANNOTATION-STATUS-CHANGED": "Plan Annotation Status Changed",
|
||||
"DESCRIPTION-CREATED": "Description Created",
|
||||
"DESCRIPTION-MODIFIED": "Description Modified",
|
||||
"DESCRIPTION-FINALISED": "Description Finalised",
|
||||
"DESCRIPTION-STATUS-CHANGED": "Description Status Changed",
|
||||
"DESCRIPTION-ANNOTATION-CREATED": "Description Annotation Created",
|
||||
"DESCRIPTION-ANNOTATION-STATUS-CHANGED": "Description Annotation Status Changed",
|
||||
"MERGE-ACCOUNT-CONFIRMATION": "Merge Account Confirmation",
|
||||
|
|
|
@ -2259,11 +2259,13 @@
|
|||
"PLAN-INVITATION-EXISTING-USER": "Plan Invitation Existing User",
|
||||
"PLAN-MODIFIED": "Plan Modified",
|
||||
"PLAN-FINALISED": "Plan Finalised",
|
||||
"PLAN-STATUS-CHANGED": "Plan Status Changed",
|
||||
"PLAN-ANNOTATION-CREATED": "Plan Annotation Created",
|
||||
"PLAN-ANNOTATION-STATUS-CHANGED": "Plan Annotation Status Changed",
|
||||
"DESCRIPTION-CREATED": "Description Created",
|
||||
"DESCRIPTION-MODIFIED": "Description Modified",
|
||||
"DESCRIPTION-FINALISED": "Description Finalised",
|
||||
"DESCRIPTION-STATUS-CHANGED": "Description Status Changed",
|
||||
"DESCRIPTION-ANNOTATION-CREATED": "Description Annotation Created",
|
||||
"DESCRIPTION-ANNOTATION-STATUS-CHANGED": "Description Annotation Status Changed",
|
||||
"MERGE-ACCOUNT-CONFIRMATION": "Merge Account Confirmation",
|
||||
|
|
|
@ -2259,11 +2259,13 @@
|
|||
"PLAN-INVITATION-EXISTING-USER": "Plan Invitation Existing User",
|
||||
"PLAN-MODIFIED": "Plan Modified",
|
||||
"PLAN-FINALISED": "Plan Finalised",
|
||||
"PLAN-STATUS-CHANGED": "Plan Status Changed",
|
||||
"PLAN-ANNOTATION-CREATED": "Plan Annotation Created",
|
||||
"PLAN-ANNOTATION-STATUS-CHANGED": "Plan Annotation Status Changed",
|
||||
"DESCRIPTION-CREATED": "Description Created",
|
||||
"DESCRIPTION-MODIFIED": "Description Modified",
|
||||
"DESCRIPTION-FINALISED": "Description Finalised",
|
||||
"DESCRIPTION-STATUS-CHANGED": "Description Status Changed",
|
||||
"DESCRIPTION-ANNOTATION-CREATED": "Description Annotation Created",
|
||||
"DESCRIPTION-ANNOTATION-STATUS-CHANGED": "Description Annotation Status Changed",
|
||||
"MERGE-ACCOUNT-CONFIRMATION": "Merge Account Confirmation",
|
||||
|
|
|
@ -2259,11 +2259,13 @@
|
|||
"PLAN-INVITATION-EXISTING-USER": "Plan Invitation Existing User",
|
||||
"PLAN-MODIFIED": "Plan Modified",
|
||||
"PLAN-FINALISED": "Plan Finalised",
|
||||
"PLAN-STATUS-CHANGED": "Plan Status Changed",
|
||||
"PLAN-ANNOTATION-CREATED": "Plan Annotation Created",
|
||||
"PLAN-ANNOTATION-STATUS-CHANGED": "Plan Annotation Status Changed",
|
||||
"DESCRIPTION-CREATED": "Description Created",
|
||||
"DESCRIPTION-MODIFIED": "Description Modified",
|
||||
"DESCRIPTION-FINALISED": "Description Finalised",
|
||||
"DESCRIPTION-STATUS-CHANGED": "Description Status Changed",
|
||||
"DESCRIPTION-ANNOTATION-CREATED": "Description Annotation Created",
|
||||
"DESCRIPTION-ANNOTATION-STATUS-CHANGED": "Description Annotation Status Changed",
|
||||
"MERGE-ACCOUNT-CONFIRMATION": "Merge Account Confirmation",
|
||||
|
|
|
@ -2259,11 +2259,13 @@
|
|||
"PLAN-INVITATION-EXISTING-USER": "Plan Invitation Existing User",
|
||||
"PLAN-MODIFIED": "Plan Modified",
|
||||
"PLAN-FINALISED": "Plan Finalised",
|
||||
"PLAN-STATUS-CHANGED": "Plan Status Changed",
|
||||
"PLAN-ANNOTATION-CREATED": "Plan Annotation Created",
|
||||
"PLAN-ANNOTATION-STATUS-CHANGED": "Plan Annotation Status Changed",
|
||||
"DESCRIPTION-CREATED": "Description Created",
|
||||
"DESCRIPTION-MODIFIED": "Description Modified",
|
||||
"DESCRIPTION-FINALISED": "Description Finalised",
|
||||
"DESCRIPTION-STATUS-CHANGED": "Description Status Changed",
|
||||
"DESCRIPTION-ANNOTATION-CREATED": "Description Annotation Created",
|
||||
"DESCRIPTION-ANNOTATION-STATUS-CHANGED": "Description Annotation Status Changed",
|
||||
"MERGE-ACCOUNT-CONFIRMATION": "Merge Account Confirmation",
|
||||
|
|
|
@ -2259,11 +2259,13 @@
|
|||
"PLAN-INVITATION-EXISTING-USER": "Plan Invitation Existing User",
|
||||
"PLAN-MODIFIED": "Plan Modified",
|
||||
"PLAN-FINALISED": "Plan Finalised",
|
||||
"PLAN-STATUS-CHANGED": "Plan Status Changed",
|
||||
"PLAN-ANNOTATION-CREATED": "Plan Annotation Created",
|
||||
"PLAN-ANNOTATION-STATUS-CHANGED": "Plan Annotation Status Changed",
|
||||
"DESCRIPTION-CREATED": "Description Created",
|
||||
"DESCRIPTION-MODIFIED": "Description Modified",
|
||||
"DESCRIPTION-FINALISED": "Description Finalised",
|
||||
"DESCRIPTION-STATUS-CHANGED": "Description Status Changed",
|
||||
"DESCRIPTION-ANNOTATION-CREATED": "Description Annotation Created",
|
||||
"DESCRIPTION-ANNOTATION-STATUS-CHANGED": "Description Annotation Status Changed",
|
||||
"MERGE-ACCOUNT-CONFIRMATION": "Merge Account Confirmation",
|
||||
|
|
|
@ -2259,11 +2259,13 @@
|
|||
"PLAN-INVITATION-EXISTING-USER": "Plan Invitation Existing User",
|
||||
"PLAN-MODIFIED": "Plan Modified",
|
||||
"PLAN-FINALISED": "Plan Finalised",
|
||||
"PLAN-STATUS-CHANGED": "Plan Status Changed",
|
||||
"PLAN-ANNOTATION-CREATED": "Plan Annotation Created",
|
||||
"PLAN-ANNOTATION-STATUS-CHANGED": "Plan Annotation Status Changed",
|
||||
"DESCRIPTION-CREATED": "Description Created",
|
||||
"DESCRIPTION-MODIFIED": "Description Modified",
|
||||
"DESCRIPTION-FINALISED": "Description Finalised",
|
||||
"DESCRIPTION-STATUS-CHANGED": "Description Status Changed",
|
||||
"DESCRIPTION-ANNOTATION-CREATED": "Description Annotation Created",
|
||||
"DESCRIPTION-ANNOTATION-STATUS-CHANGED": "Description Annotation Status Changed",
|
||||
"MERGE-ACCOUNT-CONFIRMATION": "Merge Account Confirmation",
|
||||
|
|
|
@ -4,12 +4,14 @@ export enum NotificationType {
|
|||
descriptionCreatedType = '8965b1d5-99a6-4acf-9016-c0d0ce341364',
|
||||
planModifiedType = '4542262a-22f8-4baa-9db6-1c8e70ac1dbb',
|
||||
planFinalisedType = '90db0b46-42de-bd89-aebf-6f27efeb256e',
|
||||
planStatusChangedType = "25bbc307-4fa8-4381-b2d7-a3395f57d575",
|
||||
planAnnotationCreatedType = '1cca80f5-2ea9-41ae-a204-9b4332216c24',
|
||||
planAnnotationStatusChangedType = '0c8a5c62-e48f-4eca-99ee-a7f262477061',
|
||||
descriptionAnnotationCreatedType = 'db1e99d2-a240-4e75-9bb2-ef25b234c1f0',
|
||||
descriptionAnnotationStatusChangedType = '3189e3a6-91e6-40c6-8ff8-275a68445aec',
|
||||
descriptionModifiedType = '4fdbfa80-7a71-4a69-b854-67cbb70648f1',
|
||||
descriptionFinalisedType = '33790bad-94d4-488a-8ee2-7f6295ca18ea',
|
||||
descriptionStatusChangedType = "8389aca8-43bd-4aac-958d-24daf6ed47b4",
|
||||
mergeAccountConfirmationType = 'bfe68845-cb05-4c5a-a03d-29161a7c9660',
|
||||
removeCredentialConfirmationType = 'c9bc3f16-057e-4bba-8a5f-36bd835e5604',
|
||||
planDepositType = '55736f7a-83ab-4190-af43-9d031a6f9612',
|
||||
|
|
|
@ -32,11 +32,13 @@ export class NotificationServiceEnumUtils extends BaseEnumUtilsService {
|
|||
case NotificationType.planInvitationExistingUserType: return this.language.instant('TYPES.NOTIFICATION-TEMPLATE-NOTIFICATION-TYPE.PLAN-INVITATION-EXISTING-USER');
|
||||
case NotificationType.planModifiedType: return this.language.instant('TYPES.NOTIFICATION-TEMPLATE-NOTIFICATION-TYPE.PLAN-MODIFIED');
|
||||
case NotificationType.planFinalisedType: return this.language.instant('TYPES.NOTIFICATION-TEMPLATE-NOTIFICATION-TYPE.PLAN-FINALISED');
|
||||
case NotificationType.planStatusChangedType: return this.language.instant('TYPES.NOTIFICATION-TEMPLATE-NOTIFICATION-TYPE.PLAN-STATUS-CHANGED');
|
||||
case NotificationType.planAnnotationCreatedType: return this.language.instant('TYPES.NOTIFICATION-TEMPLATE-NOTIFICATION-TYPE.PLAN-ANNOTATION-CREATED');
|
||||
case NotificationType.planAnnotationStatusChangedType: return this.language.instant('TYPES.NOTIFICATION-TEMPLATE-NOTIFICATION-TYPE.PLAN-ANNOTATION-STATUS-CHANGED');
|
||||
case NotificationType.descriptionCreatedType: return this.language.instant('TYPES.NOTIFICATION-TEMPLATE-NOTIFICATION-TYPE.DESCRIPTION-CREATED');
|
||||
case NotificationType.descriptionModifiedType: return this.language.instant('TYPES.NOTIFICATION-TEMPLATE-NOTIFICATION-TYPE.DESCRIPTION-MODIFIED');
|
||||
case NotificationType.descriptionFinalisedType: return this.language.instant('TYPES.NOTIFICATION-TEMPLATE-NOTIFICATION-TYPE.DESCRIPTION-FINALISED');
|
||||
case NotificationType.descriptionStatusChangedType: return this.language.instant('TYPES.NOTIFICATION-TEMPLATE-NOTIFICATION-TYPE.DESCRIPTION-STATUS-CHANGED');
|
||||
case NotificationType.descriptionAnnotationCreatedType: return this.language.instant('TYPES.NOTIFICATION-TEMPLATE-NOTIFICATION-TYPE.DESCRIPTION-ANNOTATION-CREATED');
|
||||
case NotificationType.descriptionAnnotationStatusChangedType: return this.language.instant('TYPES.NOTIFICATION-TEMPLATE-NOTIFICATION-TYPE.DESCRIPTION-ANNOTATION-STATUS-CHANGED');
|
||||
case NotificationType.mergeAccountConfirmationType: return this.language.instant('TYPES.NOTIFICATION-TEMPLATE-NOTIFICATION-TYPE.MERGE-ACCOUNT-CONFIRMATION');
|
||||
|
|
Loading…
Reference in New Issue