public class NotificationEvent
extends java.util.EventObject
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
Agent |
agent |
OrgUnit |
dept |
java.lang.Long |
folderOid |
Constructor and Description |
---|
NotificationEvent(NotificationItem ni,
short type)
Constructor
|
NotificationEvent(NotificationItem ni,
short type,
Agent agent)
Constructor
|
NotificationEvent(NotificationItem ni,
short type,
Agent agent,
OrgUnit dept)
Constructor
|
NotificationEvent(NotificationItem ni,
short type,
Agent agent,
OrgUnit dept,
boolean isObsolete)
Constructor
|
Modifier and Type | Method and Description |
---|---|
long |
getCommitTimeStamp()
Get the commit time stamp.
|
long |
getCreateTimeStamp()
Get the create time stamp.
|
java.lang.Long |
getFolderOid() |
NotificationItem |
getNi()
Get the NotificationItem the event is transporting.
|
java.lang.String |
getOriginatingSessionId()
Get the id of the sending session.
|
java.lang.String |
getSessionId()
Check, if an event is for private notification without substitution.
|
int |
getType()
Get the type of the event.
|
java.lang.String |
getUniqueServerTag()
Get the unique tag of the server.
|
boolean |
isObsolete()
Determine if the event is obsolete.
|
boolean |
isPrivate()
Check, if an event is for private notification without substitution.
|
void |
markObsolete()
Mark event as obsolete.
|
void |
setCommitTimeStamp(long commitTimeStamp)
Set the commit time stamp.
|
void |
setFolderOid(java.lang.Long folderOid) |
void |
setNi(NotificationItem ni)
Set NotificatinoItem the event will transport.
|
java.lang.String |
setOriginatingSessionId(java.lang.String sessionid)
Sets the id of the originating session
|
void |
setPrivate(boolean isPrivate)
Can be used to designate an event for private notification without substitution (all sessions of this user; 'for your eyes only');
agent must be a User.
|
void |
setSessionId(java.lang.String sessionId)
Can be used to designate an event for (very) private notification without substitution for just a single session.
|
java.lang.String |
setUniqueServerTag(java.lang.String servertag)
Sets the unique tag of the server.
|
java.lang.String |
toString()
Converts a NotificationEvent to a string representation.
|
void |
unmarkObsolete()
unmark event as obsolete.
|
public Agent agent
public OrgUnit dept
public java.lang.Long folderOid
public NotificationEvent(NotificationItem ni, short type)
ni
- the NotificationItem which triggered the notificationtype
- is ni added or deletedpublic NotificationEvent(NotificationItem ni, short type, Agent agent)
ni
- the NotificationItem which triggered the notificationtype
- is ni added or deletedpublic NotificationEvent(NotificationItem ni, short type, Agent agent, OrgUnit dept)
ni
- the NotificationItem which triggered the notificationaddDel
- is ni added or deletedagent
- the agent (user or role)dept
- the organizational unitpublic NotificationEvent(NotificationItem ni, short type, Agent agent, OrgUnit dept, boolean isObsolete)
ni
- the NotificationItem which triggered the notificationaddDel
- is ni added or deletedagent
- the agent (user or role)dept
- the organizational unitisObsolete
- true, if mail notification should be suppressedpublic void setNi(NotificationItem ni)
ni
- the item to setpublic NotificationItem getNi()
public void markObsolete()
public void unmarkObsolete()
public boolean isObsolete()
public java.lang.String getUniqueServerTag()
public java.lang.String setUniqueServerTag(java.lang.String servertag)
servertag
- the id of the server to setpublic java.lang.String getOriginatingSessionId()
public java.lang.String setOriginatingSessionId(java.lang.String sessionid)
sessiontag
- the id of the session to setpublic long getCreateTimeStamp()
public long getCommitTimeStamp()
public void setCommitTimeStamp(long commitTimeStamp)
commitTimeStamp
- The commitTimeStamp to set.public int getType()
Names
public java.lang.Long getFolderOid()
public void setFolderOid(java.lang.Long folderOid)
public void setPrivate(boolean isPrivate)
public boolean isPrivate()
public void setSessionId(java.lang.String sessionId)
public java.lang.String getSessionId()
public java.lang.String toString()
toString
in class java.util.EventObject
@enterprise 9.0.33982 Copyright © 2001-2023 Groiss Informatics GmbH. All Rights Reserved.