Package org.netxms.client.events
Class AlarmCategory
java.lang.Object
org.netxms.client.events.AlarmCategory
Alarm category template
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
-
Constructor Summary
ConstructorDescriptionCreate new empty alarm category.AlarmCategory
(NXCPMessage msg, long baseId) Create alarm category from NXCP messageCopy constructor for alarm category object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
fillMessage
(NXCPMessage msg) Fill NXCP message with alarm category data.Integer[]
long
getId()
getName()
void
setAccessControl
(Integer[] accessControl) void
setAll
(AlarmCategory src) Set all attributes from another alarm category object.void
setDescription
(String description) void
setId
(long id) void
-
Field Details
-
MODIFY_ALARM_CATEGORY
public static final int MODIFY_ALARM_CATEGORY- See Also:
-
MODIFY_ACCESS_CONTROL
public static final int MODIFY_ACCESS_CONTROL- See Also:
-
-
Constructor Details
-
AlarmCategory
public AlarmCategory()Create new empty alarm category. -
AlarmCategory
Create alarm category from NXCP message- Parameters:
msg
- NXCP messagebaseId
- base field ID
-
AlarmCategory
Copy constructor for alarm category object.- Parameters:
src
- Original alarm category object
-
-
Method Details
-
fillMessage
Fill NXCP message with alarm category data.- Parameters:
msg
- NXCP message
-
setAll
Set all attributes from another alarm category object.- Parameters:
src
- Original alarm category object
-
getName
- Returns:
- the name
-
setName
- Parameters:
name
- the name to set
-
getDescription
- Returns:
- the description
-
setDescription
- Parameters:
description
- the description to set
-
getId
public long getId()- Returns:
- the id
-
setId
public void setId(long id) - Parameters:
id
- to set
-
getAccessControl
- Returns:
- Access List
-
setAccessControl
- Parameters:
accessControl
- the access control to set
-