public class AttachmentDeleteCmdImpl extends ControllerCommandImpl implements AttachmentDeleteCmd
AttachmentDeleteCmd
is a URL and controller command that:
AttachmentAssetDataBean
will be used for the delete command. This will
deletes the list of attachment assets from the attachment target. All the attachment assets languages related to the deleted assets will also be deleted.
The deleteAssetsOnly flag can be set to true by calling the method setDeleteAssetsOnly(true)
.
AttachmentAssetDataBean
for delete.
deleteAttachmentAsset
to delete the attachment asset.
If the attachment asset ID is still not found. A message will be put into the log and continue.
AttachmentTargetAccessBean
AttachmentTargetHelper
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
Define the CLASSNAME.
|
defaultCommandClassName
Constructor and Description |
---|
AttachmentDeleteCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getAttachmentTargetId()
Gets the attachment target ID.
|
java.lang.String |
getIdentifier()
Gets the identifier of the attachment target
|
java.lang.Long |
getMemberId()
Gets the owner of the attachment target.
|
java.lang.Integer |
getStoreentId()
Gets the store entity ID.
|
void |
performExecute()
Deletes the attachment relations related to the attachment target.
|
void |
reset()
Resets all the parameters
|
void |
setAttachmentAssetsForDelete(java.util.Vector avAttachmentAssetDataBeansForDelete)
Sets the vector of
AttachmentAssetDataBean as the attachment assets to be deleted from the attachment target. |
void |
setAttachmentTargetId(java.lang.Long anAttachmentTargetId)
Sets the attachment target ID for the attachment target to be deleted.
|
void |
setDeleteAssetsOnly(boolean abFlag)
Sets the flag to indicate that it will only deletes the assets indicated but not the target.
|
void |
setIdentifier(java.lang.String astrIdentifier)
Sets the identifier of the attachment target.
|
void |
setMemberId(java.lang.Long anMemberId)
Sets the owner ID of the attachment target.
|
void |
setRequestProperties(TypedProperty reqParms)
Sets the request properties.
|
void |
setStoreentId(java.lang.Integer anStoreentId)
Sets the store entity ID.
|
void |
setURL(java.lang.String astrURL)
Sets the redirect URL.
|
void |
validateParameters()
Validates the parameters.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String CLASSNAME
public java.lang.Long getAttachmentTargetId()
getAttachmentTargetId
in interface AttachmentDeleteCmd
public java.lang.Integer getStoreentId()
getStoreentId
in interface AttachmentDeleteCmd
public java.lang.Long getMemberId()
getMemberId
in interface AttachmentDeleteCmd
public java.lang.String getIdentifier()
getIdentifier
in interface AttachmentDeleteCmd
public void setAttachmentTargetId(java.lang.Long anAttachmentTargetId)
setAttachmentTargetId
in interface AttachmentDeleteCmd
anAttachmentTargetId
- The attachment target IDpublic void setStoreentId(java.lang.Integer anStoreentId)
setStoreentId
in interface AttachmentDeleteCmd
anStoreentId
- The store entity IDpublic void setAttachmentAssetsForDelete(java.util.Vector avAttachmentAssetDataBeansForDelete)
AttachmentAssetDataBean
as the attachment assets to be deleted from the attachment target.setAttachmentAssetsForDelete
in interface AttachmentDeleteCmd
avAttachmentAssetDataBeansForDelete
- The list of AttachmentAssetDataBean
as the attachment assets for delete.public void setDeleteAssetsOnly(boolean abFlag)
setDeleteAssetsOnly
in interface AttachmentDeleteCmd
abFlag
- the value of the flag.public void setURL(java.lang.String astrURL)
setURL
in interface AttachmentDeleteCmd
astrURL
- The redirect URLpublic void setIdentifier(java.lang.String astrIdentifier)
setIdentifier
in interface AttachmentDeleteCmd
astrIdentifier
- The attachment target identifierpublic void setMemberId(java.lang.Long anMemberId)
setMemberId
in interface AttachmentDeleteCmd
anMemberId
- The owner of the attachment targetpublic void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
reqParms
- The request propertiesECApplicationException
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException