Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add virtualized repository getter

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
  • Loading branch information...
commit ea170317223b683a04f2c6e44128e9d05d87be79 1 parent dd9ef3f
@adreghiciu adreghiciu authored
View
5 ...xus-client-core/src/main/java/org/sonatype/nexus/client/core/subsystem/repository/VirtualRepository.java
@@ -22,6 +22,11 @@
{
/**
+ * @return id of virtualized repository
+ */
+ String virtualizedRepository();
+
+ /**
* Specify the id of virtualized repository.
*
* @param repositoryId of virtualized repository
View
6 ...in/java/org/sonatype/nexus/client/internal/rest/jersey/subsystem/repository/JerseyVirtualRepository.java
@@ -59,6 +59,12 @@ private T me()
}
@Override
+ public String virtualizedRepository()
+ {
+ return settings().getShadowOf();
+ }
+
+ @Override
public T ofRepository( final String repositoryId )
{
settings().setShadowOf( repositoryId );
Please sign in to comment.
Something went wrong with that request. Please try again.