Package org.netxms.client
Class UserAgentNotification
- java.lang.Object
-
- org.netxms.client.UserAgentNotification
-
public class UserAgentNotification extends Object
User agent notification
-
-
Constructor Summary
Constructors Constructor Description UserAgentNotification(org.netxms.base.NXCPMessage msg, long baseId, NXCSession session)Create notification object from NXCP message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DategetEndTime()Get notification end time.longgetId()Get notification ID.StringgetMessage()Get notification message.StringgetObjectNames()Get list of objects where this notification was sent as comma separated list.long[]getObjects()Get list of object identifiers where this notification was sent.DategetStartTime()Get notification start time.booleanisRecalled()Check if this notification was recalled.booleanisStartupNotification()Check if thus notification should be shown every startup
-
-
-
Constructor Detail
-
UserAgentNotification
public UserAgentNotification(org.netxms.base.NXCPMessage msg, long baseId, NXCSession session)Create notification object from NXCP message.- Parameters:
msg- NXCP messagebaseId- base field ID for this objectsession- associated client session
-
-
Method Detail
-
getId
public long getId()
Get notification ID.- Returns:
- notification ID
-
getMessage
public String getMessage()
Get notification message.- Returns:
- notification message
-
getObjects
public long[] getObjects()
Get list of object identifiers where this notification was sent.- Returns:
- list of object identifiers where this notification was sent
-
getObjectNames
public String getObjectNames()
Get list of objects where this notification was sent as comma separated list.- Returns:
- list of objects where this notification was sent as comma separated list
-
getStartTime
public Date getStartTime()
Get notification start time.- Returns:
- notification start time
-
getEndTime
public Date getEndTime()
Get notification end time.- Returns:
- notification end time
-
isRecalled
public boolean isRecalled()
Check if this notification was recalled.- Returns:
- true if this notification was recalled.
-
isStartupNotification
public boolean isStartupNotification()
Check if thus notification should be shown every startup- Returns:
- true if notification should be shown every startup
-
-