Class DocumentEvent
java.lang.Object
fr.paris.lutece.plugins.document.service.DocumentEvent
DocumentEvent are sent by DocumentService to notify documents changes to
listeners.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionDocumentEvent(Document document, fr.paris.lutece.portal.business.user.AdminUser user, int nType) Creates a new instance of DocumentEvent -
Method Summary
Modifier and TypeMethodDescriptionReturns the DocumentintReturns the EventTypeintReturns the space id of the document before any rule has been appliedintReturns the state id of the document before any rule has been appliedfr.paris.lutece.portal.business.user.AdminUsergetUser()Returns the User
-
Field Details
-
DOCUMENT_CREATED
public static final int DOCUMENT_CREATED- See Also:
-
DOCUMENT_CONTENT_MODIFIED
public static final int DOCUMENT_CONTENT_MODIFIED- See Also:
-
DOCUMENT_STATE_CHANGED
public static final int DOCUMENT_STATE_CHANGED- See Also:
-
DOCUMENT_MOVED
public static final int DOCUMENT_MOVED- See Also:
-
-
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 documentuser- The usernType- The type of event
-
-
Method Details
-
getEventType
public int getEventType()Returns the EventType- Returns:
- The EventType
-
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
-