@ParametersAreNonnullByDefault public class ActionAccessChecker extends Object
This means that access check annotations on the action method override annotations on the class, and annotations on the class override annotations on the package. If for example, annotations are found on both the class and the package, then only the class level annotations will be checked
If multiple access check annotations are present on a particular method OR class OR package, then the user will be granted access if any of those access check annotations grant them access. For example, if a method has access check annotations "@A" and "@B", then the user will have access if either "@A" or "@B" grants access to that particular user.
Available annotations:
Modifier and Type | Class and Description |
---|---|
protected static class |
ActionAccessChecker.AccessDecision |
Constructor and Description |
---|
ActionAccessChecker(ConfluenceAccessManager confluenceAccessManager,
com.atlassian.event.api.EventPublisher eventPublisher,
com.atlassian.vcache.VCacheFactory cacheFactory) |
Modifier and Type | Method and Description |
---|---|
boolean |
isAccessPermitted(Object action,
@Nullable String methodName) |
public ActionAccessChecker(ConfluenceAccessManager confluenceAccessManager, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.vcache.VCacheFactory cacheFactory)
Copyright © 2003–2019 Atlassian. All rights reserved.