Package io.jmix.security.role.annotation
Annotation Interface SpecificPolicy
@Target(METHOD)
@Retention(RUNTIME)
@Repeatable(SpecificPolicyContainer.class)
public @interface SpecificPolicy
Defines specific resource policy in annotated resource role (see
ResourceRole). Multiple SpecificPolicy annotations may be placed on a
single method. SpecificPolicy annotation may present on multiple methods of the same class. Annotated method
may have any name and return type.
Example:
@ResourceRole(name = "My Role", code = "myRole")
public interface MyRole {
@SpecificPolicy(resources = {"app.order.someSpecificStuff", "app.order.anotherSpecificStuff"})
void specific();
}
- See Also:
-
Required Element Summary
Required Elements
-
Element Details
-
resources
String[] resources
-