Package io.jmix.security.role.annotation
Annotation Interface GraphQLPolicy
@Target(METHOD)
@Retention(RUNTIME)
@Repeatable(GraphQLPolicyContainer.class)
public @interface GraphQLPolicy
Defines GraphQL resource policy in annotated resource role (see
ResourceRole). Multiple GraphQLPolicy 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 {
@GraphQLPolicy(operations = {"userInfo", "testQuery"})
void graphQL();
}
- See Also:
-
Optional Element Summary
Optional Elements
-
Element Details
-
operations
String[] operations- Default:
- {}
-