Class MethodAccessFilter

  • All Implemented Interfaces:
    org.exoplatform.services.rest.method.MethodInvokerFilter

    public class MethodAccessFilter
    extends Object
    implements org.exoplatform.services.rest.method.MethodInvokerFilter
    Contract of this class thats constrains access to the resource method that use JSR-250 security common annotations. See also https://jsr250.dev.java.net .
    Version:
    $Id: $
    Author:
    Andrey Parfonov
    • Constructor Detail

      • MethodAccessFilter

        public MethodAccessFilter()
    • Method Detail

      • accept

        public void accept​(org.exoplatform.services.rest.resource.GenericMethodResource method)
                    throws javax.ws.rs.WebApplicationException
        Check does method contains one on of security annotations PermitAll, DenyAll, RolesAllowed.
        Specified by:
        accept in interface org.exoplatform.services.rest.method.MethodInvokerFilter
        Throws:
        javax.ws.rs.WebApplicationException
        See Also:
        PermitAll, DenyAll, RolesAllowed