Examples of RepositoryInfo


Examples of org.apache.chemistry.opencmis.commons.data.RepositoryInfo

    /**
     * Returns if the test repository supports query.
     */
    protected boolean supportsQuery() {
        RepositoryInfo repository = getRepositoryInfo();

        assertNotNull(repository.getCapabilities());

        if (repository.getCapabilities().getQueryCapability() == null) {
            return false;
        }

        return repository.getCapabilities().getQueryCapability() != CapabilityQuery.NONE;
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.data.RepositoryInfo

    /**
     * Returns the AclPropagation from the ACL capabilities.
     */
    protected AclPropagation getAclPropagation() {
        RepositoryInfo repository = getRepositoryInfo();

        assertNotNull(repository.getCapabilities());

        if (repository.getAclCapabilities().getAclPropagation() == null) {
            return AclPropagation.REPOSITORYDETERMINED;
        }

        return repository.getAclCapabilities().getAclPropagation();
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.data.RepositoryInfo

    /**
     * Returns the info object of the test repository.
     */
    protected RepositoryInfo getRepositoryInfo() {
        RepositoryInfo repositoryInfo = getBinding().getRepositoryService().getRepositoryInfo(getTestRepositoryId(),
                null);

        assertNotNull(repositoryInfo);
        assertNotNull(repositoryInfo.getId());
        assertEquals(getTestRepositoryId(), repositoryInfo.getId());

        return repositoryInfo;
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.data.RepositoryInfo

    /**
     * Returns the root folder of the test repository.
     */
    protected String getRootFolderId() {
        RepositoryInfo repository = getRepositoryInfo();

        assertNotNull(repository.getRootFolderId());

        return repository.getRootFolderId();
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.data.RepositoryInfo

    /**
     * Returns if the test repository supports reading ACLs.
     */
    protected boolean supportsDiscoverACLs() {
        RepositoryInfo repository = getRepositoryInfo();

        assertNotNull(repository.getCapabilities());

        return repository.getCapabilities().getAclCapability() != CapabilityAcl.NONE;
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.data.RepositoryInfo

    /**
     * Returns if the test repository supports setting ACLs.
     */
    protected boolean supportsManageACLs() {
        RepositoryInfo repository = getRepositoryInfo();

        assertNotNull(repository.getCapabilities());

        return repository.getCapabilities().getAclCapability() == CapabilityAcl.MANAGE;
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.data.RepositoryInfo

    /**
     * Returns if the test repository supports renditions.
     */
    protected boolean supportsRenditions() {
        RepositoryInfo repository = getRepositoryInfo();

        assertNotNull(repository.getCapabilities());

        if (repository.getCapabilities().getRenditionsCapability() == null) {
            return false;
        }

        return repository.getCapabilities().getRenditionsCapability() != CapabilityRenditions.NONE;
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.data.RepositoryInfo

     * getRepositoryInfo.
     */
    public static void getRepositoryInfo(CallContext context, CmisService service, String repositoryId,
            HttpServletRequest request, HttpServletResponse response) throws Exception {
        // execute
        RepositoryInfo ri = service.getRepositoryInfo(repositoryId, null);
        JSONObject jsonRi = JSONConverter.convert(ri, request);

        response.setStatus(HttpServletResponse.SC_OK);
        BrowserBindingUtils.writeJSON(jsonRi, request, response);
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.data.RepositoryInfo

        assertNotNull(fRepSvc);
        assertNotNull(fObjSvc);
        assertNotNull(fNavSvc);

        RepositoryInfo rep = fRepSvc.getRepositoryInfo(REPOSITORY_ID, null);
        fRootFolderId = rep.getRootFolderId();
        fRepositoryId = rep.getId();

        assertNotNull(fRepositoryId);
        assertNotNull(fRootFolderId);
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.data.RepositoryInfo

    private void createGUI() {
        setTitle(WINDOW_TITLE + " - " + model.getRepositoryName());
        setPreferredSize(new Dimension(700, 700));
        setMinimumSize(new Dimension(200, 60));

        RepositoryInfo repInfo = null;
        try {
            repInfo = model.getRepositoryInfo();
        } catch (Exception e) {
            ClientHelper.showError(this, e);
            dispose();
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.