Class DocumentEvent
- java.lang.Object
-
- fr.paris.lutece.plugins.document.service.DocumentEvent
-
public class DocumentEvent extends java.lang.ObjectDocumentEvent are sent by DocumentService to notify documents changes to listeners.
-
-
Field Summary
Fields Modifier and Type Field Description static intDOCUMENT_CONTENT_MODIFIEDstatic intDOCUMENT_CREATEDstatic intDOCUMENT_MOVEDstatic intDOCUMENT_STATE_CHANGED
-
Constructor Summary
Constructors Constructor Description DocumentEvent(Document document, fr.paris.lutece.portal.business.user.AdminUser user, int nType)Creates a new instance of DocumentEvent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentgetDocument()Returns the DocumentintgetEventType()Returns the EventTypeintgetSpaceId()Returns the space id of the document before any rule has been appliedintgetStateId()Returns the state id of the document before any rule has been appliedfr.paris.lutece.portal.business.user.AdminUsergetUser()Returns the User
-
-
-
Field Detail
-
DOCUMENT_CREATED
public static final int DOCUMENT_CREATED
- See Also:
- Constant Field Values
-
DOCUMENT_CONTENT_MODIFIED
public static final int DOCUMENT_CONTENT_MODIFIED
- See Also:
- Constant Field Values
-
DOCUMENT_STATE_CHANGED
public static final int DOCUMENT_STATE_CHANGED
- See Also:
- Constant Field Values
-
DOCUMENT_MOVED
public static final int DOCUMENT_MOVED
- See Also:
- Constant Field Values
-
-
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 documentuser- The usernType- 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
-
-