Class DocumentEvent

java.lang.Object
fr.paris.lutece.plugins.document.service.DocumentEvent

public class DocumentEvent extends Object
DocumentEvent are sent by DocumentService to notify documents changes to listeners.
  • Field Details

  • Constructor Details

    • DocumentEvent

      public DocumentEvent(Document document, fr.paris.lutece.portal.business.user.AdminUser user, int nType)
      Creates a new instance of DocumentEvent
      Parameters:
      document - The document
      user - The user
      nType - The type of event
  • Method Details

    • getEventType

      public int getEventType()
      Returns the EventType
      Returns:
      The EventType
    • getDocument

      public Document getDocument()
      Returns the Document
      Returns:
      The Document
    • getUser

      public fr.paris.lutece.portal.business.user.AdminUser getUser()
      Returns the User
      Returns:
      The User
    • getSpaceId

      public int getSpaceId()
      Returns the space id of the document before any rule has been applied
      Returns:
      the space id
    • getStateId

      public int getStateId()
      Returns the state id of the document before any rule has been applied
      Returns:
      the state id