diff options
author | Rob Daugherty <rd472p@att.com> | 2018-11-06 15:15:35 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-11-06 15:15:35 +0000 |
commit | 2c9a77e893d414b8af81668dc9945691f4466528 (patch) | |
tree | fb1acd7bdfb2bdf34962c3f4b5d43e95d0239908 /common | |
parent | 89f384164a2712f7515497fe16b55e585266c79b (diff) | |
parent | fb6ab40a64e74876ba1f08c4d3bdb6a040c21b94 (diff) |
Merge "Bug fixes November 5th" into casablanca
Diffstat (limited to 'common')
-rw-r--r-- | common/src/main/java/org/onap/so/client/aai/entities/uri/AAIUriFactory.java | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/common/src/main/java/org/onap/so/client/aai/entities/uri/AAIUriFactory.java b/common/src/main/java/org/onap/so/client/aai/entities/uri/AAIUriFactory.java index 3589075ee5..77c61089a4 100644 --- a/common/src/main/java/org/onap/so/client/aai/entities/uri/AAIUriFactory.java +++ b/common/src/main/java/org/onap/so/client/aai/entities/uri/AAIUriFactory.java @@ -25,6 +25,7 @@ import java.net.URI; import org.onap.so.client.aai.AAIObjectPlurals; import org.onap.so.client.aai.AAIObjectType; + public class AAIUriFactory { /** @@ -53,7 +54,12 @@ public class AAIUriFactory { return new NodesUri(type, values); } - + + public static AAIResourceUri createNodesUri(AAIObjectPlurals type) { + return new NodesUri(type); + + } + /** * This method should only be used to wrap a URI retrieved from A&AI contained within an object response * @@ -64,7 +70,21 @@ public class AAIUriFactory { public static AAIResourceUri createResourceFromExistingURI(AAIObjectType type, URI uri) { return new AAISimpleUri(type, uri); } - + + + /** + * creates an AAIResourceUri from a parentUri + * + * @param parentUri + * @param childType + * @param childValues + * @return + */ + public static AAIResourceUri createResourceFromParentURI(AAIResourceUri parentUri, AAIObjectType childType, Object... childValues) { + + return new AAISimpleUri(parentUri, childType, childValues); + } + /** * Creates a uri for a plural type e.g. /cloud-infrastructure/pservers * @@ -88,4 +108,4 @@ public class AAIUriFactory { return new AAISimpleUri(type, values); } -} +}
\ No newline at end of file |