|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.inf.template.containercopy.AbstractContainerCopyHandler
com.ptc.netmarkets.nmixb.SubscriptionsCopyHelper
This is run after all objects have been copied.
This copyHelper resets the subscription policies to match those of the
source project.
This is different from the default subscription policies which were dealt
with by the ProjectPlanStructCopyHelper This method limits itself to
subscriptions on ExecutionObjects,Project,and WTDocuments. As more Subscriptions
are exposed they will have to be added.
Supported API: false
Extendable: false
Nested Class Summary | |
(package private) static class |
SubscriptionsCopyHelper.PairEntry
|
(package private) static class |
SubscriptionsCopyHelper.SubHolder
This class holds a map of the subscriptions and the vector of their subscribes. |
(package private) static class |
SubscriptionsCopyHelper.SubscrProxy
|
Field Summary | |
private static String |
CLASSNAME
|
private static Object[] |
DEF_PARAMS
|
private static int[] |
FROM_INDICES
|
private static String |
RESOURCE
|
private SubscriptionsCopyHelper.SubHolder |
sourceSubs
|
private SubscriptionsCopyHelper.SubHolder |
targetSubs
|
private ProjectCopyWorklist |
workList
|
Fields inherited from class wt.inf.template.containercopy.AbstractContainerCopyHandler |
VERBOSE |
Constructor Summary | |
SubscriptionsCopyHelper()
|
Method Summary | |
protected void |
copyAddedObjects()
Most of the time this is the only method that needs to be over-ridden. |
private static void |
createSubscriptionsFromProxy(SubscriptionsCopyHelper.SubscrProxy proxy)
|
static void |
createSubscriptionsFromProxy(SubscriptionsCopyHelper.SubscrProxy proxy,
Notifiable theTarget)
creates the subscriptions from the proxy. |
private List |
doExecutionObjects(WTContainerRef contRef)
|
private List |
doFolderContents(WTContainerRef contRef)
|
private List |
doFolderStructure(WTContainerRef contRef)
|
private void |
doForumObjects(WTContainerRef contRef)
|
private List |
doParts(WTContainerRef contRef)
|
private List |
findSubscriptions(WTContainerRef contRef)
|
private QueryResult |
getAllObjects(WTContainerRef contRef,
Class target)
|
private QueryResult |
getLatestIterationOfObjects(WTContainerRef contRef,
Class target)
|
protected void |
initialize()
This method provides an opportunity to do any initializion beyond setting the three target member variables that is performed in at the start of the method. |
void |
postPostCopyFeedback()
Posts post copy feedback. |
void |
postPreCopyFeedback()
Posts pre-copy user feedback. |
void |
printPostCopyVerbose()
Prints verbose post-copy statements. |
void |
printPreCopyVerbose()
Prints verbose pre-copy statements. |
private List |
processCandidateSubscription(ObjectSubscription candidate,
List objVec)
|
protected void |
rememberSourceContainerObjects()
Depending on the template being employed it may be necessary to to remember what was in the source container in order to do pruning. |
Methods inherited from class wt.inf.template.containercopy.AbstractContainerCopyHandler |
copyObjects, getCopier, getSourceContainer, getTargetContainer, getWorklist, postFeedback, rememberTargetContainerObjects, setCopier, setSourceContainer, setTargetContainer, setWorklist |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private SubscriptionsCopyHelper.SubHolder sourceSubs
private SubscriptionsCopyHelper.SubHolder targetSubs
private static final int[] FROM_INDICES
private ProjectCopyWorklist workList
private static final Object[] DEF_PARAMS
Constructor Detail |
public SubscriptionsCopyHelper()
Method Detail |
protected void initialize() throws WTException
initialize
in class AbstractContainerCopyHandler
WTException
public void printPreCopyVerbose() throws WTException
printPreCopyVerbose
in interface ContainerCopyHandler
printPreCopyVerbose
in class AbstractContainerCopyHandler
WTException
public void postPreCopyFeedback() throws WTException
postPreCopyFeedback
in interface ContainerCopyHandler
postPreCopyFeedback
in class AbstractContainerCopyHandler
WTException
protected void rememberSourceContainerObjects() throws WTException
rememberSourceContainerObjects
in class AbstractContainerCopyHandler
WTException
protected void copyAddedObjects() throws WTException
copyAddedObjects
in class AbstractContainerCopyHandler
WTException
public void postPostCopyFeedback() throws WTException
postPostCopyFeedback
in interface ContainerCopyHandler
postPostCopyFeedback
in class AbstractContainerCopyHandler
WTException
public void printPostCopyVerbose() throws WTException
printPostCopyVerbose
in interface ContainerCopyHandler
printPostCopyVerbose
in class AbstractContainerCopyHandler
WTException
private static void createSubscriptionsFromProxy(SubscriptionsCopyHelper.SubscrProxy proxy) throws WTException
WTException
public static void createSubscriptionsFromProxy(SubscriptionsCopyHelper.SubscrProxy proxy, Notifiable theTarget) throws WTException
WTException
private List findSubscriptions(WTContainerRef contRef) throws WTException
WTException
private void doForumObjects(WTContainerRef contRef) throws WTException
WTException
private List doExecutionObjects(WTContainerRef contRef) throws WTException
WTException
private List doFolderStructure(WTContainerRef contRef) throws WTException
WTException
private List doFolderContents(WTContainerRef contRef) throws WTException
WTException
private List doParts(WTContainerRef contRef) throws WTException
WTException
private List processCandidateSubscription(ObjectSubscription candidate, List objVec) throws WTException
WTException
private QueryResult getLatestIterationOfObjects(WTContainerRef contRef, Class target) throws WTException
WTException
private QueryResult getAllObjects(WTContainerRef contRef, Class target) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |