public class NotificationEvent extends EventObject
Modifier and Type | Field and Description |
---|---|
Agent |
agent |
OrgUnit |
dept |
Long |
folderOid |
source
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.
|
Long |
getFolderOid() |
NotificationItem |
getNi()
Get the NotificationItem the event is transporting.
|
String |
getOriginatingSessionId()
Get the id of the sending session.
|
String |
getSessionId()
Check, if an event is for private notification without substitution.
|
int |
getType()
Get the type of the event.
|
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(Long folderOid) |
void |
setNi(NotificationItem ni)
Set NotificatinoItem the event will transport.
|
String |
setOriginatingSessionId(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(String sessionId)
Can be used to designate an event for (very) private notification without substitution for just a single session.
|
String |
setUniqueServerTag(String servertag)
Sets the unique tag of the server.
|
String |
toString()
Converts a NotificationEvent to a string representation.
|
void |
unmarkObsolete()
unmark event as obsolete.
|
getSource
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 deletedagent
- the agent the event is destined for.public NotificationEvent(NotificationItem ni, short type, Agent agent, OrgUnit dept)
ni
- the NotificationItem which triggered the notificationtype
- agent
- 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 notificationtype
- agent
- 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 String getUniqueServerTag()
public String setUniqueServerTag(String servertag)
servertag
- the id of the server to setpublic String getOriginatingSessionId()
public String setOriginatingSessionId(String sessionid)
sessionid
- 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 Long getFolderOid()
public void setFolderOid(Long folderOid)
public void setPrivate(boolean isPrivate)
public boolean isPrivate()
public void setSessionId(String sessionId)
public String getSessionId()
public String toString()
toString
in class EventObject
@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.