com.ptc.windchill.uwgm.common.conflict
Class UwgmConflictHelper.OverridableConflictImpl

java.lang.Object
  extended bycom.ptc.windchill.uwgm.common.conflict.UwgmConflictHelper.OverridableConflictImpl
All Implemented Interfaces:
UwgmConflictHelper.OverridableConflict
Enclosing class:
UwgmConflictHelper

private static class UwgmConflictHelper.OverridableConflictImpl
extends Object
implements UwgmConflictHelper.OverridableConflict

internal OverridableConflict implementation


Field Summary
private  ResolutionType[] resolutions
           
private  ConflictType type
           
private  WTMessage wtMessage
           
 
Constructor Summary
UwgmConflictHelper.OverridableConflictImpl(ConflictType type, ResolutionType[] resolutions, WTMessage wtMessage)
           
UwgmConflictHelper.OverridableConflictImpl(ConflictType type, ResolutionType resolution, WTMessage message)
           
 
Method Summary
 WTKeyedMap getResolutionOptions(WTCollection objects)
          Gets the Resolution options Map [Persistable, Resolution] for the conflict
 void validate(WTCollection objects)
          validates the data with default resolution and throws UwgmConflictException for non-valid iterations
 ConflictElement verify(WTCollection objects)
          validates the data with default resolution and produce ConflictElement for non-valid iterations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

private final ConflictType type

resolutions

private final ResolutionType[] resolutions

wtMessage

private final WTMessage wtMessage
Constructor Detail

UwgmConflictHelper.OverridableConflictImpl

public UwgmConflictHelper.OverridableConflictImpl(ConflictType type,
                                                  ResolutionType[] resolutions,
                                                  WTMessage wtMessage)

UwgmConflictHelper.OverridableConflictImpl

public UwgmConflictHelper.OverridableConflictImpl(ConflictType type,
                                                  ResolutionType resolution,
                                                  WTMessage message)
Method Detail

validate

public void validate(WTCollection objects)
              throws UwgmConflictException,
                     WTException
Description copied from interface: UwgmConflictHelper.OverridableConflict
validates the data with default resolution and throws UwgmConflictException for non-valid iterations

Specified by:
validate in interface UwgmConflictHelper.OverridableConflict
Parameters:
objects - WTCollection
Throws:
UwgmConflictException
WTException

verify

public ConflictElement verify(WTCollection objects)
                       throws WTException
Description copied from interface: UwgmConflictHelper.OverridableConflict
validates the data with default resolution and produce ConflictElement for non-valid iterations

Specified by:
verify in interface UwgmConflictHelper.OverridableConflict
Parameters:
objects - WTCollection
Throws:
WTException

getResolutionOptions

public WTKeyedMap getResolutionOptions(WTCollection objects)
                                throws WTException
Description copied from interface: UwgmConflictHelper.OverridableConflict
Gets the Resolution options Map [Persistable, Resolution] for the conflict

Specified by:
getResolutionOptions in interface UwgmConflictHelper.OverridableConflict
Parameters:
objects - WTCollection
Returns:
resolutionMap Map. The keys are the iterations and the values are the resolution options
Throws:
WTException