wt.conflict
Class ConflictServerHelper

java.lang.Object
  extended bywt.conflict.ConflictServerHelper
All Implemented Interfaces:
Externalizable, Serializable

public class ConflictServerHelper
extends Object
implements Externalizable

Provider for server-only callable APIs.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
static String CONFLICTS_STORE
           
static long EXTERNALIZATION_VERSION_UID
           
protected static long OLD_FORMAT_VERSION_UID
           
static String RESOLUTIONS_STORE
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
static String WARNINGINFO_STORE
           
 
Constructor Summary
ConflictServerHelper()
           
 
Method Summary
protected static ArrayList getConflictsForResolutionsProvided()
           
static ResolutionType getInputConflictResolutions(Object targetObj, ConflictType conflictCode)
           
static ResolutionType getResolution(Object targetObj, ConflictType conflictCode)
          Fetch the resolution code for the given conflicting object and the given conflict type.
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
private  boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source, which is not the current version.
protected  boolean readVersion(ConflictServerHelper thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
static void setInputConflictResolutions(ConflictResolution[] allResolutions)
          To set the conflict resolution information, provided by the conflict-enabled client, into the context.
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values

CONFLICTS_STORE

public static final String CONFLICTS_STORE
See Also:
Constant Field Values

WARNINGINFO_STORE

public static final String WARNINGINFO_STORE
See Also:
Constant Field Values

RESOLUTIONS_STORE

public static final String RESOLUTIONS_STORE
See Also:
Constant Field Values
Constructor Detail

ConflictServerHelper

public ConflictServerHelper()
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(ConflictServerHelper thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

setInputConflictResolutions

public static void setInputConflictResolutions(ConflictResolution[] allResolutions)
To set the conflict resolution information, provided by the conflict-enabled client, into the context.

Supported API: false

Parameters:
allResolutions - Passed Conflict resolutions.

getResolution

public static ResolutionType getResolution(Object targetObj,
                                           ConflictType conflictCode)
Fetch the resolution code for the given conflicting object and the given conflict type. It would first check whether any resolution is present for the object, otherwise whether there is any blanket resolution provided.

Supported API: false

Parameters:
targetObj -
conflictCode -
Returns:
ResolutionType

getInputConflictResolutions

public static ResolutionType getInputConflictResolutions(Object targetObj,
                                                         ConflictType conflictCode)

getConflictsForResolutionsProvided

protected static ArrayList getConflictsForResolutionsProvided()