hudson.plugins.clearcase
Class ClearToolExec

java.lang.Object
  extended by hudson.plugins.clearcase.ClearToolExec
All Implemented Interfaces:
ClearTool
Direct Known Subclasses:
ClearToolDynamic, ClearToolSnapshot

public abstract class ClearToolExec
extends java.lang.Object
implements ClearTool


Field Summary
protected  java.lang.String clearToolExec
           
protected  java.lang.String vobPaths
           
 
Constructor Summary
ClearToolExec(java.lang.String clearToolExec)
           
 
Method Summary
 java.lang.String catcs(ClearToolLauncher launcher, java.lang.String viewName)
          Retrives the config spec for the specified viewname
protected abstract  hudson.FilePath getRootViewPath(ClearToolLauncher launcher)
           
 java.lang.String getVobPaths()
           
 java.util.List<ClearCaseChangeLogEntry> lshistory(ClearToolLauncher launcher, java.util.Date lastBuildDate, java.lang.String viewName, java.lang.String branch)
          Lists event records for VOB-database objects
 java.util.List<java.lang.String> lsview(ClearToolLauncher launcher, boolean onlyActiveDynamicViews)
          Lists view registry entries
 java.util.List<java.lang.String> lsvob(ClearToolLauncher launcher, boolean onlyMOunted)
          Lists VOB registry entries
 void mklabel(ClearToolLauncher launcher, java.lang.String viewName, java.lang.String label)
          Attaches version labels to versions of elements
 void setVobPaths(java.lang.String vobPaths)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.plugins.clearcase.ClearTool
mkview, rmview, setcs, update
 

Field Detail

clearToolExec

protected transient java.lang.String clearToolExec

vobPaths

protected transient java.lang.String vobPaths
Constructor Detail

ClearToolExec

public ClearToolExec(java.lang.String clearToolExec)
Method Detail

getVobPaths

public java.lang.String getVobPaths()

setVobPaths

public void setVobPaths(java.lang.String vobPaths)
Specified by:
setVobPaths in interface ClearTool

getRootViewPath

protected abstract hudson.FilePath getRootViewPath(ClearToolLauncher launcher)

lshistory

public java.util.List<ClearCaseChangeLogEntry> lshistory(ClearToolLauncher launcher,
                                                         java.util.Date lastBuildDate,
                                                         java.lang.String viewName,
                                                         java.lang.String branch)
                                                  throws java.io.IOException,
                                                         java.lang.InterruptedException
Description copied from interface: ClearTool
Lists event records for VOB-database objects

Specified by:
lshistory in interface ClearTool
Parameters:
launcher - launcher for launching the command
lastBuildDate - lists events recorded since (that is, at or after) the specified date-time
viewName - the name of the view
branch - the name of the branch to get history events for; if null then history events for all branches are listed
Returns:
the event records
Throws:
java.io.IOException
java.lang.InterruptedException

mklabel

public void mklabel(ClearToolLauncher launcher,
                    java.lang.String viewName,
                    java.lang.String label)
             throws java.io.IOException,
                    java.lang.InterruptedException
Description copied from interface: ClearTool
Attaches version labels to versions of elements

Specified by:
mklabel in interface ClearTool
Parameters:
launcher - launcher for launching the command
viewName - the name of the view
label - the label name
Throws:
java.io.IOException
java.lang.InterruptedException

lsview

public java.util.List<java.lang.String> lsview(ClearToolLauncher launcher,
                                               boolean onlyActiveDynamicViews)
                                        throws java.io.IOException,
                                               java.lang.InterruptedException
Description copied from interface: ClearTool
Lists view registry entries

Specified by:
lsview in interface ClearTool
Parameters:
launcher - launcher for launching the command
onlyActiveDynamicViews - true for only return active dynamic views; false all views are returned
Returns:
list of view names
Throws:
java.io.IOException
java.lang.InterruptedException

lsvob

public java.util.List<java.lang.String> lsvob(ClearToolLauncher launcher,
                                              boolean onlyMOunted)
                                       throws java.io.IOException,
                                              java.lang.InterruptedException
Description copied from interface: ClearTool
Lists VOB registry entries

Specified by:
lsvob in interface ClearTool
Parameters:
launcher - launcher for launching the command
onlyMOunted - true for only return mounted vobs; false all vobs are returned
Returns:
list of vob names
Throws:
java.io.IOException
java.lang.InterruptedException

catcs

public java.lang.String catcs(ClearToolLauncher launcher,
                              java.lang.String viewName)
                       throws java.io.IOException,
                              java.lang.InterruptedException
Description copied from interface: ClearTool
Retrives the config spec for the specified viewname

Specified by:
catcs in interface ClearTool
Parameters:
launcher - launcher for launching the command
viewName - the name of the view
Returns:
a string containing the config spec
Throws:
java.io.IOException
java.lang.InterruptedException


Copyright © 2007. All Rights Reserved.