Package org.locationtech.geogig.api.porcelain.ConfigOp

Examples of org.locationtech.geogig.api.porcelain.ConfigOp.ConfigScope


            }
            if (global && local) {
                printUsage(cli);
                throw new CommandFailedException();
            }
            ConfigScope scope = ConfigScope.DEFAULT;

            if (global) {
                scope = ConfigScope.GLOBAL;
            } else if (local) {
                scope = ConfigScope.LOCAL;
View Full Code Here


     * @throws ConfigException if an error is encountered. More specific information can be found in
     *         the exception's statusCode.
     */
    @Override
    protected  Optional<String> _call() {
        ConfigScope scope = global ? ConfigScope.GLOBAL : ConfigScope.LOCAL;
        Optional<Map<String, String>> result = command(ConfigOp.class)
                .setAction(ConfigAction.CONFIG_GET).setName(name).setScope(scope).call();
        if (result.isPresent()) {
            return Optional.of(result.get().get(name));
        } else {
View Full Code Here

TOP

Related Classes of org.locationtech.geogig.api.porcelain.ConfigOp.ConfigScope

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.