Issue-ID: CPS-475
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
Change-Id: I5c10360ec42bc9737ed86140398ef954109275dd
* Create Node.
* @deprecated This Method is no longer used as part of NCMP.
*/
* Create Node.
* @deprecated This Method is no longer used as part of NCMP.
*/
+ // All deprecated APIs methods will be address into https://jira.onap.org/browse/CPS-642
@Override
@Deprecated(forRemoval = false)
public ResponseEntity<Void> createNode(final String cmHandle, @Valid final Object jsonData,
@Override
@Deprecated(forRemoval = false)
public ResponseEntity<Void> createNode(final String cmHandle, @Valid final Object jsonData,
* Add List-node Child Element.
* @deprecated This Method is no longer used as part of NCMP.
*/
* Add List-node Child Element.
* @deprecated This Method is no longer used as part of NCMP.
*/
+ // All deprecated APIs methods will be address into https://jira.onap.org/browse/CPS-642
@Override
@Deprecated(forRemoval = false)
public ResponseEntity<Void> addListNodeElements(@NotNull @Valid final String parentNodeXpath,
@Override
@Deprecated(forRemoval = false)
public ResponseEntity<Void> addListNodeElements(@NotNull @Valid final String parentNodeXpath,
* Get Node By CM Handle and X-Path.
* @deprecated This Method is no longer used as part of NCMP.
*/
* Get Node By CM Handle and X-Path.
* @deprecated This Method is no longer used as part of NCMP.
*/
+ // All deprecated APIs methods will be address into https://jira.onap.org/browse/CPS-642
@Override
@Deprecated(forRemoval = false)
public ResponseEntity<Object> getNodeByCmHandleAndXpath(final String cmHandle, @Valid final String xpath,
@Override
@Deprecated(forRemoval = false)
public ResponseEntity<Object> getNodeByCmHandleAndXpath(final String cmHandle, @Valid final String xpath,
* Query Data Nodes.
* @deprecated This Method is no longer used as part of NCMP.
*/
* Query Data Nodes.
* @deprecated This Method is no longer used as part of NCMP.
*/
+ // All deprecated APIs methods will be address into https://jira.onap.org/browse/CPS-642
@Override
@Deprecated(forRemoval = false)
public ResponseEntity<Object> queryNodesByCmHandleAndCpsPath(final String cmHandle, @Valid final String cpsPath,
@Override
@Deprecated(forRemoval = false)
public ResponseEntity<Object> queryNodesByCmHandleAndCpsPath(final String cmHandle, @Valid final String cpsPath,
* Replace Node With Descendants.
* @deprecated This Method is no longer used as part of NCMP.
*/
* Replace Node With Descendants.
* @deprecated This Method is no longer used as part of NCMP.
*/
+ // All deprecated APIs methods will be address into https://jira.onap.org/browse/CPS-642
@Override
@Deprecated(forRemoval = false)
public ResponseEntity<Object> replaceNode(final String cmHandle, @Valid final Object jsonData,
@Override
@Deprecated(forRemoval = false)
public ResponseEntity<Object> replaceNode(final String cmHandle, @Valid final Object jsonData,
* Update Node Leaves.
* @deprecated This Method is no longer used as part of NCMP.
*/
* Update Node Leaves.
* @deprecated This Method is no longer used as part of NCMP.
*/
+ // All deprecated APIs methods will be address into https://jira.onap.org/browse/CPS-642
@Override
@Deprecated(forRemoval = false)
public ResponseEntity<Object> updateNodeLeaves(final String cmHandle, @Valid final Object jsonData,
@Override
@Deprecated(forRemoval = false)
public ResponseEntity<Object> updateNodeLeaves(final String cmHandle, @Valid final Object jsonData,
- private List<ModuleReference> toModuleReferences(final Map dmiFetchModulesResponseAsMap) {
+ private List<ModuleReference> toModuleReferences(final Map<String, Object> dmiFetchModulesResponseAsMap) {
final List<ModuleReference> moduleReferences = new ArrayList<>();
if (dmiFetchModulesResponseAsMap != null) {
final List<ModuleReference> moduleReferences = new ArrayList<>();
if (dmiFetchModulesResponseAsMap != null) {
- final List moduleReferencesAsList = (List) dmiFetchModulesResponseAsMap.get("schemas");
+ final List<Object> moduleReferencesAsList = (List) dmiFetchModulesResponseAsMap.get("schemas");
if (moduleReferencesAsList != null) {
moduleReferencesAsList.forEach(moduleReferenceAsMap -> {
final ModuleReference moduleReference =
if (moduleReferencesAsList != null) {
moduleReferencesAsList.forEach(moduleReferenceAsMap -> {
final ModuleReference moduleReference =
* Runtime exception.
* Thrown when given dataspace name is rejected to be deleted because it has anchor or schemasets associated.
*/
* Runtime exception.
* Thrown when given dataspace name is rejected to be deleted because it has anchor or schemasets associated.
*/
+@SuppressWarnings("squid:S110") // Team agreed to accept 6 levels of inheritance for CPS Exceptions
public class DataspaceInUseException extends DataInUseException {
private static final long serialVersionUID = 4531370947720760347L;
public class DataspaceInUseException extends DataInUseException {
private static final long serialVersionUID = 4531370947720760347L;