Package org.lab41.dendrite.metagraph

Examples of org.lab41.dendrite.metagraph.DendriteGraphTx.commit()


            // FIXME: Temporary hack to force loading the graph until the UI can handle it occurring asynchronously.
            metaGraphService.getDendriteGraph(projectMetadata.getCurrentGraph().getId());

            return new GetProjectResponse(projectMetadata);
        } finally {
            tx.commit();
        }
    }

    //@PreAuthorize("hasPermission(#projectId, 'project', 'admin')")
    // FIXME: Right now any authenticated user can create a project.
View Full Code Here


            tx.rollback();
            throw t;
        }

        // Commit must come after all graph access.
        tx.commit();

        return new ResponseEntity<>(getProjectResponse, headers, HttpStatus.CREATED);
    }

View Full Code Here

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

        tx.commit();

        return new DeleteProjectResponse();
    }

    @PreAuthorize("hasPermission(#projectId, 'project', 'admin')")
View Full Code Here

                users.add(new GetUserResponse(userMetadata));
            }

            return new GetUsersResponse(users);
        } finally {
            tx.commit();
        }
    }

    @PreAuthorize("hasPermission(#projectId, 'project', 'admin')")
    @RequestMapping(value = "/projects/{projectId}/users", method = RequestMethod.POST)
View Full Code Here

            tx.rollback();
            throw t;
        }

        // Commit must come after all graph access.
        tx.commit();

        return new AddUserToProjectResponse();
    }
}
View Full Code Here

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

        tx.commit();

        return authenticated;
    }

    private boolean checkAuthAgainstUserOfProject(MetaGraphTx tx, Authentication authentication, ProjectMetadata projectMetadata) {
View Full Code Here

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

        tx.commit();

        return authenticated;
    }

    boolean checkUserForGraph(Authentication authentication, Serializable targetId) {
View Full Code Here

            tx.rollback();
            throw t;
        }

        // Commit must come after all graph access.
        tx.commit();

        return new GetGraphsResponse(graphs);
    }

    @PreAuthorize("hasPermission(#graphId, 'graph', 'admin')")
View Full Code Here

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

        tx.commit();

        return authenticated;
    }

    boolean checkUserForJob(Authentication authentication, Serializable targetId) {
View Full Code Here

            // FIXME: Temporary hack to force loading the graph until the UI can handle it occurring asynchronously.
            metaGraphService.getDendriteGraph(graphMetadata.getId());

            return new GetGraphResponse(graphMetadata);
        } finally {
            tx.commit();
        }
    }

    @PreAuthorize("hasPermission(#graphId, 'graph', 'admin')")
    @RequestMapping(value = "/graphs/{graphId}/random", method = RequestMethod.GET)
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.