nl.toolforge.karma.core.vc.cvsimpl
Class AdminHandler

java.lang.Object
  extended bynl.toolforge.karma.core.vc.cvsimpl.AdminHandler

public final class AdminHandler
extends java.lang.Object

Helper class to execute stuff on admin files in CVS directories on behalf of module.

Version:
$Id: AdminHandler.java,v 1.3 2004/11/10 23:53:09 asmedes Exp $
Author:
D.A. Smedes

Constructor Summary
AdminHandler(Module module)
           
 
Method Summary
 void administrate()
          This method should be called to administrate the module to which this AdminHandler applies.
 java.util.List getChangedStuff()
          Returns a List of File instances indicating files that have been changed, but not yet committed.
 java.util.List getNewStuff()
          Returns a List of File instances indicating files and directories that are not yet version managed by CVS.
 java.util.List getRemovedStuff()
          Returns a List of File instances indicating files that have been removed, but not yet committed.
 boolean hasChangedStuff()
           
 boolean hasNewStuff()
           
 boolean hasRemovedStuff()
           
 boolean isEqualLocation()
          Checks if the module was previously checked out from the same location as is stored in CVS/Root.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminHandler

public AdminHandler(Module module)
Method Detail

administrate

public void administrate()
This method should be called to administrate the module to which this AdminHandler applies. This method will determine which files and directories are new, changed or removed, but uncommitted.


getNewStuff

public java.util.List getNewStuff()
Returns a List of File instances indicating files and directories that are not yet version managed by CVS.

See Also:
administrate()

hasNewStuff

public boolean hasNewStuff()

getChangedStuff

public java.util.List getChangedStuff()
Returns a List of File instances indicating files that have been changed, but not yet committed.

See Also:
administrate()

hasChangedStuff

public boolean hasChangedStuff()

getRemovedStuff

public java.util.List getRemovedStuff()
Returns a List of File instances indicating files that have been removed, but not yet committed.

See Also:
administrate()

hasRemovedStuff

public boolean hasRemovedStuff()

isEqualLocation

public boolean isEqualLocation()
Checks if the module was previously checked out from the same location as is stored in CVS/Root.

Returns:
A check is done of the CVSROOT. If they are equal, this method returns true.


Copyright © 2002-2004 Toolforge. All Rights Reserved.