Package org.netxms.client.events
Class AlarmCategory
java.lang.Object
org.netxms.client.events.AlarmCategory
Alarm category template
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionCreate new empty alarm category.AlarmCategory(NXCPMessage msg, long baseId) Create alarm category from NXCP messageCopy constructor for alarm category object. -
Method Summary
Modifier and TypeMethodDescriptionvoidfillMessage(NXCPMessage msg) Fill NXCP message with alarm category data.Integer[]longgetId()getName()voidsetAccessControl(Integer[] accessControl) voidsetAll(AlarmCategory src) Set all attributes from another alarm category object.voidsetDescription(String description) voidsetId(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
-