Package org.netxms.client
Class ServerAction
- java.lang.Object
-
- org.netxms.client.ServerAction
-
public class ServerAction extends Object
Represents NetXMS server's action
-
-
Field Summary
Fields Modifier and Type Field Description static intEXEC_LOCALstatic intEXEC_NXSL_SCRIPTstatic intEXEC_REMOTEstatic intFORWARD_EVENTstatic intSEND_EMAILstatic intSEND_NOTIFICATIONstatic intXMPP_MESSAGE
-
Constructor Summary
Constructors Modifier Constructor Description ServerAction(long id)Create server action object with given IDprotectedServerAction(org.netxms.base.NXCPMessage msg)Create server action object from NXCP message
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfillMessage(org.netxms.base.NXCPMessage msg)Fill NXCP message with action's dataStringgetChannelName()StringgetData()StringgetEmailSubject()longgetId()StringgetName()StringgetRecipientAddress()intgetType()booleanisDisabled()voidsetChannelName(String channelName)voidsetData(String data)voidsetDisabled(boolean disabled)voidsetEmailSubject(String emailSubject)voidsetId(long id)voidsetName(String name)voidsetRecipientAddress(String recipientAddress)voidsetType(int type)
-
-
-
Field Detail
-
EXEC_LOCAL
public static final int EXEC_LOCAL
- See Also:
- Constant Field Values
-
EXEC_REMOTE
public static final int EXEC_REMOTE
- See Also:
- Constant Field Values
-
SEND_EMAIL
public static final int SEND_EMAIL
- See Also:
- Constant Field Values
-
SEND_NOTIFICATION
public static final int SEND_NOTIFICATION
- See Also:
- Constant Field Values
-
FORWARD_EVENT
public static final int FORWARD_EVENT
- See Also:
- Constant Field Values
-
EXEC_NXSL_SCRIPT
public static final int EXEC_NXSL_SCRIPT
- See Also:
- Constant Field Values
-
XMPP_MESSAGE
public static final int XMPP_MESSAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
fillMessage
public void fillMessage(org.netxms.base.NXCPMessage msg)
Fill NXCP message with action's data- Parameters:
msg- NXCP message
-
getType
public int getType()
- Returns:
- the type
-
setType
public void setType(int type)
- Parameters:
type- the type to set
-
getName
public String getName()
- Returns:
- the name
-
setName
public void setName(String name)
- Parameters:
name- the name to set
-
getData
public String getData()
- Returns:
- the data
-
setData
public void setData(String data)
- Parameters:
data- the data to set
-
getRecipientAddress
public String getRecipientAddress()
- Returns:
- the recipientAddress
-
setRecipientAddress
public void setRecipientAddress(String recipientAddress)
- Parameters:
recipientAddress- the recipientAddress to set
-
getEmailSubject
public String getEmailSubject()
- Returns:
- the emailSubject
-
setEmailSubject
public void setEmailSubject(String emailSubject)
- 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
public String getChannelName()
- Returns:
- the channelName
-
setChannelName
public void setChannelName(String channelName)
- Parameters:
channelName- the channelName to set
-
-