java.lang.ObjectCacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.ControllerCommandImpl
com.ibm.commerce.tools.command.ToolsControllerCommandImpl
com.ibm.commerce.collaboration.workspaces.commands.CreateSpaceCtrlCmdImpl
Creates a new collaborative workspace. The QuickPlace associated with the collaborative workspace will be created on the QuickPlace server, and the corresponding LDAP entries will be created in the LDAP directory.
Behaviour
The command does the following:
Exception Conditions
If the collaborative workspace name or template name parameters are missing, the command sets the _ERR_MISSING_CMD_PARAMETER exception task to handle the error.
If the collaborative workspace cannot be created due to an LDAP error, the command sets the EC_ERROR_LDAP_DOWN exception task to handle the error.
If the collaborative workspace cannot be created due to a QuickPlace server error, the command sets the EC_ERROR_QP_DOWN exception task to handle the error.
Field Summary | |
static java.lang.String | COPYRIGHT Copyright statement |
Fields inherited from class com.ibm.commerce.command.ControllerCommandImpl |
requestProperties, responseProperties, retriable, viewReqProperties |
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.collaboration.workspaces.commands.CreateSpaceCtrlCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
CreateSpaceCtrlCmdImpl() |
Method Summary | |
protected int | generateANumber() Generates a random string of numbers. |
protected java.lang.String | generateCollabWorkspaceId() Generates a unique collaborative workspace ID based on the date of creation and a random string of numbers. |
java.lang.String | getAccountId() Gets the unique identifier of the account associated with the collaborative workspace. |
java.lang.String | getCollabSpaceDescription() Gets the description of the collaborative workspace. |
java.lang.String | getCollabSpaceName() Gets the name of the collaborative workspace. |
java.lang.String | getProcessId() Gets the unique identifier of the process associated with the collaborative workspace. |
java.lang.String | getProcessType() Gets the process type of the collaborative workspace. |
AccessVector | getResources() Gets the access control resources corresponding to the command. |
java.lang.String | getTemplateName() Gets the name of the QuickPlace template that will be used to create the collaborative workspace. |
void | performExecute() Contains the business logic for the command. |
void | setAccountId(java.lang.String newAccountId) Sets the unique identifier of the account associated with the collaborative workspace to a local variable. |
void | setCollabSpaceDescription(java.lang.String newCollabSpaceDescription) Sets the description of the collaborative workspace to a local variable. |
void | setCollabSpaceName(java.lang.String newCollabSpaceName) Sets the name of the collaborative workspace to a local variable. |
void | setProcessId(java.lang.String newProcessId) Sets the unique identifier of the process associated with the collaborative workspace to a local variable. |
void | setProcessType(java.lang.String newProcessType) Sets the process type associated with the collaborative workspace ID. |
void | setRequestProperties(TypedProperty reqParms) Gets the input parameters from the requestProperties object and sets each parameter to a local variable. |
void | setTemplateName(java.lang.String newTemplateName) Sets the name of the QuickPlace template that will be used to create the collaborative workspace. |
void | validateParameters() Validates that the syntax of the input parameters are correct. |
Methods inherited from class com.ibm.commerce.tools.command.ToolsControllerCommandImpl |
getViewInputProperties |
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.AccCommand |
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
public static final java.lang.String COPYRIGHT
Constructor Detail |
public CreateSpaceCtrlCmdImpl()
Method Detail |
protected int generateANumber()
protected java.lang.String generateCollabWorkspaceId()
public java.lang.String getAccountId()
public java.lang.String getCollabSpaceDescription()
public java.lang.String getCollabSpaceName()
public java.lang.String getProcessId()
public java.lang.String getProcessType()
public AccessVector getResources() throws ECException
public java.lang.String getTemplateName()
public void performExecute() throws ECException
public void setAccountId(java.lang.String newAccountId)
public void setCollabSpaceDescription(java.lang.String newCollabSpaceDescription)
public void setCollabSpaceName(java.lang.String newCollabSpaceName)
public void setProcessId(java.lang.String newProcessId)
public void setProcessType(java.lang.String newProcessType)
public void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
public void setTemplateName(java.lang.String newTemplateName)
public void validateParameters() throws ECException
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.