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

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.GhostResolutionAction

public class GhostResolutionAction
extends UwgmWorkspaceAction

Ghost Resolution Action implementation


Field Summary
private  List conflicts
           
private  WTCollection deleted
           
private  int DEP_T_DUMMY
           
private  int DEP_T_INST_DUMMY
           
private  GhostResolutionOption ghostResolutionOption
           
private  WTCollection ignorabled
           
private  WTCollection input
           
private  Class[] linkCl
           
private static Log log
          logging
private  Map tainted
           
 
Fields inherited from class com.ptc.windchill.uwgm.proesrv.action.UwgmWorkspaceAction
 
Fields inherited from class com.ptc.windchill.uwgm.proesrv.action.UwgmAction
 
Constructor Summary
GhostResolutionAction(RequestContext context, EPMWorkspace epmWorkspace)
           
 
Method Summary
private  void addLink(Map ghostLinks, EPMDependencyLink link, Map ghosts, Set undeleted)
           
private  void deleteOptionalLinks(ArrayList links, HashSet taintedParents, WTHashSet deletedLinks, boolean ignoreInternal)
           
protected  void executeAction()
          executeAction
 List getConflicts()
          return found conflicts
 WTCollection getDeletedCandidates()
          return the collection of ghosts which are the candidates for delete action
private  WTCollection getGhostParentDependencyLinks(Map ghosts)
           
private  Map getGhosts()
           
 EPMDocument getRefreshedCandidate(Persistable obj)
          return refreshed candidate of tainted object
 boolean isIgnorable(Persistable obj)
          return true if checkin should ignore this object
 boolean isTainted(Persistable obj)
          return true if object was tainted: setMissingDependents(true) saved
 boolean needRefresh()
          return true if a caller should refresh the input collection of objects before check in
 void setGhostResolutionOption(GhostResolutionOption ghostResolutionOption)
          set GhostResolutionOption
 void setInput(WTCollection input)
          set checkin input for ghost resolving
 
Methods inherited from class com.ptc.windchill.uwgm.proesrv.action.UwgmWorkspaceAction
getEPMWorkspace
 
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

input

private WTCollection input

deleted

private WTCollection deleted

ignorabled

private WTCollection ignorabled

ghostResolutionOption

private GhostResolutionOption ghostResolutionOption

conflicts

private List conflicts

tainted

private Map tainted

linkCl

private final Class[] linkCl

DEP_T_DUMMY

private final int DEP_T_DUMMY
See Also:
Constant Field Values

DEP_T_INST_DUMMY

private final int DEP_T_INST_DUMMY
See Also:
Constant Field Values

log

private static Log log
logging

Constructor Detail

GhostResolutionAction

public GhostResolutionAction(RequestContext context,
                             EPMWorkspace epmWorkspace)
Method Detail

setGhostResolutionOption

public void setGhostResolutionOption(GhostResolutionOption ghostResolutionOption)
set GhostResolutionOption


setInput

public void setInput(WTCollection input)
set checkin input for ghost resolving

Parameters:
input - WTCollection

getConflicts

public List getConflicts()
return found conflicts


needRefresh

public boolean needRefresh()
return true if a caller should refresh the input collection of objects before check in

Returns:
boolean

isIgnorable

public boolean isIgnorable(Persistable obj)
return true if checkin should ignore this object

Parameters:
obj - Persistable
Returns:
boolean

isTainted

public boolean isTainted(Persistable obj)
return true if object was tainted: setMissingDependents(true) saved

Parameters:
obj - Persistable
Returns:
boolean

getRefreshedCandidate

public EPMDocument getRefreshedCandidate(Persistable obj)
return refreshed candidate of tainted object

Parameters:
obj - Persistable
Returns:
EPMDocument

getDeletedCandidates

public WTCollection getDeletedCandidates()
return the collection of ghosts which are the candidates for delete action

Returns:
WTCollection

executeAction

protected void executeAction()
                      throws UwgmConflictException,
                             UwgmErrorException
executeAction

Specified by:
executeAction in class UwgmAction
Throws:
UwgmConflictException
UwgmErrorException

getGhosts

private Map getGhosts()
               throws WTException
Throws:
WTException

getGhostParentDependencyLinks

private WTCollection getGhostParentDependencyLinks(Map ghosts)
                                            throws WTException,
                                                   WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

addLink

private void addLink(Map ghostLinks,
                     EPMDependencyLink link,
                     Map ghosts,
                     Set undeleted)

deleteOptionalLinks

private void deleteOptionalLinks(ArrayList links,
                                 HashSet taintedParents,
                                 WTHashSet deletedLinks,
                                 boolean ignoreInternal)