Package pt.webdetails.cpf.repository.api

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


    if ( !ensureDirExists( repoBase, CdeConstants.SolutionFolders.TEMPLATES ) ) {
      logger.error( "Couldn't find or create CDE templates dir." );
    }

    // special case for widgets: copy widget samples into dir if creating dir for the first time
    if ( !repoBase.fileExists( CdeConstants.SolutionFolders.WIDGETS ) ) {
      if ( !ensureDirExists( repoBase, CdeConstants.SolutionFolders.WIDGETS ) ) {
        logger.error( "Couldn't find or create CDE widgets dir." );
      } else {
        IReadAccess sysPluginSamples = CdeEnvironment.getPluginSystemReader( "resources/samples/" );
        saveAndClose( repoBase, Util.joinPath( CdeConstants.SolutionFolders.WIDGETS, "sample.cdfde" ),
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.