Package com.isode.som.qmgr
Class SomQmgrUserEventCommand
- java.lang.Object
-
- com.isode.som.SomCommand
-
- com.isode.som.qmgr.SomQmgrCommand
-
- com.isode.som.qmgr.SomQmgrUserEventCommand
-
- All Implemented Interfaces:
SomResponseProcessor
public class SomQmgrUserEventCommand extends SomQmgrCommand
Class representing SOM command to audit user events. An instance of this class should be created and a type should be set usingsetType(String)
, followed by optional list of information parameters usingsetValue(String, String)
.
-
-
Field Summary
-
Fields inherited from class com.isode.som.SomCommand
opListener, opSession
-
-
Constructor Summary
Constructors Constructor Description SomQmgrUserEventCommand(SomSession session, SomQmgrHandler object, SomCommandListener listener)
Create a new SOM Queue Manager user event command that could be used for audit logging from the UI
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSelector(SomQmgrSelector sel)
Add a Selector to the commandjava.lang.String
getCommandString()
protected java.lang.String
getSubcommand()
void
setType(java.lang.String type)
Set the type of user eventvoid
setValue(java.lang.String type, java.lang.String value)
-
Methods inherited from class com.isode.som.qmgr.SomQmgrCommand
getHandler, processResponse
-
Methods inherited from class com.isode.som.SomCommand
dispatch, getSession, notifyListener, notifyListener, notifyListener
-
-
-
-
Constructor Detail
-
SomQmgrUserEventCommand
public SomQmgrUserEventCommand(SomSession session, SomQmgrHandler object, SomCommandListener listener)
Create a new SOM Queue Manager user event command that could be used for audit logging from the UI- Parameters:
session
- Session for command which may not be nullobject
- Result handler object which may not be nulllistener
- Listener object to be notified when command completes, which may be null
-
-
Method Detail
-
setType
public void setType(java.lang.String type)
Set the type of user event- Parameters:
type
- type, not null
-
setValue
public void setValue(java.lang.String type, java.lang.String value)
- Parameters:
type
- type of user event, not nullvalue
- value for user event, may be null
-
getSubcommand
protected java.lang.String getSubcommand()
-
addSelector
public void addSelector(SomQmgrSelector sel)
Add a Selector to the command- Parameters:
sel
- Selector which may be null
-
getCommandString
public java.lang.String getCommandString() throws SomException
- Overrides:
getCommandString
in classSomCommand
- Returns:
- The command string to be sent over the wire.
- Throws:
SomException
- Indicating a problem with the command
-
-