Class OrderPatchCommand


  • public class OrderPatchCommand
    extends Object
    Created by The eXo Platform SAS.
    Version:
    $Id: $
    Author:
    Vitaly Guly - gavrikvetal@gmail.com
    • Constructor Detail

      • OrderPatchCommand

        public OrderPatchCommand()
        Constructor.
    • Method Detail

      • orderPatch

        public javax.ws.rs.core.Response orderPatch​(javax.jcr.Session session,
                                                    String path,
                                                    org.exoplatform.common.util.HierarchicalProperty body,
                                                    String baseURI)
        Webdav OrderPatch method implementation.
        Parameters:
        session - current session
        path - resource path
        body - responce body
        baseURI - base uri
        Returns:
        the instance of javax.ws.rs.core.Response
      • getMembers

        protected List<OrderMember> getMembers​(org.exoplatform.common.util.HierarchicalProperty body)
        Get oder members.
        Parameters:
        body - request body.
        Returns:
        list of members
      • doOrder

        protected boolean doOrder​(javax.jcr.Node parentNode,
                                  List<OrderMember> members)
        Order members.
        Parameters:
        parentNode - parent node
        members - members
        Returns:
        true if can order