public interface ICommand extends ISystemHandler
Modifier and Type | Method and Description |
---|---|
ICommandBean |
createBean(IContext context,
Map<String,?> properties)
This is a factory method for instantiating the appropriate bean for a specific Command
|
Class<?> |
getReturnType()
Return the actual datatype of the object returned from the handle method.
|
Object |
handle(IContext context,
ICommandBean commandBean)
This is a loosely typed function that will map to the strongly typed function inside of the command
|
void |
hasAccess(IContext context)
This checks whether the current user has rights to execute this type command at all.
|
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
init, shutdown
void hasAccess(IContext context) throws PortalException, PortalAccessException, BizException
handle(com.webmethods.portal.bizPolicy.IContext, com.webmethods.portal.bizPolicy.command.ICommandBean)
function, because
a user might have the rights to execute the update Command, but not have the rights to execute
the update Command on a resource that they don't own.context
- BizException
PortalException
PortalAccessException
ICommandBean createBean(IContext context, Map<String,?> properties) throws BizException
ICommandBean
BizException
Class<?> getReturnType()
Object handle(IContext context, ICommandBean commandBean) throws BizException
context
- commandBean
- BizException