Adding implementation of new methods for itemselector
private String classifier = null;
private String extension = null;
private Map<String, String> attributes;
+ private boolean searchRelatedArtifacts = false;
+ private boolean searchSubNamespaces = false;
private ArchivaItemSelector( )
@@ -118,6 +120,16 @@ public Builder withExtension( String extension )
return this;
}
+ public Builder enableSearchRelatedArtifacts() {
+ selector.searchRelatedArtifacts = true;
+ return this;
+ }
+
+ public Builder enableSearchSubNamespaces() {
+ selector.searchSubNamespaces = true;
+ return this;
+ }
+
public ArchivaItemSelector build( )
{
return selector;
@@ -208,6 +220,18 @@ public String getExtension( )
}
}
+ @Override
+ public boolean searchSubNamespaces( )
+ {
+ return searchSubNamespaces;
+ }
+
+ @Override
+ public boolean findRelatedArtifacts( )
+ {
+ return searchRelatedArtifacts;
+ }
+
@Override
public boolean hasAttributes( )
{
