com.ptc.windchill.uwgm.proesrv.action
Class DeleteNewObjectsAction

java.lang.Object
  extended bycom.ptc.windchill.uwgm.proesrv.action.UwgmAction
      extended bycom.ptc.windchill.uwgm.proesrv.action.UwgmWorkspaceAction
          extended bycom.ptc.windchill.uwgm.proesrv.action.UwgmWorkspaceObjectsAction
              extended bycom.ptc.windchill.uwgm.proesrv.action.DeleteNewObjectsAction
Direct Known Subclasses:
UndoCheckoutAction

public class DeleteNewObjectsAction
extends UwgmWorkspaceObjectsAction

This is an action class which deletes the new objects from workspace


Field Summary
private  WTCollection checkedInObjects
           
private  WTCollection checkedOutObjects
           
private static Log log
          logging
private  WTCollection newObjects
           
 
Fields inherited from class com.ptc.windchill.uwgm.proesrv.action.UwgmWorkspaceObjectsAction
 
Fields inherited from class com.ptc.windchill.uwgm.proesrv.action.UwgmWorkspaceAction
 
Fields inherited from class com.ptc.windchill.uwgm.proesrv.action.UwgmAction
 
Constructor Summary
DeleteNewObjectsAction(RequestContext requestContext, EPMWorkspace workspace)
           
 
Method Summary
 void executeAction()
          This method implements the executeAction method of UwgmWorkspaceObjectsAction
private  void filterInstances(WTCollection reqObjects)
          Internal implementation to filter non new instances .
protected  WTCollection getCheckedInObjects()
          Method to get Checkedin Objects
protected  WTCollection getCheckedOutObjects()
          Method to get CheckedOut Iterations
private  WTCollection getInstances(WTCollection objects)
           
protected  WTCollection getNewObjects()
          Method to get New Iterations
private  WTCollection makeInstancesStandAlone(WTCollection allObjects)
           
 void setActionObjects(WTCollection requestObjects)
           
 void setNewObjects(WTCollection anewObjects)
           
 
Methods inherited from class com.ptc.windchill.uwgm.proesrv.action.UwgmWorkspaceObjectsAction
getActionObjects, getEPMWorkspace, getResultObjects, setEPMWorkspace, setResultObjects
 
Methods inherited from class com.ptc.windchill.uwgm.proesrv.action.UwgmAction
addWarning, checkExecutionSuccess, execute, getContext, getWarnings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

newObjects

private WTCollection newObjects

checkedOutObjects

private WTCollection checkedOutObjects

checkedInObjects

private WTCollection checkedInObjects

log

private static Log log
logging

Constructor Detail

DeleteNewObjectsAction

public DeleteNewObjectsAction(RequestContext requestContext,
                              EPMWorkspace workspace)
Method Detail

executeAction

public void executeAction()
                   throws UwgmConflictException,
                          UwgmErrorException
This method implements the executeAction method of UwgmWorkspaceObjectsAction

Specified by:
executeAction in class UwgmAction
Throws:
UwgmConflictException, - UwgmErrorException
UwgmErrorException
UwgmConflictException

makeInstancesStandAlone

private WTCollection makeInstancesStandAlone(WTCollection allObjects)
                                      throws WTException
Throws:
WTException

getNewObjects

protected WTCollection getNewObjects()
Method to get New Iterations

Returns:
NewIterations WTCollection

getCheckedOutObjects

protected WTCollection getCheckedOutObjects()
Method to get CheckedOut Iterations

Returns:
checkedOutObjects WTCollection

getCheckedInObjects

protected WTCollection getCheckedInObjects()
Method to get Checkedin Objects

Returns:
checkedInObjects WTCollection

setActionObjects

public void setActionObjects(WTCollection requestObjects)
                      throws WTException
Overrides:
setActionObjects in class UwgmWorkspaceObjectsAction
Throws:
WTException

filterInstances

private void filterInstances(WTCollection reqObjects)
                      throws WTException
Internal implementation to filter non new instances .

Throws:
WTException

getInstances

private WTCollection getInstances(WTCollection objects)
                           throws WTException
Throws:
WTException

setNewObjects

public void setNewObjects(WTCollection anewObjects)