com.ptc.windchill.structconf
Class PartialPropagationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.ptc.windchill.structconf.util.NestableException
              extended bycom.ptc.windchill.structconf.StructConfManagerException
                  extended bycom.ptc.windchill.structconf.PropagationException
                      extended bycom.ptc.windchill.structconf.PartialPropagationException
All Implemented Interfaces:
Serializable

public class PartialPropagationException
extends PropagationException

Thrown if a propagation request aborts midway and some files need to be restored from backups.

See Also:
Serialized Form

Field Summary
private  HashMap backupFiles_
           
private  HashMap successfullyWritten_
           
 
Fields inherited from class com.ptc.windchill.structconf.util.NestableException
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
(package private) PartialPropagationException(HashMap success_map, HashMap backup_map, Throwable cause)
           
 
Method Summary
 File getBackupFileForTargetFile(File target_file)
           
 File[] getChangedTargetFiles()
          The target files that were successfully changed.
 File[] getUnwrittenTargetFiles()
           
 
Methods inherited from class com.ptc.windchill.structconf.util.NestableException
getCause, getFullMessage, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

successfullyWritten_

private HashMap successfullyWritten_

backupFiles_

private HashMap backupFiles_
Constructor Detail

PartialPropagationException

PartialPropagationException(HashMap success_map,
                            HashMap backup_map,
                            Throwable cause)
Method Detail

getChangedTargetFiles

public File[] getChangedTargetFiles()
The target files that were successfully changed.

Returns:
non-null array of files (possible zero-length

getUnwrittenTargetFiles

public File[] getUnwrittenTargetFiles()

getBackupFileForTargetFile

public File getBackupFileForTargetFile(File target_file)