Annotation Interface Callable


Mark the annotated method as callable by a client-side component.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Indicate how to check multiple rights
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The ids of rights to be checked
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Determines if the method can be accessed by a anonymous user
    The context to check the right.
    Identifiers of additional behaviors to apply to this callable method.
    int
    The index of method's argument holding the context value to be converted by RightAssignmentContext
    The id of a type of the RightAssignmentContext to use to convert JS object into into a Java object
    The mode to use to check multiple rights
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Constant to use to ask explicitly the system to not check rights, as they will be checked by the method itself
    static final String
    Constant to use to explicitly indicate that this method could be called by anyone (anonymous users included or not depending on allowAnonymous())
    static final String
    Constant to check read access
  • Field Details

  • Element Details

    • rights

      The ids of rights to be checked
      Returns:
      The ids or empty if there is no right protection
    • rightMode

      The mode to use to check multiple rights
      Returns:
      The mode to use
      Default:
      OR
    • allowAnonymous

      Determines 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 the RightAssignmentContext to use to convert JS object into into a Java object
      Returns:
      The id of the RightAssignmentContext
      Default:
      ""
    • paramIndex

      The index of method's argument holding the context value to be converted by RightAssignmentContext
      Returns:
      The parameter's index
      Default:
      -1
    • decorators

      Identifiers of additional behaviors to apply to this callable method.
      Returns:
      the identifiers of additional behaviors
      Default:
      {}