protected void |
StandardPublishService.processMarkupCopyForward(SessionIterationEvent event)
SINGLE OBJECT VERSION **********************************
protected void processRepresentationCopyForward(Representable oldIteration, Representable newIteration, boolean forceCopyAll, boolean includeAllMarkups, boolean toSandbox, boolean fromSandbox) throws WTException
{
if( oldIteration == null || newIteration == null ) return;
Representable oldRepresentable = PublishUtils.findRepresentable(oldIteration);
Representable newRepresentable = PublishUtils.findRepresentable(newIteration);
boolean newIterationReset = false;
// if this is an EPMDocument, check that there is no WTPart before continuing
if( oldIteration instanceof EPMDocument ) {
boolean tosandboxcase = false;
if(VERBOSE) System.out.println("EPMDOC OLD REPRESENTABLE IS " + oldRepresentable);
if( !(oldRepresentable instanceof EPMDocument) ) {
// The old EPMDocument has a WTPart, but if the new EPMDocument is in a different container
// to the old EPMDocument, then the new EPMDocument is in the sandbox. |