public interface ContentPermissionChecker
Modifier and Type | Method and Description |
---|---|
boolean |
isPermitted(Set<String> repositoryNames,
String repositoryFormat,
String action,
org.sonatype.nexus.selector.VariableSource variableSource)
Ensure that either the view permission or the content selector permission is permitted for the desired
repositories
|
boolean |
isPermitted(String repositoryName,
String repositoryFormat,
String action,
org.sonatype.nexus.selector.VariableSource variableSource)
Ensure that either the view permission or the content selector permission is permitted
|
boolean |
isPermittedAnyOf(Set<String> repositoryNames,
String repositoryFormat,
org.sonatype.nexus.selector.VariableSource variableSource,
String... actions)
Ensure that either the view permission or the content selector permission is permitted for the desired
repositories.
|
boolean |
isPermittedAnyOf(String repositoryName,
String repositoryFormat,
org.sonatype.nexus.selector.VariableSource variableSource,
String... actions)
Ensure that either the view permission or the content selector permission is permitted
If any of the actions are permitted, return true
|
boolean |
isPermittedJexlOnly(String repositoryName,
String repositoryFormat,
String action,
org.sonatype.nexus.selector.VariableSource variableSource)
Ensure that either the view permission or that a JEXL content selector permission is permitted
|
boolean |
isPermittedJexlOnlyAnyOf(String repositoryName,
String repositoryFormat,
org.sonatype.nexus.selector.VariableSource variableSource,
String... actions)
Ensure that either the view permission or that a JEXL content selector permission is permitted
If any of the actions are permitted, return true
|
boolean isPermitted(String repositoryName, String repositoryFormat, String action, org.sonatype.nexus.selector.VariableSource variableSource)
boolean isPermittedAnyOf(String repositoryName, String repositoryFormat, org.sonatype.nexus.selector.VariableSource variableSource, String... actions)
boolean isPermittedJexlOnly(String repositoryName, String repositoryFormat, String action, org.sonatype.nexus.selector.VariableSource variableSource)
boolean isPermittedJexlOnlyAnyOf(String repositoryName, String repositoryFormat, org.sonatype.nexus.selector.VariableSource variableSource, String... actions)
boolean isPermitted(Set<String> repositoryNames, String repositoryFormat, String action, org.sonatype.nexus.selector.VariableSource variableSource)
boolean isPermittedAnyOf(Set<String> repositoryNames, String repositoryFormat, org.sonatype.nexus.selector.VariableSource variableSource, String... actions)
Copyright © 2008–2021 Sonatype, Inc.. All rights reserved.