Class DocumentEvent


  • public class DocumentEvent
    extends java.lang.Object
    DocumentEvent are sent by DocumentService to notify documents changes to listeners.
    • Constructor Detail

      • 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 Detail

      • 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