com.centrasite.jaxr
Interface CentraSiteConflictListener


public interface CentraSiteConflictListener

Interface for Conflict listening during ImportValidation.

Note: if enhancing this interface, backward compatibility must be considered !!!


Method Summary
 javax.xml.registry.infomodel.Organization getEffectiveOrganization(javax.xml.registry.infomodel.RegistryObject regObj, java.lang.String orgKey)
          Get the effective target organization for the object given.
 boolean isEqualReplace(javax.xml.registry.infomodel.RegistryObject regObj)
          Check if the object, which was notified as "equal timestamp" is to be replaced.
 boolean isNewOrganizationForced()
          Decides if a new organization (by getEffectiveOrganization()) is forced to set to the objects.
 boolean isReplace(javax.xml.registry.infomodel.RegistryObject regObj)
          Check if the object, which was notified as "Conflict" because of different timestamp is replaced anyway.
 

Method Detail

isReplace

boolean isReplace(javax.xml.registry.infomodel.RegistryObject regObj)
                  throws javax.xml.registry.JAXRException
Check if the object, which was notified as "Conflict" because of different timestamp is replaced anyway.

Parameters:
regObj - the conflicting object
Returns:
true: object replaced anyway false: usual object
Throws:
javax.xml.registry.JAXRException

isEqualReplace

boolean isEqualReplace(javax.xml.registry.infomodel.RegistryObject regObj)
                       throws javax.xml.registry.JAXRException
Check if the object, which was notified as "equal timestamp" is to be replaced.

Parameters:
regObj - the conflicting object
Returns:
true: object replaced anyway false: usual object
Throws:
javax.xml.registry.JAXRException

getEffectiveOrganization

javax.xml.registry.infomodel.Organization getEffectiveOrganization(javax.xml.registry.infomodel.RegistryObject regObj,
                                                                   java.lang.String orgKey)
                                                                   throws javax.xml.registry.JAXRException
Get the effective target organization for the object given.

Parameters:
regObj - the registry object being imported
orgKey - the current key of the 'submittingOrganization' of the object (null: not present)
Returns:
the organization which will be store to objects' submittingOrganization
Throws:
javax.xml.registry.JAXRException

isNewOrganizationForced

boolean isNewOrganizationForced()
                                throws javax.xml.registry.JAXRException
Decides if a new organization (by getEffectiveOrganization()) is forced to set to the objects.

Returns:
true: replace new organization to objects.
Throws:
javax.xml.registry.JAXRException