Package org.apache.stanbol.cmsadapter.servicesapi.mapping

Examples of org.apache.stanbol.cmsadapter.servicesapi.mapping.RDFBridgeException


        Node rootNode = null;
        try {
            rootNode = jcrSession.getNode(rootPath);
        } catch (RepositoryException e) {
            log.warn("Failed to retrieve node having path: {} or its children", rootPath);
            throw new RDFBridgeException("Failed to node having path: " + rootPath + " or its children", e);
        }

        String name = "";
        try {
            name = rootNode.getName();
View Full Code Here


        Iterator<CmisObject> cmisObjectIt;
        CmisObject rootObject;
        try {
            rootObject = cmisSession.getObjectByPath(rootPath);
        } catch (CmisObjectNotFoundException e) {
            throw new RDFBridgeException(String.format("There is Cmis Object in the path: %s", rootPath), e);
        }
        if (hasType(rootObject, BaseTypeId.CMIS_FOLDER)) {
            cmisObjectIt = ((Folder) rootObject).getChildren().iterator();
        } else {
            throw new RDFBridgeException(String.format("A folder object is expected at the path: %s",
                rootPath));
        }

        while (cmisObjectIt.hasNext()) {
            CmisObject o = cmisObjectIt.next();
View Full Code Here

TOP

Related Classes of org.apache.stanbol.cmsadapter.servicesapi.mapping.RDFBridgeException

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.