@Target(value=PARAMETER) @Retention(value=RUNTIME) public @interface ProtectedResourceId
ProtectedResource.
This annotation is preferred in cases where permission evaluation is being done on a resource that has multiple IDs. For example, to secure a file in a site you probably need the name of the site and then the path of the file in the site.
When using this annotation, an map with key = ID name => value = ID value is passed to the
PermissionEvaluator instead of a single object.
public abstract String value
Copyright © 2020 CrafterCMS. All rights reserved.