Package org.apache.jackrabbit.oak.api

Examples of org.apache.jackrabbit.oak.api.CoreValueFactory


    public TokenInfo createToken(Credentials credentials) {
        if (credentials instanceof SimpleCredentials) {
            final SimpleCredentials sc = (SimpleCredentials) credentials;
            String userId = sc.getUserID();

            CoreValueFactory valueFactory = contentSession.getCoreValueFactory();
            try {
                Tree userTree = userProvider.getAuthorizable(userId, Type.USER);
                if (userTree != null) {
                    NodeUtil userNode = new NodeUtil(userTree, valueFactory);
                    NodeUtil tokenParent = userNode.getChild(TOKENS_NODE_NAME);
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.api.CoreValueFactory

Copyright © 2018 www.massapicom. 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.