Package org.ametys.core.ui
Annotation Interface Callable
Mark the annotated method as callable by a client-side component.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Indicate how to check multiple rights -
Optional Element Summary
Optional ElementsModifier 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
FieldsModifier and TypeFieldDescriptionstatic final String
Constant to use to ask explicitly the system to not check rights, as they will be checked by the method itselfstatic final String
Constant to use to explicitly indicate that this method could be called by anyone (anonymous users included or not depending onallowAnonymous()
)static final String
Constant to check read accessstatic final String
Deprecated.
-
Field Details
-
SKIP_BUILTIN_CHECK
Deprecated.UseNO_CHECK_REQUIRED
orCHECKED_BY_IMPLEMENTATION
instead.Constant to use to explicitly do not check right- See Also:
-
CHECKED_BY_IMPLEMENTATION
Constant to use to ask explicitly the system to not check rights, as they will be checked by the method itself- See Also:
-
NO_CHECK_REQUIRED
Constant to use to explicitly indicate that this method could be called by anyone (anonymous users included or not depending onallowAnonymous()
)- 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
-
NO_CHECK_REQUIRED
orCHECKED_BY_IMPLEMENTATION
instead.