Package de.innovationgate.wgpublisher.design.fs

Examples of de.innovationgate.wgpublisher.design.fs.FileSystemDesignSource


      throw new WGAServiceException("You need an administrative login to access this service.");
    }
   
    WGADesignSource source = _core.getDesignManager().getDesignSources().get(WGAConfiguration.UID_DESIGNSOURCE_FILESYSTEM);
    if (source instanceof FileSystemDesignSource) {
      FileSystemDesignSource fsSource = (FileSystemDesignSource)source;
      try {
        fsSource.getDir().refresh();
        FileObject base = fsSource.getDir().resolveFile(path);
        if (base.exists()) {
          return createStates(base, base);         
        }
      } catch (Exception e) {       
        throw new WGAServiceException(e);
View Full Code Here


      throw new WGAServiceException("You need an administrative login to access this service.");
    }
   
    WGADesignSource source = _core.getDesignManager().getDesignSources().get(WGAConfiguration.UID_DESIGNSOURCE_FILESYSTEM);
    if (source instanceof FileSystemDesignSource) {
      FileSystemDesignSource fsSource = (FileSystemDesignSource)source;
      try {
        fsSource.getDir().refresh();
        FileObject resource = fsSource.getDir().resolveFile(state.getPath());
       
        String basePath = fsSource.getDir().getURL().getPath();
        String resourcePath = resource.getURL().getPath();
        if (!resourcePath.startsWith(basePath)) {
          throw new WGAServiceException(new IllegalArgumentException("Illegal design resource path '" + state.getPath() + "'."));
        }
       
View Full Code Here

      throw new WGAServiceException("You need an administrative login to access this service.");
    }

    WGADesignSource source = _core.getDesignManager().getDesignSources().get(WGAConfiguration.UID_DESIGNSOURCE_FILESYSTEM);
    if (source instanceof FileSystemDesignSource) {
      FileSystemDesignSource fsSource = (FileSystemDesignSource)source;
      try {
        fsSource.getDir().refresh();
        FileObject resource = fsSource.getDir().resolveFile(path);
       
        String basePath = fsSource.getDir().getURL().getPath();
        String resourcePath = resource.getURL().getPath();
        if (!resourcePath.startsWith(basePath)) {
          throw new WGAServiceException(new IllegalArgumentException("Illegal design resource path '" + path + "'."));
        }
       
View Full Code Here

      throw new WGAServiceException("You need an administrative login to access this service.");
    }
   
    WGADesignSource source = _core.getDesignManager().getDesignSources().get(WGAConfiguration.UID_DESIGNSOURCE_FILESYSTEM);
    if (source instanceof FileSystemDesignSource) {
      FileSystemDesignSource fsSource = (FileSystemDesignSource)source;
      try {
        fsSource.getDir().refresh();
        FileObject resource = fsSource.getDir().resolveFile(path);
       
        String basePath = fsSource.getDir().getURL().getPath();
        String resourcePath = resource.getURL().getPath();
        if (!resourcePath.startsWith(basePath)) {
          throw new WGAServiceException(new IllegalArgumentException("Illegal design resource path '" + path + "'."));
        }
View Full Code Here

      throw new WGAServiceException("You need an administrative login to access this service.");
    }
   
    WGADesignSource source = _core.getDesignManager().getDesignSources().get(WGAConfiguration.UID_DESIGNSOURCE_FILESYSTEM);
    if (source instanceof FileSystemDesignSource) {
      FileSystemDesignSource fsSource = (FileSystemDesignSource)source;
      try {
        fsSource.getDir().refresh();
        FileObject resource = fsSource.getDir().resolveFile(path);
       
        String basePath = fsSource.getDir().getURL().getPath();
        String resourcePath = resource.getURL().getPath();
        if (!resourcePath.startsWith(basePath)) {
          throw new WGAServiceException(new IllegalArgumentException("Illegal design resource path '" + path + "'."));
        }
View Full Code Here

TOP

Related Classes of de.innovationgate.wgpublisher.design.fs.FileSystemDesignSource

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.