org.alfresco.repo.solr
Class AlfrescoModelDiff

java.lang.Object
  extended by org.alfresco.repo.solr.AlfrescoModelDiff

public class AlfrescoModelDiff
extends java.lang.Object

Represents a diff between the set of current repository Alfresco models and the set maintained in SOLR. The diff can represent a new, changed or removed Alfresco model. For a new model the newChecksum is populated; for a changed model both checksums are populated; for a removed model neither checksum is populated.

Since:
4.0

Nested Class Summary
static class AlfrescoModelDiff.TYPE
           
 
Constructor Summary
AlfrescoModelDiff(org.alfresco.service.namespace.QName modelName, AlfrescoModelDiff.TYPE type, java.lang.Long oldChecksum, java.lang.Long newChecksum)
           
AlfrescoModelDiff(java.lang.String modelName, AlfrescoModelDiff.TYPE type, java.lang.Long oldChecksum, java.lang.Long newChecksum)
          use full model name or it will be converted to the prefix form - as we are requesting the model it may not be on the other side - so the namespace is unknown.
 
Method Summary
 java.lang.String getModelName()
           
 java.lang.Long getNewChecksum()
           
 java.lang.Long getOldChecksum()
           
 AlfrescoModelDiff.TYPE getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlfrescoModelDiff

public AlfrescoModelDiff(java.lang.String modelName,
                         AlfrescoModelDiff.TYPE type,
                         java.lang.Long oldChecksum,
                         java.lang.Long newChecksum)
use full model name or it will be converted to the prefix form - as we are requesting the model it may not be on the other side - so the namespace is unknown.

Parameters:
modelName -
type -
oldChecksum -
newChecksum -

AlfrescoModelDiff

public AlfrescoModelDiff(org.alfresco.service.namespace.QName modelName,
                         AlfrescoModelDiff.TYPE type,
                         java.lang.Long oldChecksum,
                         java.lang.Long newChecksum)
Method Detail

getModelName

public java.lang.String getModelName()

getType

public AlfrescoModelDiff.TYPE getType()

getOldChecksum

public java.lang.Long getOldChecksum()

getNewChecksum

public java.lang.Long getNewChecksum()


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.