Refactor data types cache 06/120906/5
authorandre.schmid <andre.schmid@est.tech>
Thu, 22 Apr 2021 11:33:04 +0000 (12:33 +0100)
committerChristophe Closset <christophe.closset@intl.att.com>
Thu, 29 Apr 2021 15:15:34 +0000 (15:15 +0000)
commitd24a4f0aa92d6ea0c83d82bf2448c43d8ebdddaa
treec468f0bd65706a445dbedac354b40ce3621b0e60
parent116c4a25d915411617a3382db47e56930fb6a3ba
Refactor data types cache

Avoids potential issue of data type cache changes by external parties,
by returning copies from the cache instead of the original.
Refactors the code for more clarity.

Change-Id: Ibb518bf638f2f4ee1f5e3869baaace374efb632a
Issue-ID: SDC-3569
Signed-off-by: André Schmid <andre.schmid@est.tech>
catalog-model/pom.xml
catalog-model/src/main/java/org/openecomp/sdc/be/model/DataTypeDefinition.java
catalog-model/src/main/java/org/openecomp/sdc/be/model/cache/ApplicationCache.java
catalog-model/src/main/java/org/openecomp/sdc/be/model/cache/ApplicationDataTypeCache.java
catalog-model/src/main/java/org/openecomp/sdc/be/model/operations/impl/AbstractOperation.java
catalog-model/src/main/java/org/openecomp/sdc/be/model/operations/impl/PropertyOperation.java
catalog-model/src/test/java/org/openecomp/sdc/be/model/cache/ApplicationDataTypeCacheTest.java