public abstract class ALfnServiceEvent extends ALfnEvent
TLfnService
will extend.
An ALfnServiceEvent will always have a valid reference to the affected TLfnService
, see getService()
.
The return values for getUser and getRequest differ, based on the concrete implementation:
Method | Implementation | Return value |
---|---|---|
ALfnEvent.getUser() | TLfnServiceCreatedEvent | always the user who did the last update on the service |
TLfnServiceUpdatedEvent | ||
TLfnServiceStatusChangedEvent | ||
TLfnServiceDeletedEvent | ||
TLfnServiceAccessEvent | the user accessing the service, which can be null , for instance in the case of anonymous access |
|
ALfnEvent.getRequest() | TLfnServiceCreatedEvent | always null |
TLfnServiceUpdatedEvent | ||
TLfnServiceStatusChangedEvent | ||
TLfnServiceDeletedEvent | ||
TLfnServiceAccessEvent | always a valid reference to the request that caused this event |
Modifier and Type | Method and Description |
---|---|
protected String |
getPropertiesString()
Get the
String object that is used in the ALfnEvent.toString() method
for describing this event's properties. |
TLfnService |
getService() |
getRequest, getTimestamp, getUser, toString
public TLfnService getService()
protected String getPropertiesString()
ALfnEvent
String
object that is used in the ALfnEvent.toString()
method
for describing this event's properties.
Implementing classes can override this method for including specific properties,
as a comma-separated list of key-value pairs.
name
property, the overridden version
of this method should be:
@Override protected String getPropertiesString() { return super.getPropertiesString() + ", name='" + getName() + "'"; }
getPropertiesString
in class ALfnEvent
ALfnEvent.toString()
method.