Package org.lab41.dendrite.metagraph

Examples of org.lab41.dendrite.metagraph.DendriteGraph.rollback()


            headers.setLocation(builder.path("/projects/{projectId}").buildAndExpand(projectMetadata.getId()).toUri());

            getProjectResponse = new GetProjectResponse(projectMetadata);
        } catch (Throwable t) {
            tx.rollback();
            throw t;
        }

        // Commit must come after all graph access.
        tx.commit();
View Full Code Here


                throw new NotFound(ProjectMetadata.class, projectId);
            }

            tx.deleteProject(projectMetadata);
        } catch (Throwable t) {
            tx.rollback();
            throw t;
        }

        tx.commit();
View Full Code Here

                throw new NotFound(UserMetadata.class);
            }

            projectMetadata.addUser(otherUserMetadata);
        } catch (Throwable t) {
            tx.rollback();
            throw t;
        }

        // Commit must come after all graph access.
        tx.commit();
View Full Code Here

                return false;
            }

            authenticated = checkAuthAgainstUserOfProject(tx, authentication, projectMetadata);
        } catch (Throwable t) {
            tx.rollback();
            throw t;
        }

        tx.commit();
View Full Code Here

                return false;
            }

            authenticated = checkAuthAgainstUserOfProject(tx, authentication, projectMetadata);
        } catch (Throwable t){
            tx.rollback();
            throw t;
        }

        tx.commit();
View Full Code Here

                for (GraphMetadata graphMetadata : projectMetadata.getGraphs()) {
                    graphs.add(new GetGraphResponse(graphMetadata));
                }
            }
        } catch (Throwable t) {
            tx.rollback();
            throw t;
        }

        // Commit must come after all graph access.
        tx.commit();
View Full Code Here

                return false;
            }

            authenticated = checkAuthAgainstUserOfProject(tx, authentication, projectMetadata);
        } catch (Throwable t) {
            tx.rollback();
            throw t;
        }

        tx.commit();
View Full Code Here

                return false;
            }

            authenticated = checkAuthAgainstUserOfProject(tx, authentication, projectMetadata);
        } catch (Throwable t) {
            tx.rollback();
            throw t;
        }

        tx.commit();
View Full Code Here

            try {
                tx.deleteGraph(graphMetadata);
            } catch (Exception e) {
                response.put("status", "error");
                response.put("msg", e.toString());
                tx.rollback();
                return new ResponseEntity<>(HttpStatus.BAD_REQUEST);
            }

            response.put("msg", "deleted");
View Full Code Here

            headers.setLocation(builder.path("/graphs/{graphId}").buildAndExpand(projectMetadata.getId()).toUri());

            getGraphResponse = new GetGraphResponse(graphMetadata);
        } catch (Throwable t) {
            tx.rollback();
            throw t;
        }

        tx.commit();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.