mirror of https://github.com/apache/archiva.git
Adding implementation of new methods for itemselector
This commit is contained in:
parent
aec61cb525
commit
565ec52e12
|
@ -41,6 +41,8 @@ public class ArchivaItemSelector implements 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 class ArchivaItemSelector implements ItemSelector
|
|||
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 class ArchivaItemSelector implements ItemSelector
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean searchSubNamespaces( )
|
||||
{
|
||||
return searchSubNamespaces;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean findRelatedArtifacts( )
|
||||
{
|
||||
return searchRelatedArtifacts;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasAttributes( )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue