com.ptc.windchill.uwgm.common.pdm
Class OutOfDateHelper
java.lang.Object
com.ptc.windchill.uwgm.common.pdm.OutOfDateHelper
- public class OutOfDateHelper
- extends Object
Basically, a wrapper around EPMWorkspaceHelper.manager.getRefreshCandidates(),
but digs up some additional useful information, such as the name of the
user who created the "refresh candidate".
Nested Class Summary |
private static class |
OutOfDateHelper.Info
Auxiliary data structure to keep collected information |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static Log log
workables
private final WTCollection workables
user
private final WTPrincipal user
ws
private final EPMWorkspace ws
EMPTY_INFO
private static final OutOfDateHelper.Info EMPTY_INFO
infoMap
private WTKeyedMap infoMap
useEPM
private boolean useEPM
OutOfDateHelper
public OutOfDateHelper(WTPrincipal user,
EPMWorkspace ws,
WTCollection workables)
- Construct helper for a given set of PDM documents.
- Parameters:
user
- WTPrincipal - current userworkables
- Collection of EPMDocument or WTPart objects
- Throws:
IllegalArgumentException
- if any of the parameters is null
ClassCastException
- if a member of the Collection is not Workable
getInfo
private OutOfDateHelper.Info getInfo(Workable doc)
throws WTException
- Throws:
WTException
getModifiedBy
public String getModifiedBy(Workable doc)
throws WTException
- Throws:
WTException
isModifiedByYou
public boolean isModifiedByYou(Workable doc)
throws WTException
- Throws:
WTException
getRefreshCandidate
public Workable getRefreshCandidate(Workable doc)
throws WTException
- Throws:
WTException
populateOODInfo
private void populateOODInfo()
throws WTException
- Throws:
WTException
populateLatestInfo
private void populateLatestInfo()
throws WTException
- Throws:
WTException
populateOODInfoEpm
private void populateOODInfoEpm()
throws WTException
- Throws:
WTException
setInfo
private void setInfo(Workable doc,
Workable refreshCandidate)
throws WTException
- Throws:
WTException
getLatestObjects
protected Map getLatestObjects()
throws WTException
- Throws:
WTException
retrieveLatestObjects
private void retrieveLatestObjects(Class iterCl,
ConfigSpec cs,
Map latestMap)
throws WTException
- Throws:
WTException