com.ibm.commerce.accesscontrol.policyeditor.commands
Class ResGrpImplicitAddTaskCmdImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.accesscontrol.policyeditor.commands.ResGrpImplicitAddTaskCmdImpl
All Implemented Interfaces:
ECCommand, ResGrpImplicitAddTaskCmd, TaskCommand

public class ResGrpImplicitAddTaskCmdImpl
extends TaskCommandImpl
implements ResGrpImplicitAddTaskCmd

Adds a new implicit Resource Group to the datasource. This task command uses the ResourceGroupAccessBean access bean to create a new resource group in the datasource. It then sets the conditions object for the new resource group . Next, if a description has been provided, the command enters the description of the newly created implicit resource group using the ResGrpDescAccessBean access bean.


Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.accesscontrol.policyeditor.commands.ResGrpImplicitAddTaskCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Constructor Summary
ResGrpImplicitAddTaskCmdImpl()
           
 
Method Summary
 java.lang.String getConditions()
          Gets the conditions of the resource group.
 java.lang.String getDescription()
          Gets the description of the resource group.
 java.lang.String getResGrpDisplayName()
          Gets the display name of the resource group.
 java.lang.String getResGrpName()
          Gets the name of the resource group
 java.lang.String getResultMsg()
          Gets the message to be returned to the caller.
 void performExecute()
          Adds the resource group to the datasource.
 void setConditions(java.lang.String conditions)
          Sets the conditions object
 void setDescription(java.lang.String description)
          Sets the description of the resource group
 void setResGrpDisplayName(java.lang.String resGrpDisplayName)
          Sets the display name of the resource group
 void setResGrpName(java.lang.String resGrpName)
          Sets the name of the resource group
 void setResultMsg(java.lang.String resultMsg)
          Sets the message to be returned to the caller.
 
Methods inherited from class com.ibm.commerce.command.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
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.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 

Constructor Detail

ResGrpImplicitAddTaskCmdImpl

public ResGrpImplicitAddTaskCmdImpl()
Method Detail

getConditions

public java.lang.String getConditions()
Gets the conditions of the resource group.
Specified by:
getConditions in interface ResGrpImplicitAddTaskCmd
Returns:
The conditions object

getDescription

public java.lang.String getDescription()
Gets the description of the resource group.
Specified by:
getDescription in interface ResGrpImplicitAddTaskCmd
Returns:
The description of the resource group

getResGrpDisplayName

public java.lang.String getResGrpDisplayName()
Gets the display name of the resource group.
Specified by:
getResGrpDisplayName in interface ResGrpImplicitAddTaskCmd
Returns:
The display name of the resource group

getResGrpName

public java.lang.String getResGrpName()
Gets the name of the resource group
Specified by:
getResGrpName in interface ResGrpImplicitAddTaskCmd
Returns:
the name of the resource group

getResultMsg

public java.lang.String getResultMsg()
Gets the message to be returned to the caller.
Specified by:
getResultMsg in interface ResGrpImplicitAddTaskCmd
Returns:
Message that is returned to the caller upon completion of the command

performExecute

public void performExecute()
                    throws ECException
Adds the resource group to the datasource.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECCommand
Throws:
ECException - If an error is encountered while updating the datasource

setConditions

public void setConditions(java.lang.String conditions)
Sets the conditions object
Specified by:
setConditions in interface ResGrpImplicitAddTaskCmd
Parameters:
conditions - The conditions object

setDescription

public void setDescription(java.lang.String description)
Sets the description of the resource group
Specified by:
setDescription in interface ResGrpImplicitAddTaskCmd
Parameters:
The - description of the resource group

setResGrpDisplayName

public void setResGrpDisplayName(java.lang.String resGrpDisplayName)
Sets the display name of the resource group
Specified by:
setResGrpDisplayName in interface ResGrpImplicitAddTaskCmd
Parameters:
resGrpDisplayName - The display name of the resource group

setResGrpName

public void setResGrpName(java.lang.String resGrpName)
Sets the name of the resource group
Specified by:
setResGrpName in interface ResGrpImplicitAddTaskCmd
Parameters:
resGrpName - The name of the resource group

setResultMsg

public void setResultMsg(java.lang.String resultMsg)
Sets the message to be returned to the caller.
Specified by:
setResultMsg in interface ResGrpImplicitAddTaskCmd
Parameters:
resultMsg - Message that is returned to the caller upon completion of the command