Interface IUUIDBasedRepository

    • Method Detail

      • configure

        void configure​(javax.servlet.http.HttpServlet servlet)
        Configure the repository in the context of the servlet
        Parameters:
        servlet - the servlet which will use this repository.
      • load

        byte[] load​(javax.servlet.http.HttpServletRequest req,
                    String uuid,
                    IDiagramProfile profile,
                    javax.servlet.ServletContext servletContext)
             throws Exception
        Parameters:
        req - the request from the user.
        uuid - the id of the model.
        Returns:
        the model as a set of bytes.
        Throws:
        Exception
      • save

        void save​(javax.servlet.http.HttpServletRequest req,
                  String uuid,
                  String json,
                  String svg,
                  IDiagramProfile profile,
                  Boolean autosave)
        Saves the model inside the repository.
        Parameters:
        req - the request from the user.
        uuid - the id of the model
        json - the json model
        svg - the svg representation of the model
        profile - the profile