Examples of MetaGraphTx


Examples of org.lab41.dendrite.metagraph.MetaGraphTx

        return authenticated;
    }

    boolean checkUserForJob(Authentication authentication, Serializable targetId) {
        MetaGraphTx tx = metaGraphService.buildTransaction().start();
        boolean authenticated;

        try {
            JobMetadata jobMetadata = tx.getJob((String) targetId);
            if (jobMetadata == null) {
                return false;
            }

            ProjectMetadata projectMetadata = jobMetadata.getProject();
            if (projectMetadata == null) {
                return false;
            }

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

        tx.commit();

        return authenticated;
    }
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.