org.netxms.client
Class ServerAction

java.lang.Object
  extended by org.netxms.client.ServerAction

public class ServerAction
extends java.lang.Object

Represents NetXMS server's action


Field Summary
static int EXEC_LOCAL
           
static int EXEC_NXSL_SCRIPT
           
static int EXEC_REMOTE
           
static int FORWARD_EVENT
           
static int SEND_EMAIL
           
static int SEND_SMS
           
 
Constructor Summary
  ServerAction(long id)
          Create server action object with given ID
protected ServerAction(NXCPMessage msg)
          Create server action object from NXCP message
 
Method Summary
 void fillMessage(NXCPMessage msg)
          Fill NXCP message with action's data
 java.lang.String getData()
           
 java.lang.String getEmailSubject()
           
 long getId()
           
 java.lang.String getName()
           
 java.lang.String getRecipientAddress()
           
 int getType()
           
 boolean isDisabled()
           
 void setData(java.lang.String data)
           
 void setDisabled(boolean disabled)
           
 void setEmailSubject(java.lang.String emailSubject)
           
 void setId(long id)
           
 void setName(java.lang.String name)
           
 void setRecipientAddress(java.lang.String recipientAddress)
           
 void setType(int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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_SMS

public static final int SEND_SMS
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
Constructor Detail

ServerAction

public ServerAction(long id)
Create server action object with given ID

Parameters:
id - Action ID

ServerAction

protected ServerAction(NXCPMessage msg)
Create server action object from NXCP message

Parameters:
msg - NXCP message
Method Detail

fillMessage

public void fillMessage(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 java.lang.String getName()
Returns:
the name

setName

public void setName(java.lang.String name)
Parameters:
name - the name to set

getData

public java.lang.String getData()
Returns:
the data

setData

public void setData(java.lang.String data)
Parameters:
data - the data to set

getRecipientAddress

public java.lang.String getRecipientAddress()
Returns:
the recipientAddress

setRecipientAddress

public void setRecipientAddress(java.lang.String recipientAddress)
Parameters:
recipientAddress - the recipientAddress to set

getEmailSubject

public java.lang.String getEmailSubject()
Returns:
the emailSubject

setEmailSubject

public void setEmailSubject(java.lang.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


Copyright © 2012. All Rights Reserved.