Package org.netxms.client
Class ServerAction
java.lang.Object
org.netxms.client.ServerAction
Represents NetXMS server's action
-
Constructor Summary
ConstructorsModifierConstructorDescriptionServerAction(long id) Create server action object with given IDServerAction(long id, ServerAction src) Create copy of given server action object with new IDprotectedServerAction(NXCPMessage msg) Create server action object from NXCP message -
Method Summary
Modifier and TypeMethodDescriptionvoidfillMessage(NXCPMessage msg) Fill NXCP message with action's datagetData()longgetId()getName()getType()booleanvoidsetChannelName(String channelName) voidvoidsetDisabled(boolean disabled) voidsetEmailSubject(String emailSubject) voidsetId(long id) voidvoidsetRecipientAddress(String recipientAddress) voidsetType(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
-