Package org.netxms.client.events
Class AlarmCategory
- java.lang.Object
-
- org.netxms.client.events.AlarmCategory
-
public class AlarmCategory extends Object
Alarm category template
-
-
Field Summary
Fields Modifier and Type Field Description static intMODIFY_ACCESS_CONTROLstatic intMODIFY_ALARM_CATEGORY
-
Constructor Summary
Constructors Constructor Description AlarmCategory()Create new empty alarm category.AlarmCategory(org.netxms.base.NXCPMessage msg, long baseId)Create alarm category from NXCP messageAlarmCategory(AlarmCategory src)Copy constructor for alarm category object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfillMessage(org.netxms.base.NXCPMessage msg)Fill NXCP message with alarm category dataLong[]getAccessControl()StringgetDescription()longgetId()StringgetName()voidsetAccessControl(Long[] accessControl)voidsetAll(AlarmCategory src)Set all attributes from another alarm category object.voidsetDescription(String description)voidsetId(long id)voidsetName(String name)
-
-
-
Field Detail
-
MODIFY_ALARM_CATEGORY
public static final int MODIFY_ALARM_CATEGORY
- See Also:
- Constant Field Values
-
MODIFY_ACCESS_CONTROL
public static final int MODIFY_ACCESS_CONTROL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AlarmCategory
public AlarmCategory()
Create new empty alarm category.
-
AlarmCategory
public AlarmCategory(org.netxms.base.NXCPMessage msg, long baseId)Create alarm category from NXCP message- Parameters:
msg- NXCP message
-
AlarmCategory
public AlarmCategory(AlarmCategory src)
Copy constructor for alarm category object.- Parameters:
src- Original alarm category object
-
-
Method Detail
-
fillMessage
public void fillMessage(org.netxms.base.NXCPMessage msg)
Fill NXCP message with alarm category data
-
setAll
public void setAll(AlarmCategory src)
Set all attributes from another alarm category object.- Parameters:
src- Original alarm category object
-
getName
public String getName()
- Returns:
- the name
-
setName
public void setName(String name)
- Parameters:
name- the name to set
-
getDescription
public String getDescription()
- Returns:
- the description
-
setDescription
public void setDescription(String description)
- Parameters:
description- the description to set
-
getId
public long getId()
- Returns:
- the id
-
setId
public void setId(long id)
- Parameters:
id- to set
-
getAccessControl
public Long[] getAccessControl()
- Returns:
- Access List
-
setAccessControl
public void setAccessControl(Long[] accessControl)
- Parameters:
accessControl- the access control to set
-
-