Class DataResource

    • Constructor Detail

      • DataResource

        public DataResource​(org.restlet.Context context,
                            org.restlet.data.Request request,
                            org.restlet.data.Response response)
    • Method Detail

      • requestMemberPageResult

        public PageResult<Member> requestMemberPageResult​(PagerData pager,
                                                          org.restlet.data.Request request)
        Parameters:
        pager - the current PagerData
        request - the current Request
        Returns:
        the PageResult with member data
      • allowPost

        public boolean allowPost()
        Overrides:
        allowPost in class org.restlet.resource.Resource
      • allowPut

        public boolean allowPut()
        Overrides:
        allowPut in class org.restlet.resource.Resource
      • allowDelete

        public boolean allowDelete()
        Overrides:
        allowDelete in class org.restlet.resource.Resource
      • doPost

        public void doPost​(org.restlet.resource.Representation entity)
        Handle POST requests: create pub item with given dataType.
        Overrides:
        doPost in class JcmsRestResource
      • doPut

        public void doPut​(org.restlet.resource.Representation entity)
        Handle PUT requests: modify current pub item.
        Overrides:
        doPut in class JcmsRestResource
      • doDelete

        public void doDelete()
        Handle DELETE requests: delete current pub item.
        Overrides:
        doDelete in class JcmsRestResource