Package javax.jcr

Examples of javax.jcr.Repository


    // Remaining Repository service methods all backed by the actual
    // repository instance. They may be overwritten, but generally are not.

    public String getDescriptor(String name) {
        Repository repo = getRepository();
        if (repo != null) {
            return repo.getDescriptor(name);
        }

        log.error("getDescriptor: Repository not available");
        return null;
    }
View Full Code Here


        log.error("getDescriptor: Repository not available");
        return null;
    }

    public String[] getDescriptorKeys() {
        Repository repo = getRepository();
        if (repo != null) {
            return repo.getDescriptorKeys();
        }

        log.error("getDescriptorKeys: Repository not available");
        return new String[0];
    }
View Full Code Here

        log.error("getDescriptorKeys: Repository not available");
        return new String[0];
    }

    public Value getDescriptorValue(String key) {
        Repository repo = getRepository();
        if (repo != null) {
            return repo.getDescriptorValue(key);
        }

        log.error("getDescriptorValue: Repository not available");
        return null;
    }
View Full Code Here

        log.error("getDescriptorValue: Repository not available");
        return null;
    }

    public Value[] getDescriptorValues(String key) {
        Repository repo = getRepository();
        if (repo != null) {
            return repo.getDescriptorValues(key);
        }

        log.error("getDescriptorValues: Repository not available");
        return null;
    }
View Full Code Here

        log.error("getDescriptorValues: Repository not available");
        return null;
    }

    public boolean isSingleValueDescriptor(String key) {
        Repository repo = getRepository();
        if (repo != null) {
            return repo.isSingleValueDescriptor(key);
        }

        log.error("isSingleValueDescriptor: Repository not available");
        return false;
    }
View Full Code Here

        log.error("isSingleValueDescriptor: Repository not available");
        return false;
    }

    public boolean isStandardDescriptor(String key) {
        Repository repo = getRepository();
        if (repo != null) {
            return repo.isStandardDescriptor(key);
        }

        log.error("isStandardDescriptor: Repository not available");
        return false;
    }
View Full Code Here

        return props;
    }

    public void printConfiguration(final PrintWriter pw) {
        // try to get repository
        final Repository repo = this.repository;
        writeHeader(pw, "Repository Properties");
        final String[] keys = repo.getDescriptorKeys();
        Arrays.sort(keys);
        for (final String key : keys) {
            final String val = repo.getDescriptor(key);
            writeEntry(pw, key, val);
        }
    }
View Full Code Here

        this.defaultWorkspace = defaultWorkspace;
        this.disableLoginAdministrative = disableLoginAdministrative;

        try {
            log.debug("start: calling acquireRepository()");
            Repository newRepo = this.acquireRepository();
            if (newRepo != null) {

                // ensure we really have the repository
                log.debug("start: got a Repository");
                this.repository = newRepo;
View Full Code Here

                    }
                    repositoryService = null;
                }

                if (repository != null) {
                    Repository oldRepo = repository;
                    repository = null;

                    // stop namespace support
                    this.tearDown();
                    this.destroy(this.masterSlingRepository);
View Full Code Here

     * (non-Javadoc)
     *
     * @see javax.jcr.Repository#getDescriptor(java.lang.String)
     */
    public String getDescriptor(String name) {
        Repository repo = getRepository();
        if (repo != null) {
            return repo.getDescriptor(name);
        }

        log(LogService.LOG_ERROR, "getDescriptor: Repository not available");
        return null;
    }
View Full Code Here

TOP

Related Classes of javax.jcr.Repository

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.