Groovy event handler - Add server event
Add server events
You can select a server event here.
Add following server event
With this option, class names of server events can be directly entered (e.g. de.uplanet.lucy.server.workflow.event.IWorkflowEvent to respond to all server events).
Activate the "Send login process event upon login" setting in the portal properties if you want to use this server event with the Groovy event handler.
Server events
Publishing a new application
More information: Interface IApplicationCreateEvent
Publishing an existing application
More information: Interface IApplicationUpdateEvent
Before deleting an application
More information: Interface IApplicationBeforeDeleteEvent
After deleting an application
More information: Interface IApplicationAfterDeleteEvent
These events contain the GUID of the application. The GUID can be determined as follows:
def strAppGuid = g_event.applicationGuid
Portal export start
Occurs at the start of a portal export. The event contains the export directory or the export file.
More information: Interface IPortalExportStartEvent
Portal export end
Occurs at the end of a portal export. The event contains the export directory or the export file.
More information: Interface IPortalExportEndEvent
Adding a user (web)
Occurs after a new user has been created using the Users application. The event contains the GUID of the newly added user.
More information: Interface IOrgStructureChangedEvent
Deactivating a user (web)
Occurs after a user has been deactivated via the Users application. The event contains the GUID of the deactivated user.
More information: Interface IUserDeactivatedEvent
Locking a user (web)
Occurs after a user has been locked because they failed to enter their password too many times.
More information: Interface IUserLockedWorkflowEvent
User login
Requires the portal option "Send login process event upon login" in the portal properties. Occurs after a user logs in. The event contains the logged-in session, as well as the name of the authentication configuration used. The GUID of the user can be determined with the following Groovy script:
def intUserId = g_session?.user?.id
def strUserGuid = g_session?.user?.guid
User logout
Requires the portal option "Send login process event upon login" in the portal properties. Occurs after a session has been logged out. The event contains the logged-out session, as well as the name of the authentication configuration used.
Server stop
Occurs while the portal server is being shut down.
More information: Interface IServerStopEvent
User-defined event
Occurs, when it is initiated by a user, such as via JavaScript or as user-defined workflow subsequent event in task planning.
Timer processing completed
Occurs, when a global timer finished its task.
Changing portal languages
Changes the language settings in the portal properties.
More information: Interface ILanguagesChangedEvent
Changing portal locale formats
Changes the format settings in the portal properties.
More information: Interface ILocaleFormatsChangedEvent
Sending emails failed (badmail folder)
Occurs when an email is moved into the badmail folder (/internal/mailroot/badmail).
More information