Examples of keepFile()


Examples of org.pentaho.platform.api.engine.ISolutionFilter.keepFile()

  public static void processSolutionTree( final Element parentNode, final ISolutionFile targetFile,
      final ISolutionFilter solutionFilter, final ISolutionAttributeContributor contributor,
      final int actionOperation ) {
    ISolutionFilter sFilter = solutionFilter == null ? DEFAULT_FILTER : solutionFilter;
    if ( targetFile != null ) {
      if ( sFilter.keepFile( targetFile, actionOperation ) ) {
        if ( targetFile.isDirectory() ) {
          Element childNode =
              parentNode.addElement( SolutionReposHelper.BRANCH_NODE_NAME ).addAttribute(
                  SolutionReposHelper.ID_ATTR_NAME, targetFile.getFullPath() ).addAttribute(
                  SolutionReposHelper.IS_DIR_ATTR_NAME, "true" ); //$NON-NLS-1$
View Full Code Here

Examples of org.pentaho.platform.api.engine.ISolutionFilter.keepFile()

      final ISolutionFilter solutionFilter, final ISolutionAttributeContributor contributor,
      final int actionOperation ) {
    ISolutionFilter sFilter = solutionFilter == null ? DEFAULT_FILTER : solutionFilter;
    if ( targetFile.isDirectory() ) {
      if ( !SolutionReposHelper.ignoreDirectories.contains( targetFile.getFileName() )
          && sFilter.keepFile( targetFile, actionOperation ) ) {
        Element childNode =
            parentNode.addElement( SolutionReposHelper.ENTRY_NODE_NAME ).addAttribute(
                SolutionReposHelper.TYPE_ATTR_NAME, SolutionReposHelper.DIRECTORY_ATTR ).addAttribute(
                SolutionReposHelper.NAME_ATTR_NAME, targetFile.getFileName() );
        contributor.contributeAttributes( targetFile, childNode );
View Full Code Here

Examples of org.pentaho.platform.api.engine.ISolutionFilter.keepFile()

          SolutionReposHelper.processSolutionStructure( childNode, file, actionOperation );
        }
      }
    } else {
      if ( !SolutionReposHelper.ignoreFiles.contains( targetFile.getFileName() )
          && sFilter.keepFile( targetFile, actionOperation ) ) {
        Element childNode =
            parentNode.addElement( SolutionReposHelper.ENTRY_NODE_NAME ).addAttribute(
                SolutionReposHelper.TYPE_ATTR_NAME, SolutionReposHelper.FILE_ATTR ).addAttribute(
                SolutionReposHelper.NAME_ATTR_NAME, targetFile.getFileName() );
        contributor.contributeAttributes( targetFile, childNode );
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.