com.ibm.commerce.collaboration.workspaces.commands
Class AccessSpaceCtrlCmdImpl
java.lang.Object
|
+--CacheableCommandImpl
|
+--com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.ControllerCommandImpl
|
+--com.ibm.commerce.tools.command.ToolsControllerCommandImpl
|
+--com.ibm.commerce.collaboration.workspaces.commands.AccessSpaceCtrlCmdImpl
- All Implemented Interfaces:
-
AccCommand,
AccessSpaceCtrlCmd,
ControllerCommand,
ECCommand,
ECTargetableCommand,
ToolsControllerCommand
- public class AccessSpaceCtrlCmdImpl
- extends
ToolsControllerCommandImpl
- implements
AccessSpaceCtrlCmd
Redirects the browser to the QuickPlace that is associated with a
collaborative workspace.
Behaviour
The command does the following:
- Creates an instance of the CollabManagerAccessBean.
- Gets the QuickPlace server host name (QPHost) from the access bean.
- Gets the QuickPlace server port number (QPPort) from the access bean.
- Gets the collaborative workspace ID (CollabSpaceId) from the
requestProperties object.
- Constructs the redirect URL as following:
http://QPHost:QPPort/CollabSpaceId
Redirects the browser to the constructed URL.
Exception Conditions
If the collaborative workspace ID parameter is missing, the command sets the
_ERR_MISSING_CMD_PARAMETER exception task to handle the error.
- See Also:
-
Serialized Form
Field Summary |
static java.lang.String |
COPYRIGHT
Copyright statement |
Method Summary |
java.lang.String |
getCollabSpaceId()
Gets the unique identifier associated with the collaborative
workspace. |
AccessVector |
getResources()
Gets the access control resources corresponding to the
command. |
void |
performExecute()
Contains the business logic for the command. |
void |
setCollabSpaceId(java.lang.String newCollabSpaceId)
Sets the collaborative workspace ID to a local variable. |
void |
setRequestProperties(
TypedProperty reqParms)
Gets the input parameters from the requestProperties object and sets
each parameter to a local variable. |
void |
validateParameters()
Validates that the syntax of the input parameters are
correct. |
Methods inherited from class
com.ibm.commerce.command.
ControllerCommandImpl |
checkPermission,
fulfills,
getForUserId,
getGeneric,
getOwner,
getRequestProperties,
getResolvedRequestProperties,
getResourceOwners,
getResponseProperties,
getRetriable,
isGeneric,
isRetriable,
mergeProperties,
setForUserId,
setGeneric,
setOwner,
setResponseProperties,
setRetriable,
setViewInputProperties |
Methods inherited from class
com.ibm.commerce.command.
AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
reset,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Methods inherited from interface
com.ibm.commerce.command.
ControllerCommand |
checkPermission,
execute,
getGeneric,
getRequestProperties,
getResolvedRequestProperties,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setGeneric,
setRetriable,
setViewInputProperties |
Methods inherited from interface
com.ibm.commerce.command.
ECCommand |
checkIsAllowed,
checkResourcePermission,
createCommandExecutionEvent,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- Copyright statement
- See Also:
-
Constant Field Values
AccessSpaceCtrlCmdImpl
public AccessSpaceCtrlCmdImpl()
getCollabSpaceId
public java.lang.String getCollabSpaceId()
- Gets the unique identifier associated with the collaborative workspace.
-
- Returns:
- The collaborative workspace ID.
getResources
public AccessVector getResources()
throws ECException
- Gets the access control resources corresponding to the command.
-
- Specified by:
-
getResources
in interface
ECCommand
- Overrides:
-
getResources
in class
AbstractECTargetableCommand
-
- Returns:
- The access vector associated with the command.
- Throws:
-
ECException
- If the access control resources cannot be retrieved.
public void performExecute()
throws ECException
- Contains the business logic for the command.
-
- Specified by:
-
performExecute
in interface
ECCommand
- Overrides:
-
performExecute
in class
AbstractECTargetableCommand
-
- Throws:
Exceptions
- thrown by WebSphereCommerce server
-
ECException
setCollabSpaceId
public void setCollabSpaceId(java.lang.String newCollabSpaceId)
- Sets the collaborative workspace ID to a local variable.
-
- Parameters:
newCollabSpaceId
- The unique identifier of the collaborative
workspace.
setRequestProperties
public void setRequestProperties(TypedProperty reqParms)
throws ECApplicationException
- Gets the input parameters from the requestProperties object and sets each
parameter to a local variable.
-
- Specified by:
-
setRequestProperties
in interface
ControllerCommand
- Overrides:
-
setRequestProperties
in class
ToolsControllerCommandImpl
-
- Parameters:
reqParms
- The input parameters that are received by the
command.
- Throws:
-
ECApplicationException
- If the collaborative workspace ID is
missing.
validateParameters
public void validateParameters()
throws ECException
- Validates that the syntax of the input parameters are correct.
-
- Specified by:
-
validateParameters
in interface
ECCommand
- Overrides:
-
validateParameters
in class
AbstractECTargetableCommand
-
- Throws:
Exceptions
- thrown by WebSphereCommerce server
-
ECException