diff options
Diffstat (limited to 'ecomp-portal-BE-common')
3 files changed, 12 insertions, 0 deletions
diff --git a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/domain/EPApp.java b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/domain/EPApp.java index 61fcfaee..0a24e126 100644 --- a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/domain/EPApp.java +++ b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/domain/EPApp.java @@ -46,6 +46,9 @@ import org.apache.commons.lang.StringUtils; import org.hibernate.validator.constraints.SafeHtml; import org.onap.portalsdk.core.domain.support.DomainVo; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonProperty.Access; + /** * Model for all columns in the fn_app table. */ @@ -85,6 +88,7 @@ public class EPApp extends DomainVo { private String appBasicAuthUsername; @SafeHtml + @JsonProperty(access = Access.WRITE_ONLY) private String appBasicAuthPassword; @Lob diff --git a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/service/EPAppCommonServiceImpl.java b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/service/EPAppCommonServiceImpl.java index 3d2432cb..53b85183 100644 --- a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/service/EPAppCommonServiceImpl.java +++ b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/service/EPAppCommonServiceImpl.java @@ -943,6 +943,8 @@ public class EPAppCommonServiceImpl implements EPAppService { if (fieldsValidator.httpStatusCode.intValue() == HttpServletResponse.SC_OK) { if (modifiedOnboardingApp.getId() != null) { updateApp(modifiedOnboardingApp.getId(), modifiedOnboardingApp, fieldsValidator, user); + logger.info(EELFLoggerDelegate.auditLogger, "Updated " + modifiedOnboardingApp.getAppName() + + " onboarding application details by user " + user.getLoginId()); } else { fieldsValidator.httpStatusCode = new Long(HttpServletResponse.SC_BAD_REQUEST); } @@ -959,6 +961,8 @@ public class EPAppCommonServiceImpl implements EPAppService { if (fieldsValidator.httpStatusCode.intValue() == HttpServletResponse.SC_OK) { if (newOnboardingApp.getId() == null) { updateApp(null, newOnboardingApp, fieldsValidator, user); + logger.info(EELFLoggerDelegate.auditLogger, "Added " + newOnboardingApp.getAppName() + + " Onboarding application by user " + user.getLoginId()); } else { fieldsValidator.httpStatusCode = new Long(HttpServletResponse.SC_BAD_REQUEST); } diff --git a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/transport/OnboardingApp.java b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/transport/OnboardingApp.java index d1b2a568..099f971a 100644 --- a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/transport/OnboardingApp.java +++ b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/transport/OnboardingApp.java @@ -40,6 +40,9 @@ package org.onap.portalapp.portal.transport; import org.hibernate.validator.constraints.SafeHtml; import org.onap.portalapp.portal.domain.EpAppType; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonProperty.Access; + /** * Model of rows in the fn_app table; serialized as a message add or update an * on-boarded application. @@ -79,6 +82,7 @@ public class OnboardingApp { @SafeHtml private String appBasicAuthUsername; @SafeHtml + @JsonProperty(access = Access.WRITE_ONLY) private String appBasicAuthPassword; @SafeHtml private String thumbnail; |