Package org.netxms.client
Class ServerAction
java.lang.Object
org.netxms.client.ServerAction
Represents NetXMS server's action
-
Constructor Summary
ModifierConstructorDescriptionServerAction
(long id) Create server action object with given IDServerAction
(long id, ServerAction src) Create copy of given server action object with new IDprotected
ServerAction
(NXCPMessage msg) Create server action object from NXCP message -
Method Summary
Modifier and TypeMethodDescriptionvoid
fillMessage
(NXCPMessage msg) Fill NXCP message with action's datagetData()
long
getId()
getName()
getType()
boolean
void
setChannelName
(String channelName) void
void
setDisabled
(boolean disabled) void
setEmailSubject
(String emailSubject) void
setId
(long id) void
void
setRecipientAddress
(String recipientAddress) void
setType
(ServerActionType type)
-
Constructor Details
-
ServerAction
public ServerAction(long id) Create server action object with given ID- Parameters:
id
- Action ID
-
ServerAction
Create copy of given server action object with new ID- Parameters:
id
- new action IDsrc
- source action object
-
ServerAction
Create server action object from NXCP message- Parameters:
msg
- NXCP message
-
-
Method Details
-
fillMessage
Fill NXCP message with action's data- Parameters:
msg
- NXCP message
-
getType
- Returns:
- the type
-
setType
- Parameters:
type
- the type to set
-
getName
- Returns:
- the name
-
setName
- Parameters:
name
- the name to set
-
getData
- Returns:
- the data
-
setData
- Parameters:
data
- the data to set
-
getRecipientAddress
- Returns:
- the recipientAddress
-
setRecipientAddress
- Parameters:
recipientAddress
- the recipientAddress to set
-
getEmailSubject
- Returns:
- the emailSubject
-
setEmailSubject
- Parameters:
emailSubject
- the emailSubject to set
-
isDisabled
public boolean isDisabled()- Returns:
- the disabled
-
setDisabled
public void setDisabled(boolean disabled) - Parameters:
disabled
- the disabled to set
-
getId
public long getId()- Returns:
- the id
-
setId
public void setId(long id) - Parameters:
id
- the id to set
-
getChannelName
- Returns:
- the channelName
-
setChannelName
- Parameters:
channelName
- the channelName to set
-