Package org.geoserver.platform.resource

Examples of org.geoserver.platform.resource.Resource.dir()


     * @deprecated As of GeoServer 2.6, replaced by {@link #get(WorkspaceInfo, String...)}
     */
    @Deprecated
    public File findOrResolveNamespaceFile(WorkspaceInfo ws) throws IOException {
        Resource directory = get(ws);
        return directory.dir();
    }

    /**
     * Returns the configuration file for the specified layer, if the file does not exist null is returned.
     * @deprecated As of GeoServer 2.6, replaced by {@link #get(LayerInfo, String...)}
View Full Code Here


     *
     * @deprecated As of GeoServer 2.6, replaced by {@link #get(StyleInfo, String...)}
     */
    public File findOrCreateStyleDir() throws IOException {
        Resource styles = get(STYLE_DIR);
        return styles.dir();
    }

    /**
     * Styles directory (using StyleInfo).
     *
 
View Full Code Here

     * @deprecated As of GeoServer 2.6, replaced by {@link #get(StyleInfo, String...)}
     */
    @Deprecated
    public void copyToStyleDir(File file, StyleInfo style) throws IOException {
        Resource styles = get(style);
        FileUtils.copyFileToDirectory(file, styles.dir());
    }

    /**
     * Returns the directory in which global layer groups are persisted, if the directory does not exist null is returned.
     * @deprecated As of GeoServer 2.6, replaced by {@link #get(LayerGroupInfo, String...)}
View Full Code Here

    File getWpsOutputStorage() {
        File wpsStore = null;
        try {
            GeoServerResourceLoader loader = GeoServerExtensions.bean(GeoServerResourceLoader.class);
            Resource wps = loader.get("temp/wps");
            wpsStore = wps.dir(); // find or create
        } catch(Exception e) {
            throw new ServiceException("Could not create the temporary storage directory for WPS");
        }
        if(wpsStore == null || !wpsStore.exists()) {
            throw new ServiceException("Could not create the temporary storage directory for WPS");
View Full Code Here

     *
     * @deprecated Use {@link #secuirtyRoot()}
     */
    public File getSecurityRoot() throws IOException {
        Resource directory = get("security");
        return directory.dir();
    }

    /**
     * Role configuration root directory.
     */
 
View Full Code Here

     *
     * @deprecated Use {@link #role()}
     */
    public File getRoleRoot() throws IOException {
        Resource directory = get("security/role");
        return directory.dir();
    }

    /**
     * Role configuration root directory.
     *
 
View Full Code Here

     * @deprecated Use {@link #role()}
     */
    public File getRoleRoot(boolean create) throws IOException {
        Resource directory = get("security/role");
        if (create) {
            return directory.dir();
        } else {
            return Resources.directory(directory);
        }
    }

View Full Code Here

     * User/group configuration root directory.
     * @deprecated Use {@link #userGroup()}
     */
    public File getUserGroupRoot() throws IOException {
        Resource directory = get("security/usergroup");
        return directory.dir();
    }

    /**
     * Authentication configuration root directory.
     */
 
View Full Code Here

     * Authentication configuration root directory.
     * @deprecated use {@link #auth()}
     */
    public File getAuthRoot() throws IOException {
        Resource directory = get("security/auth");
        return directory.dir();
    }

    /**
     * Authentication filter root directory.
     */
 
View Full Code Here

     * Authentication filter root directory.
     * @deprecated Use {@link #auth()}
     */
    public File getFilterRoot() throws IOException {
        Resource directory = get("security/filter");
        return directory.dir();
    }

    /**
     * Master password provider root
     */
 
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.