atg.markers
Class CompareByProperties
java.lang.Object
   atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
       atg.nucleus.GenericService
atg.nucleus.GenericService
           atg.markers.CompareByProperties
atg.markers.CompareByProperties
- All Implemented Interfaces: 
- MarkerDuplicateComparator, atg.naming.AbsoluteNameable, NameContextBindingListener, NameContextElement, atg.naming.NameContextParentable, NameResolver, AdminableService, atg.nucleus.Configured, ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, VariableArgumentApplicationLogging, ComponentNameResolver, Service, ServiceListener, java.util.EventListener
- public class CompareByProperties 
- extends GenericService- implements MarkerDuplicateComparator
This class is a MarkerDuplicateComparator that compares
 two markers by type and property value. The property names that are compared
 are defined by the propertyNamesToCheck array.
 
 Each property is compared using object.equals().
 
 To return true both markers must be of the same type and
 all the compared properties must be equal.
 
 
 
| Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging | 
| DEFAULT_LOG_TRACE_STATUS | 
 
 
 
 
| Methods inherited from class atg.nucleus.GenericService | 
| addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService | 
 
| Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl | 
| vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
CLASS_VERSION
public static java.lang.String CLASS_VERSION
- Class version string
 
 
mPropertiesToCompare
public java.lang.String[] mPropertiesToCompare
CompareByProperties
public CompareByProperties()
setPropertiesToCompare
public void setPropertiesToCompare(java.lang.String[] pPropertiesToCompare)
- Sets the property names to compare
 
- 
 
- 
 
getPropertiesToCompare
public java.lang.String[] getPropertiesToCompare()
- Returns the the property names to compare
 
- 
 
- 
 
isDuplicateMarker
public boolean isDuplicateMarker(RepositoryItem pMarker1,
                                 RepositoryItem pMarker2)
                          throws MarkerException
- This method determines if the two markers are duplicates of each other.
 
- 
- Specified by:
- isDuplicateMarkerin interface- MarkerDuplicateComparator
 
- 
- Parameters:
- pMarker1- marker 1 to use in comparison
- pMarker2- marker 2 to use in comparison
- Returns:
- boolean true if markers are duplicates of each other
- Throws:
- MarkerException