|
|||||||||||
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.DocTemplateCopyHelper
This class copies PROJECT LEVEL document templates to the new project.
Organization level document templates are already available to all projects
in the system.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static Object[] |
DEF_PARAMS
|
private Map |
docAclMap
|
private static int[] |
FROM_INDICES
|
private static String |
RESOURCE
|
private List |
sourceProxies
|
private static TemplateInfo |
ti
|
private CommonCopyWorklist |
workList
|
Fields inherited from class wt.inf.template.containercopy.AbstractContainerCopyHandler |
VERBOSE |
Constructor Summary | |
DocTemplateCopyHelper()
|
Method Summary | |
protected void |
copyAddedObjects()
Most of the time this is the only method that needs to be over-ridden. |
private WTDocument |
copyDocAcls(ObjectIdentifier sourceOid,
WTDocument newDoc)
|
static QueryResult |
findDocTemplates(WTContainerRef contRef)
|
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. |
protected void |
pruneObjects()
This is not necessary for every type of object, but there are times when it is most efficient to prune objects that are present in the target container, but are absent in the source container. |
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. |
private void |
updateDocAclMap(WTDocument currDoc)
|
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 List sourceProxies
private Map docAclMap
private static Object[] DEF_PARAMS
private CommonCopyWorklist workList
private static final int[] FROM_INDICES
private static final TemplateInfo ti
Constructor Detail |
public DocTemplateCopyHelper()
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 pruneObjects() throws WTException
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 void updateDocAclMap(WTDocument currDoc) throws WTException
WTException
private WTDocument copyDocAcls(ObjectIdentifier sourceOid, WTDocument newDoc) throws WTException
WTException
public static QueryResult findDocTemplates(WTContainerRef contRef) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |