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

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

public class ResGrpImplicitUpdateTaskCmdImpl
extends TaskCommandImpl
implements ResGrpImplicitUpdateTaskCmd

Updates an implicit resource group. This task command uses the ResourceGroupAccessBean access bean to set the modified name of the resource group as well as the modified conditions object. It then updates the description of the 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.ResGrpImplicitUpdateTaskCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Constructor Summary
ResGrpImplicitUpdateTaskCmdImpl()
           
 
Method Summary
 java.lang.String getConditions()
          Gets the conditions of the resource group.
 java.lang.String getDescription()
          Gets the description of the resource group.
 boolean getIsUpdatable()
          Gets the value of isUpdatable.
 java.lang.String getResGrpDisplayName()
          Gets the display name of the resource group.
 java.lang.Integer getResGrpId()
          Gets the resource group Id
 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()
          Updates the resource group in 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 setIsUpdatable(boolean isUpdatable)
          Sets the value of isUpdatable.
 void setResGrpDisplayName(java.lang.String resGrpDisplayName)
          Sets the display name of the resource group
 void setResGrpId(java.lang.Integer resGrpId)
          Sets the resource group Id
 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

ResGrpImplicitUpdateTaskCmdImpl

public ResGrpImplicitUpdateTaskCmdImpl()
Method Detail

getConditions

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

getDescription

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

getIsUpdatable

public boolean getIsUpdatable()
Gets the value of isUpdatable.
Specified by:
getIsUpdatable in interface ResGrpImplicitUpdateTaskCmd
Returns:
isUpdatable

getResGrpDisplayName

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

getResGrpId

public java.lang.Integer getResGrpId()
Gets the resource group Id
Specified by:
getResGrpId in interface ResGrpImplicitUpdateTaskCmd
Returns:
The resource group Id

getResGrpName

public java.lang.String getResGrpName()
Gets the name of the resource group
Specified by:
getResGrpName in interface ResGrpImplicitUpdateTaskCmd
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 ResGrpImplicitUpdateTaskCmd
Returns:
Message that is returned to the caller upon completion of the command

performExecute

public void performExecute()
                    throws ECException
Updates the resource group in 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 ResGrpImplicitUpdateTaskCmd
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 ResGrpImplicitUpdateTaskCmd
Parameters:
The - description of the resource group

setIsUpdatable

public void setIsUpdatable(boolean isUpdatable)
Sets the value of isUpdatable.
Specified by:
setIsUpdatable in interface ResGrpImplicitUpdateTaskCmd
Parameters:
isUpdatable -  

setResGrpDisplayName

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

setResGrpId

public void setResGrpId(java.lang.Integer resGrpId)
Sets the resource group Id
Specified by:
setResGrpId in interface ResGrpImplicitUpdateTaskCmd
Parameters:
The - resource group Id

setResGrpName

public void setResGrpName(java.lang.String resGrpName)
Sets the name of the resource group
Specified by:
setResGrpName in interface ResGrpImplicitUpdateTaskCmd
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 ResGrpImplicitUpdateTaskCmd
Parameters:
resultMsg - Message that is returned to the caller upon completion of the command