Package org.apache.stanbol.cmsadapter.servicesapi.repository

Examples of org.apache.stanbol.cmsadapter.servicesapi.repository.RepositoryAccessException


        checkNullArgument(session);
        String parentRef = instance.getParentRef();
        if (cmsObjectMap.containsKey(parentRef)) {
            return cmsObjectMap.get(parentRef);
        } else {
            throw new RepositoryAccessException("No object with id=" + parentRef);
        }
    }
View Full Code Here


            // Create classes for Document Object Type and its descendants
            createClassesForObjectTypes(getAllDocumentTypes());
            // create object property definitions for relationship object types
            createObjectPropertyDefForRelationshipTypes(getAllRelationshipTypes());
        } catch (Exception e) {
            throw new RepositoryAccessException("Error at CMIS node type lifting", e);
        }
    }
View Full Code Here

        try {
            session = sessionFactory.createSession(parameters);
            logger.info("Connected to repository: {}", connectionInfo.getRepositoryURL());
        } catch (Exception e) {
            throw new RepositoryAccessException("Failed to connect to repository: "
                                                + connectionInfo.getRepositoryURL(), e);
        }
        return session;
    }
View Full Code Here

    public List<CMSObject> getNodeByPath(String path, ConnectionInfo connectionInfo) throws RepositoryAccessException {
        try {
            Session session = (Session) getSession(connectionInfo);
            return getNodeByPath(path, session);
        } catch (CmisBaseException e) {
            throw new RepositoryAccessException("Error at accessing repository", e);
        }
    }
View Full Code Here

    public List<CMSObject> getNodeById(String id, ConnectionInfo connectionInfo) throws RepositoryAccessException {
        try {
            Session session = (Session) getSession(connectionInfo);
            return getNodeById(id, session);
        } catch (CmisBaseException e) {
            throw new RepositoryAccessException("Error at accessing repository", e);
        }
    }
View Full Code Here

                accumulateChildren(queryResults, node);
            }
            return CMISModelMapper.convertCMISObjects(queryResults);

        } catch (CmisBaseException e) {
            throw new RepositoryAccessException("Error at accessing repository", e);
        }
    }
View Full Code Here

        try {
            checkSession(session);
            return Arrays.asList(new CMSObject[] {CMISModelMapper.getCMSObject(((Session) session)
                    .getObject(CMISObjectId.getObjectId(id)))});
        } catch (CmisBaseException e) {
            throw new RepositoryAccessException("Error at accessing repository", e);
        }
    }
View Full Code Here

            String[] query = CMISQueryHelper.getCMISIdByNameQuery(name);
            List<CMSObject> results = executeAndConvertQuery(query[0], (Session) session);
            results.addAll(executeAndConvertQuery(query[1], (Session) session));
            return results;
        } catch (CmisBaseException e) {
            throw new RepositoryAccessException("Error at accessing repository", e);
        }
    }
View Full Code Here

    public List<CMSObject> getNodeByName(String name, ConnectionInfo connectionInfo) throws RepositoryAccessException {
        try {
            Session session = (Session) getSession(connectionInfo);
            return getNodeByName(name, session);
        } catch (CmisBaseException e) {
            throw new RepositoryAccessException("Error at accessing repository", e);
        }
    }
View Full Code Here

    public CMSObject getFirstNodeByPath(String path, ConnectionInfo connectionInfo) throws RepositoryAccessException {
        try {
            Session session = (Session) getSession(connectionInfo);
            return getFirstNodeByPath(path, session);
        } catch (CmisBaseException e) {
            throw new RepositoryAccessException("Error at accessing repository", e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.stanbol.cmsadapter.servicesapi.repository.RepositoryAccessException

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.