Package pt.webdetails.cpf.repository.api

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


    // TODO:
    boolean isPreview = cdeFilePath.indexOf( "_tmp.cdfde" ) >= 0;
    if ( !isPreview ) {
      String cdeTempFilePath = cdeFilePath.replace( ".cdfde", "_tmp.cdfde" );
      access.deleteFile( cdeTempFilePath );

      String cdaTempFilePath = cdeFilePath.replace( ".cdfde", "_tmp.cda" );
      access.deleteFile( cdaTempFilePath );

      String wcdfTempFilePath = cdeFilePath.replace( ".cdfde", "_tmp.wcdf" );
View Full Code Here


    if ( !isPreview ) {
      String cdeTempFilePath = cdeFilePath.replace( ".cdfde", "_tmp.cdfde" );
      access.deleteFile( cdeTempFilePath );

      String cdaTempFilePath = cdeFilePath.replace( ".cdfde", "_tmp.cda" );
      access.deleteFile( cdaTempFilePath );

      String wcdfTempFilePath = cdeFilePath.replace( ".cdfde", "_tmp.wcdf" );
      access.deleteFile( wcdfTempFilePath );
    }
View Full Code Here

      String cdaTempFilePath = cdeFilePath.replace( ".cdfde", "_tmp.cda" );
      access.deleteFile( cdaTempFilePath );

      String wcdfTempFilePath = cdeFilePath.replace( ".cdfde", "_tmp.wcdf" );
      access.deleteFile( wcdfTempFilePath );
    }

    // 3. CDE

View Full Code Here

    String cdaFileName = cdeFilePath.replace( ".cdfde", ".cda" );

    // Any data sources?
    if ( cdaRenderer.isEmpty() ) {
      access.deleteFile( cdaFileName );

    } else {
      // throws Exception ????
      String cdaText = cdaRenderer.render();
      if ( !access.saveFile( cdaFileName, new ByteArrayInputStream( safeGetEncodedBytes( cdaText ) ) ) ) {
View Full Code Here

    IResourceLoader loader = getResourceLoader( path );
    IACAccess access = loader.getAccessControl();
    IRWAccess writer = loader.getWriter();

    if ( access.hasAccess( path, FileAccess.DELETE ) && writer.deleteFile( path ) ) {
      logger.debug( "File: " + path + " removed" );
      JsonUtils.buildJsonResult( response.getOutputStream(), true, null );
    } else {
      logger.debug( "File: " + path + "not removed" );
      JsonUtils.buildJsonResult( response.getOutputStream(), false, null );
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.