hudson.plugins.clearcase.ucm
Class UcmHistoryAction

java.lang.Object
  extended by hudson.plugins.clearcase.history.AbstractHistoryAction
      extended by hudson.plugins.clearcase.ucm.UcmHistoryAction
All Implemented Interfaces:
HistoryAction

public class UcmHistoryAction
extends AbstractHistoryAction

Author:
hlyh

Field Summary
 
Fields inherited from class hudson.plugins.clearcase.history.AbstractHistoryAction
cleartool, extendedViewPath, filters, isDynamicView
 
Constructor Summary
UcmHistoryAction(ClearTool cleartool, boolean useDynamicView, java.util.List<Filter> filters, java.lang.String stream, java.lang.String viewDrive, hudson.model.AbstractBuild<?,?> build, boolean freezeCode)
           
 
Method Summary
protected  java.util.List<? extends hudson.scm.ChangeLogSet.Entry> buildChangelog(java.lang.String viewName, java.util.List<HistoryEntry> entries)
           
 java.util.List<? extends hudson.scm.ChangeLogSet.Entry> getChanges(java.util.Date time, java.lang.String viewName, java.lang.String[] branchNames, java.lang.String[] viewPaths)
          Returns if the repository has any changes since the specified time
 java.util.List<HistoryEntry> getChangesCodeFreeze()
           
protected  ClearToolFormatHandler getHistoryFormatHandler()
           
 boolean hasChanges(java.util.Date time, java.lang.String viewName, java.lang.String[] branchNames, java.lang.String[] viewPaths)
          Returns if the repository has any changes since the specified time
 boolean hasChangesCodeFreeze()
           
protected  HistoryEntry parseEventLine(java.util.regex.Matcher matcher, java.lang.String line)
           
 
Methods inherited from class hudson.plugins.clearcase.history.AbstractHistoryAction
filterEntries, getExtendedViewPath, parseLsHistory, runLsHistory, setExtendedViewPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UcmHistoryAction

public UcmHistoryAction(ClearTool cleartool,
                        boolean useDynamicView,
                        java.util.List<Filter> filters,
                        java.lang.String stream,
                        java.lang.String viewDrive,
                        hudson.model.AbstractBuild<?,?> build,
                        boolean freezeCode)
Method Detail

getHistoryFormatHandler

protected ClearToolFormatHandler getHistoryFormatHandler()
Specified by:
getHistoryFormatHandler in class AbstractHistoryAction

hasChanges

public boolean hasChanges(java.util.Date time,
                          java.lang.String viewName,
                          java.lang.String[] branchNames,
                          java.lang.String[] viewPaths)
                   throws java.io.IOException,
                          java.lang.InterruptedException
Description copied from interface: HistoryAction
Returns if the repository has any changes since the specified time

Specified by:
hasChanges in interface HistoryAction
Overrides:
hasChanges in class AbstractHistoryAction
Parameters:
time - check for changes since this time
viewName - the name of the view
branchNames - the branch names
viewPaths - optional vob paths
Returns:
true, if the ClearCase repository has changes; false, otherwise.
Throws:
java.io.IOException
java.lang.InterruptedException

getChanges

public java.util.List<? extends hudson.scm.ChangeLogSet.Entry> getChanges(java.util.Date time,
                                                                          java.lang.String viewName,
                                                                          java.lang.String[] branchNames,
                                                                          java.lang.String[] viewPaths)
                                                                   throws java.io.IOException,
                                                                          java.lang.InterruptedException
Description copied from interface: HistoryAction
Returns if the repository has any changes since the specified time

Specified by:
getChanges in interface HistoryAction
Overrides:
getChanges in class AbstractHistoryAction
Parameters:
time - check for changes since this time
viewName - the name of the view
branchNames - the branch names
viewPaths - optional vob paths
Returns:
List of changes
Throws:
java.io.IOException
java.lang.InterruptedException

parseEventLine

protected HistoryEntry parseEventLine(java.util.regex.Matcher matcher,
                                      java.lang.String line)
                               throws java.text.ParseException
Specified by:
parseEventLine in class AbstractHistoryAction
Throws:
java.text.ParseException

buildChangelog

protected java.util.List<? extends hudson.scm.ChangeLogSet.Entry> buildChangelog(java.lang.String viewName,
                                                                                 java.util.List<HistoryEntry> entries)
                                                                          throws java.io.IOException,
                                                                                 java.lang.InterruptedException
Specified by:
buildChangelog in class AbstractHistoryAction
Throws:
java.io.IOException
java.lang.InterruptedException

hasChangesCodeFreeze

public boolean hasChangesCodeFreeze()
                             throws java.io.IOException,
                                    java.lang.InterruptedException
Throws:
java.io.IOException
java.lang.InterruptedException

getChangesCodeFreeze

public java.util.List<HistoryEntry> getChangesCodeFreeze()
                                                  throws java.io.IOException,
                                                         java.lang.InterruptedException
Throws:
java.io.IOException
java.lang.InterruptedException


Copyright © 2010. All Rights Reserved.