Interface DocumentChangeEvent


public interface DocumentChangeEvent
Event sent when a document has been changed.
Author:
Per-Erik
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Used when the content of the document has changed.
    static final int
    Used when the content source has changed.
    static final int
    Used when the copy on publish flag has changed.
    static final int
    Used when document types has been added to a document.
    static final int
    Used when document types has been removed from a document.
    static final int
    Used when the documents group has changed.
    static final int
    Used when the documents owner has changed.
    static final int
    Used when the document title has changed in some language.
    static final int
    Used by event creators/sources when it is not clear what has changed or something has changed that the other change types does not fit for.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the repository affected by the change (the repository that the document is in).
    Returns the document affected by the change.
    boolean
    hasChanged(int property)
    Returns true if the property represented by property has changed, false otherwise.
  • Field Details

    • CONTENT_CHANGED

      static final int CONTENT_CHANGED
      Used when the content of the document has changed.
      See Also:
    • CONTENT_SOURCE_CHANGED

      static final int CONTENT_SOURCE_CHANGED
      Used when the content source has changed. This often means a change in the content too but is not necessary.
      See Also:
    • COPY_ON_PUBLISH_CHANGED

      static final int COPY_ON_PUBLISH_CHANGED
      Used when the copy on publish flag has changed.
      See Also:
    • DOCUMENT_TYPE_ADDED

      static final int DOCUMENT_TYPE_ADDED
      Used when document types has been added to a document. Note that some events might contain both remove and add events for document types.
      See Also:
    • DOCUMENT_TYPE_REMOVED

      static final int DOCUMENT_TYPE_REMOVED
      Used when document types has been removed from a document. Note that some events might contain both remove and add events for document types.
      See Also:
    • GROUP_CHANGED

      static final int GROUP_CHANGED
      Used when the documents group has changed.
      See Also:
    • OWNER_CHANGED

      static final int OWNER_CHANGED
      Used when the documents owner has changed.
      See Also:
    • TITLE_CHANGED

      static final int TITLE_CHANGED
      Used when the document title has changed in some language.
      See Also:
    • UNKNOWN_CHANGES

      static final int UNKNOWN_CHANGES
      Used by event creators/sources when it is not clear what has changed or something has changed that the other change types does not fit for. Other changes might still have happened too.
      See Also:
  • Method Details