Package org.ametys.core.ui
Annotation Interface Callable
Mark the annotated method as callable by a client-side component.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Indicate how to check multiple rights -
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
Determines if the method can be accessed by a anonymous userThe context to check the right.int
The index of method's argument holding the context value to be converted byRightAssignmentContext
The id of a type of theRightAssignmentContext
to use to convert JS object into into a Java objectThe mode to use to check multiple rightsString[]
The ids of rights to be checked -
Field Summary
-
Field Details
-
SKIP_BUILTIN_CHECK
Constant to use to explicitly do not check right- See Also:
-
READ_ACCESS
Constant to check read access- See Also:
-
-
Element Details
-
rights
The ids of rights to be checked- Returns:
- The ids or empty if there is no right protection
- Default:
- {""}
-
rightMode
The mode to use to check multiple rights- Returns:
- The mode to use
- Default:
- OR
-
allowAnonymous
boolean allowAnonymousDetermines if the method can be accessed by a anonymous user- Returns:
- true if anonymous user is allowed
- Default:
- false
-
context
The context to check the right. Defaults to '/${WorkspaceName}'- Returns:
- The context
- Default:
- "/${WorkspaceName}"
-
rightContext
The id of a type of theRightAssignmentContext
to use to convert JS object into into a Java object- Returns:
- The id of the
RightAssignmentContext
- Default:
- ""
-
paramIndex
int paramIndexThe index of method's argument holding the context value to be converted byRightAssignmentContext
- Returns:
- The parameter's index
- Default:
- -1
-