com.thalesgroup.hudson.plugins.tusarnotifier.service
Class TusarNotifierReportProcessingService

java.lang.Object
  extended by com.thalesgroup.hudson.plugins.tusarnotifier.service.TusarNotifierReportProcessingService
All Implemented Interfaces:
java.io.Serializable

public class TusarNotifierReportProcessingService
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
TusarNotifierReportProcessingService()
           
 
Method Summary
 boolean checkIfFindsFilesNewFiles(TusarToolInfo tusarToolInfo, java.util.List<java.lang.String> files, java.io.File workspace)
          Checks if all the finds files are new file
 java.util.List<java.lang.String> findReports(TusarToolInfo tusarToolInfo, java.io.File parentPath, java.lang.String pattern)
          Gets all reports from the given parent path and the pattern.
 java.io.File getCurrentReport(java.io.File root, java.lang.String name)
          Gets a file from a root file and a name
 boolean isEmptyPattern(java.lang.String pattern)
          Tests if the pattern is empty.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TusarNotifierReportProcessingService

public TusarNotifierReportProcessingService()
Method Detail

isEmptyPattern

public boolean isEmptyPattern(java.lang.String pattern)
Tests if the pattern is empty.

Parameters:
pattern - the given pattern of the current test tool
Returns:
true if empty or blank, false otherwise

findReports

public java.util.List<java.lang.String> findReports(TusarToolInfo tusarToolInfo,
                                                    java.io.File parentPath,
                                                    java.lang.String pattern)
Gets all reports from the given parent path and the pattern.

Parameters:
tusarToolInfo - the tusar Tool tool wrapper
parentPath - parent
pattern - pattern to search files
Returns:
an array of strings

checkIfFindsFilesNewFiles

public boolean checkIfFindsFilesNewFiles(TusarToolInfo tusarToolInfo,
                                         java.util.List<java.lang.String> files,
                                         java.io.File workspace)
Checks if all the finds files are new file

Parameters:
tusarToolInfo - the wrapped object
files - the file list
workspace - the root location of the file list
Returns:
true if all files are new, false otherwise

getCurrentReport

public java.io.File getCurrentReport(java.io.File root,
                                     java.lang.String name)
Gets a file from a root file and a name

Parameters:
root - the root path
name - the filename
Returns:
the current file


Copyright © 2010. All Rights Reserved.