com.ptc.windchill.upgrade.util
Interface ClearcaseIfc

All Known Implementing Classes:
ClearcaseCLI

public interface ClearcaseIfc


Nested Class Summary
static class ClearcaseIfc.Status
           
 
Method Summary
 ClearcaseIfc.Status add(String file, String comment, boolean isdirectory)
          Adds the given file to clearcase source control.
 ClearcaseIfc.Status checkin(String file, String comment, boolean ptime)
          Does a clearcase checkin of the given file.
 ClearcaseIfc.Status checkout(String file, String comment, boolean reserved, boolean ptime)
          Does a clearcase checkout of the given file.
 ClearcaseIfc.Status cleartool(String cmd)
          Executes the command "cmd" just like a command line "cleartool cmd".
 ClearcaseIfc.Status delete(String file, String comment)
          Removes the given file from clearcase source control (rmname NOT rmelem).
 void destroy()
          Destroys this instance
 ClearcaseIfc.Status getViewName(String file)
          Gets the view tag name for the view associated with file.
 boolean isCheckedOut(String file)
          Returns true if the file is under version control and checked out
 boolean isDifferent(String file)
          Returns true if the file is checked out and different from its predecessor
 boolean isElement(String file)
          Returns true if the file is under clearcase version control
 boolean isHijacked(String file)
          Returns true if the file is under version control and hijacked from a snapshot view
 boolean isSnapShot(String file)
          Returns true if the file is under version control and part of a snapshot view
 ClearcaseIfc.Status move(String file, String newfile, String comment)
          Moves file to newfile.
 ClearcaseIfc.Status uncheckout(String file, boolean keep)
          Does a clearcase uncheckout of the given file.
 

Method Detail

destroy

public void destroy()
Destroys this instance


checkout

public ClearcaseIfc.Status checkout(String file,
                                    String comment,
                                    boolean reserved,
                                    boolean ptime)
Does a clearcase checkout of the given file. Comment can be empty string. If reserved is true, does a reserved checkout. ptime preserves file timestamp


checkin

public ClearcaseIfc.Status checkin(String file,
                                   String comment,
                                   boolean ptime)
Does a clearcase checkin of the given file. Comment can be empty string. ptime preserves file timestamp


uncheckout

public ClearcaseIfc.Status uncheckout(String file,
                                      boolean keep)
Does a clearcase uncheckout of the given file. If keep is true, the file is copied to a ".keep" file


add

public ClearcaseIfc.Status add(String file,
                               String comment,
                               boolean isdirectory)
Adds the given file to clearcase source control. This requires the parent directory to be under version control and checked out. The isdirectory flag causes creation of a directory element when true. Comment can be empty string.


delete

public ClearcaseIfc.Status delete(String file,
                                  String comment)
Removes the given file from clearcase source control (rmname NOT rmelem). This requires the parent directory to be under version control and checked out. Comment can be empty string.


move

public ClearcaseIfc.Status move(String file,
                                String newfile,
                                String comment)
Moves file to newfile. The parent directories of both file and newfile must be checked out. Comment can be empty string.


getViewName

public ClearcaseIfc.Status getViewName(String file)
Gets the view tag name for the view associated with file.


cleartool

public ClearcaseIfc.Status cleartool(String cmd)
Executes the command "cmd" just like a command line "cleartool cmd".


isCheckedOut

public boolean isCheckedOut(String file)
Returns true if the file is under version control and checked out


isElement

public boolean isElement(String file)
Returns true if the file is under clearcase version control


isDifferent

public boolean isDifferent(String file)
Returns true if the file is checked out and different from its predecessor


isSnapShot

public boolean isSnapShot(String file)
Returns true if the file is under version control and part of a snapshot view


isHijacked

public boolean isHijacked(String file)
Returns true if the file is under version control and hijacked from a snapshot view