Interface ICommandManager
- All Superinterfaces:
IComponent
,IComponentProvider
,IInitializable
,IRemoteCommandTransport
,IURIResolver
Enables a lookup of a Command
-
Field Summary
Fields inherited from interface com.webmethods.portal.system.IComponentProvider
ATTR_APP_NAME, ATTR_BEG_QUERY, ATTR_END_QUERY, ATTR_MID_QUERY, BIZPOLICY_MANAGER, CACHE_PROVIDER, COMMAND_PROVIDER, COMPONENTS_QUERY, INSTALL_PROVIDER, MECH_PROVIDER, METACONTEXT_PROVIDER, PHASE_PROVIDER, POLICY_PROVIDER, SEARCH_PROVIDER
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkAccess
(IContext context, ICommand command) getCommand
(IContext context, String verb) Gets the mechanics for a particular verbgetCommand
(IContext context, String verb, IURI id) Gets the command for a particular verb and resource id.getCommand
(IContext context, String verb, String type) Gets the mechanics for a particular verb and type.Gets the remote command transport that is registered under the specified nameinvokeClusterCommand
(IContext context, ICommand command, ICommandBean commandBean) Invoke a command on all live cluster nodes(except current one) Note, this will currently use the defaultIRemoteCommandTransport
Methods inherited from interface com.webmethods.portal.system.IComponent
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
Methods inherited from interface com.webmethods.portal.system.IComponentProvider
exists, getComponent, getComponent, getComponent, getComponentQueryString, getComponents, getDefaultComponent, getLogger, initDeferredWebAppComponents, lookup, registerComponent, reloadComponent, reloadComponent, unregisterComponent, upgradeComponentDataFromBootstrapComponentData
Methods inherited from interface com.webmethods.portal.system.init.IInitializable
init, shutdown
Methods inherited from interface com.webmethods.portal.bizPolicy.command.IRemoteCommandTransport
invokeRemoteCommand
Methods inherited from interface com.webmethods.portal.system.IURIResolver
acquireURI, acquireURI
-
Method Details
-
getCommand
Gets the mechanics for a particular verb- Parameters:
context
- the current user's context requesting the commandverb
- an arbitrary verb- Returns:
- The appropriate ICommand or NULL if not found
- Throws:
BizException
-
getCommand
Gets the mechanics for a particular verb and type.- Parameters:
context
- the current user's context requesting the commandverb
- an arbitrary verbtype
- describes the type of resource. May be Null- Returns:
- The appropriate ICommand or NULL if not found
- Throws:
BizException
-
getCommand
Gets the command for a particular verb and resource id.- Parameters:
context
- the current user's context requesting the commandverb
- an arbitrary verbid
- uniquely describes this resource. Cannot be null- Returns:
- The appropriate ICommand or NULL if not found
- Throws:
BizException
-
invokeClusterCommand
List<ICommandResponseEntry> invokeClusterCommand(IContext context, ICommand command, ICommandBean commandBean) Invoke a command on all live cluster nodes(except current one) Note, this will currently use the defaultIRemoteCommandTransport
- Parameters:
context
- the context to invoke the commandcommand
- which command to invokecommandBean
- the args for the command- Returns:
- - a list containing CommandResponseEntry objects. The list might be empty if no cluster nodes are live or there is no cluster.
-
checkAccess
- Parameters:
context
-command
-- Throws:
BizException
-
getRemoteCommandTransport
Gets the remote command transport that is registered under the specified name- Parameters:
name
- the name of the component to lookup- Returns:
- the found IRemoteCommandTransport or null if it can not be found.
- Throws:
BizException
-