@Named @Singleton public class ContentPermissionCheckerImpl extends org.sonatype.goodies.common.ComponentSupport implements ContentPermissionChecker
Constructor and Description |
---|
ContentPermissionCheckerImpl(org.sonatype.nexus.security.SecurityHelper securityHelper,
org.sonatype.nexus.selector.SelectorManager selectorManager) |
Modifier and Type | Method and Description |
---|---|
boolean |
isContentPermitted(Set<String> repositoryNames,
String repositoryFormat,
String action,
org.sonatype.nexus.selector.SelectorConfiguration selectorConfiguration,
org.sonatype.nexus.selector.VariableSource variableSource) |
boolean |
isContentPermitted(String repositoryName,
String repositoryFormat,
String action,
org.sonatype.nexus.selector.SelectorConfiguration selectorConfiguration,
org.sonatype.nexus.selector.VariableSource variableSource) |
boolean |
isContentPermittedAnyOf(Set<String> repositoryNames,
String repositoryFormat,
org.sonatype.nexus.selector.SelectorConfiguration selectorConfiguration,
org.sonatype.nexus.selector.VariableSource variableSource,
String... actions) |
boolean |
isContentPermittedAnyOf(String repositoryName,
String repositoryFormat,
org.sonatype.nexus.selector.SelectorConfiguration selectorConfiguration,
org.sonatype.nexus.selector.VariableSource variableSource,
String... actions) |
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 |
isViewPermitted(Set<String> repoNames,
String repositoryFormat,
String... actions) |
boolean |
isViewPermitted(Set<String> repositoryNames,
String repositoryFormat,
String action) |
boolean |
isViewPermitted(String repositoryName,
String repositoryFormat,
String... actions) |
boolean |
isViewPermitted(String repositoryName,
String repositoryFormat,
String action) |
@Inject public ContentPermissionCheckerImpl(org.sonatype.nexus.security.SecurityHelper securityHelper, org.sonatype.nexus.selector.SelectorManager selectorManager)
public boolean isViewPermitted(String repositoryName, String repositoryFormat, String action)
public boolean isViewPermitted(String repositoryName, String repositoryFormat, String... actions)
public boolean isViewPermitted(Set<String> repoNames, String repositoryFormat, String... actions)
public boolean isViewPermitted(Set<String> repositoryNames, String repositoryFormat, String action)
public boolean isContentPermitted(String repositoryName, String repositoryFormat, String action, org.sonatype.nexus.selector.SelectorConfiguration selectorConfiguration, org.sonatype.nexus.selector.VariableSource variableSource)
public boolean isContentPermittedAnyOf(String repositoryName, String repositoryFormat, org.sonatype.nexus.selector.SelectorConfiguration selectorConfiguration, org.sonatype.nexus.selector.VariableSource variableSource, String... actions)
public boolean isContentPermittedAnyOf(Set<String> repositoryNames, String repositoryFormat, org.sonatype.nexus.selector.SelectorConfiguration selectorConfiguration, org.sonatype.nexus.selector.VariableSource variableSource, String... actions)
public boolean isContentPermitted(Set<String> repositoryNames, String repositoryFormat, String action, org.sonatype.nexus.selector.SelectorConfiguration selectorConfiguration, org.sonatype.nexus.selector.VariableSource variableSource)
public boolean isPermitted(String repositoryName, String repositoryFormat, String action, org.sonatype.nexus.selector.VariableSource variableSource)
ContentPermissionChecker
isPermitted
in interface ContentPermissionChecker
public boolean isPermittedJexlOnly(String repositoryName, String repositoryFormat, String action, org.sonatype.nexus.selector.VariableSource variableSource)
ContentPermissionChecker
isPermittedJexlOnly
in interface ContentPermissionChecker
public boolean isPermitted(Set<String> repositoryNames, String repositoryFormat, String action, org.sonatype.nexus.selector.VariableSource variableSource)
ContentPermissionChecker
isPermitted
in interface ContentPermissionChecker
public boolean isPermittedJexlOnlyAnyOf(String repositoryName, String repositoryFormat, org.sonatype.nexus.selector.VariableSource variableSource, String... actions)
ContentPermissionChecker
isPermittedJexlOnlyAnyOf
in interface ContentPermissionChecker
public boolean isPermittedAnyOf(String repositoryName, String repositoryFormat, org.sonatype.nexus.selector.VariableSource variableSource, String... actions)
ContentPermissionChecker
isPermittedAnyOf
in interface ContentPermissionChecker
public boolean isPermittedAnyOf(Set<String> repositoryNames, String repositoryFormat, org.sonatype.nexus.selector.VariableSource variableSource, String... actions)
ContentPermissionChecker
isPermittedAnyOf
in interface ContentPermissionChecker
Copyright © 2008–2021 Sonatype, Inc.. All rights reserved.