|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Deletes an individual policy from the datasource.
This command accepts the id of the policy to be deleted
along with the orgId
of the selected organization.
It then checks to see whether the user is a Site Admin
or a Store Admin and if the policy being deleted is a
default policy. Depending upon the registration type of
the user logged in and the type of the policy one of the following
four scenarios is handled:
ACORGPOL
exclusion table which excludes the store from this default
Field Summary | |
static java.lang.String |
COPYRIGHT
copyright notice |
static java.lang.String |
defaultCommandClassName
name of the default implementation of this command |
static java.lang.String |
NAME
name of this command |
Method Summary | |
java.lang.Long |
getOwnerId()
Gets the owner Id of the policy owner |
int |
getPolicyId()
Gets the policy id. |
java.lang.String |
getResultMsg()
Gets the message to be returned to the caller. |
void |
setOwnerId(java.lang.Long ownerId)
Sets the owner Id of the policy owner |
void |
setPolicyId(int policyId)
Sets the policy id. |
void |
setResultMsg(java.lang.String resultMsg)
Sets the message to be returned to the caller. |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
Field Detail |
public static final java.lang.String COPYRIGHT
public static final java.lang.String defaultCommandClassName
public static final java.lang.String NAME
Method Detail |
public java.lang.Long getOwnerId()
public int getPolicyId()
public java.lang.String getResultMsg()
public void setOwnerId(java.lang.Long ownerId)
ownerId
- the owner Id of the policy ownerpublic void setPolicyId(int policyId)
policyId
- The id of the policy to be deletedpublic void setResultMsg(java.lang.String resultMsg)
resultMsg
- Message that is returned to the caller
upon completion of the command
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |