com.ibm.commerce.collaboration.workspaces.commands
Interface CreateSpaceCtrlCmd

All Superinterfaces:
AccCommand, ControllerCommand, ECCommand, Protectable, ToolsControllerCommand
All Known Implementing Classes:
CreateSpaceCtrlCmdImpl

public interface CreateSpaceCtrlCmd
extends ToolsControllerCommand

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:

  1. Generates a unique collaborative workspace Id based on the date of creation and a string of random numbers.
  2. Gets the DN (distinguished name) of the user requesting the new collaborative workspace.
  3. Creates an instance of the CollabManagerAccessBean.
  4. Creates an instance of the CollabSpaceBean.
  5. Sets the CollabSpaceBean with the following fields: Creator DN, collaborative workspace Id, collaborative workspace name, collaborative workspace description, process Id, process Type, template name, and account Id.
  6. Calls the createCollabSpace method in the access bean to create a new collaborative workspace.
  7. If the collaborative workspace is created successfully, the command returns the URL associated with the new QuickPlace in the responseProperties object.

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
          The internal copyright field.
static java.lang.String defaultCommandClassName
          The default implementation class is "com.ibm.commerce.collaboration.workspaces.commands.CreateSpaceCtrlCmdImpl"
static java.lang.String NAME
          The name of this interface is "com.ibm.commerce.collaboration.workspaces.commands.CreateSpaceCtrlCmd".
 
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
 
Methods inherited from interface com.ibm.commerce.command.AccCommand
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
The internal copyright field.

defaultCommandClassName

public static final java.lang.String defaultCommandClassName
The default implementation class is "com.ibm.commerce.collaboration.workspaces.commands.CreateSpaceCtrlCmdImpl"

NAME

public static final java.lang.String NAME
The name of this interface is "com.ibm.commerce.collaboration.workspaces.commands.CreateSpaceCtrlCmd".