Examples of FileExists()


Examples of org.apache.lucene.store.RAMDirectory.fileExists()

      assertTrue(dir.fileExists("myrandomfile"));

      // Make sure this does not copy myrandomfile:
      Directory dir2 = new RAMDirectory(dir);
      assertTrue(!dir2.fileExists("myrandomfile"));

    } finally {
      dir.close();
      _TestUtil.rmDir(indexDir);
    }
View Full Code Here

Examples of org.lightadmin.core.storage.FileResourceStorage.fileExists()

    private FilePropertyValue evaluateFilePropertyValue(Object instance, PersistentProperty persistentProperty) {
        FileResourceStorage fileResourceStorage = fileResourceStorage();

        try {
            if (!fileResourceStorage.fileExists(instance, persistentProperty)) {
                return new FilePropertyValue(false);
            }

            Link fileLink = entityLinks().linkForFilePropertyLink(instance, persistentProperty);
View Full Code Here

Examples of pt.webdetails.cpf.repository.api.IRWAccess.fileExists()

  public void save( String file, String structure ) throws DashboardStructureException,
    IOException {
    logger.info( "Saving File:" + file );
    IRWAccess access = CdeEnvironment.getPluginRepositoryWriter();

    if ( !access.fileExists( REPOSITORY_CDF_DD_TEMPLATES_CUSTOM ) ) {
      access.createFolder( REPOSITORY_CDF_DD_TEMPLATES_CUSTOM );
    }

    structure = addDashboardStyleAndRendererTypeToTemplate( structure );
View Full Code Here

Examples of pt.webdetails.cpf.repository.api.IReadAccess.fileExists()

      if (altLoader != origLoader) {
        Thread.currentThread().setContextClassLoader(altLoader);
      }
       
        IReadAccess mf = contentAccessFactory.getPluginSystemReader("../mondrian");
        if (mf.fileExists(mondrianPropsFilename)) {
          IBasicFile bf = mf.fetchFile(mondrianPropsFilename);
            MondrianProperties.instance().load(bf.getContents());
            log.debug("Loaded mondrian properties file: " + mondrianPropsFilename);
         
        } else {
View Full Code Here

Examples of pt.webdetails.cpf.repository.api.IUserContentAccess.fileExists()

      log.debug("Get repository file: " + file);

      IUserContentAccess access = contentAccessFactory.getUserContentAccess(null);

      if( !access.fileExists(file) && access.hasAccess(file, FileAccess.READ)) {
        log.error("Access to Repository has failed File does not exist: " + file);
        throw new NullPointerException("Access to Repository has failed");
      }
      IBasicFile bf = access.fetchFile(file);
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.