public class AttachmentUpdateCmdImpl extends ControllerCommandImpl implements AttachmentUpdateCmd
AttachmentUpdateCmd is a URL and controller command that:
AttachmentTargetDescriptionDataBean will be used to update multiple attachment target descriptions.AttachmentAssetDataBean for delete will be used to delete the list of attachment assets from the attachment target.AttachmentAssetDataBean will be used to update multiple assets and all the asset languages.AttachmentAssetDataBean is not null, thenAttachmentAssetDataBean will be used to recreate the attachment asset languages. This means that
the list must contain ALL the languages supported by the attachment asset.AttachmentAssetDataBean is set, then it will be written to the Managed File.AttachmentTargetDescriptionDataBeanAttachmentAssetDataBeanAttachmentAssetDataBean for deleteAttachmentTargetAccessBeanAttachmentTargetDescriptionAccessBeanAttachmentAssetAccessBeanAttachmentAssetLanguageAccessBeanAttachmentTargetDescriptionDataBeanAttachmentAssetDataBeanUpdateAttachmentTargetUpdateAttachmentAssetDeleteAttachmentAssetAttachmentHelperAttachmentAssetHelperAttachmentTargetHelper| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASSNAME
Define the CLASSNAME.
|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
defaultCommandClassName| Constructor and Description |
|---|
AttachmentUpdateCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Vector |
getAttachmentAssets()
Gets the vector of
AttachmentAssetDataBean for update. |
java.util.Vector |
getAttachmentTargetDescriptions()
Gets the vector of
AttachmentTargetDescriptionDataBean for update. |
java.lang.Long |
getAttachmentTargetId()
Gets the attachment target ID.
|
java.lang.String |
getAttachmentUsageId()
Gets the attachment usage ID of the attachment target.
|
java.lang.String[] |
getCatalogIdsForCacheInvalidations()
Gets the list of catalog IDs for cache invalidations.
|
java.lang.String[] |
getCatentryIdsForCacheInvalidations()
Gets the list of catalog entry IDs for cache invalidations.
|
java.lang.String[] |
getCatgroupIdsForCacheInvalidations()
Gets the list of catalog group IDs for cache invalidations.
|
java.lang.String[] |
getCollateralIdsForCacheInvalidations()
Gets the list of collateral IDs for cache invalidations.
|
java.util.Collection |
getEMarketingSpotNamesForCacheInvalidations()
Gets the list of e-Marketing Spot names for cache invalidations.
|
java.lang.Long |
getField1()
Gets the customizable field 1 in the attachment target.
|
java.lang.Double |
getField2()
Gets the customizable field 2 in the attachment target.
|
java.lang.String |
getField3()
Gets the customizable field 3 in the attachment target.
|
java.lang.String |
getField4()
Gets the customizable field 4 in the attachment target.
|
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 that owns the attachment target.
|
void |
performExecute()
Updates the attachment target.
Updates the attachment target descriptions.
Delete the set of unwanted attachment assets.
Updates all the attachment asset of the attachment target if the store entity ID is changed.
Updates the attachment assets and languages.
|
void |
reset()
Resets the variables used.
|
void |
setAttachmentAssets(java.util.Vector avAttachmentAssetDataBeans)
Sets the vector of
AttachmentAssetDataBean as the attachment assets to be updated for the attachment target. |
void |
setAttachmentAssetsForDelete(java.util.Vector avAttachmentAssetDataBeansForDelete)
Sets the vector of
AttachmentAssetDataBean as the attachment assets to be deleted from the attachment target. |
void |
setAttachmentTargetDescriptions(java.util.Vector avAttachmentTargetDescriptionDataBeans)
Sets the vector of
AttachmentTargetDescriptionDataBean as the description to be updated for the attachment target. |
void |
setAttachmentTargetId(java.lang.Long anAttachmentTargetId)
Sets the attachment target ID.
|
void |
setAttachmentUsageId(java.lang.String astrAttachmentUsageId)
Sets the attachment usage ID used in the attachment target.
|
void |
setCreateMissing(java.lang.Boolean aboolCreateMissing)
Sets the option to the create missing attachment target, target descriptions, and assets.
|
void |
setField1(java.lang.Long anField1)
Sets the customizable field 1 of the attachment target.
|
void |
setField2(java.lang.Double adField2)
Sets the customizable field 2 of the attachment target.
|
void |
setField3(java.lang.String astrField3)
Sets the customizable field 3 of the attachment target.
|
void |
setField4(java.lang.String astrField4)
Sets the customizable field 4 of the attachment 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 to retrieve an existing attachment.
|
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()
Validate the parameters.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiesaccessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwnercheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesfulfills, getOwnerpublic static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public java.lang.Long getAttachmentTargetId()
getAttachmentTargetId in interface AttachmentUpdateCmdpublic java.lang.Integer getStoreentId()
getStoreentId in interface AttachmentUpdateCmdpublic java.lang.Long getMemberId()
getMemberId in interface AttachmentUpdateCmdpublic java.lang.String getIdentifier()
getIdentifier in interface AttachmentUpdateCmdpublic java.lang.String getAttachmentUsageId()
getAttachmentUsageId in interface AttachmentUpdateCmdpublic java.lang.Long getField1()
getField1 in interface AttachmentUpdateCmdpublic java.lang.Double getField2()
getField2 in interface AttachmentUpdateCmdpublic java.lang.String getField3()
getField3 in interface AttachmentUpdateCmdpublic java.lang.String getField4()
getField4 in interface AttachmentUpdateCmdpublic java.util.Vector getAttachmentTargetDescriptions()
AttachmentTargetDescriptionDataBean for update.getAttachmentTargetDescriptions in interface AttachmentUpdateCmdAttachmentTargetDescriptionDataBeanpublic java.util.Vector getAttachmentAssets()
AttachmentAssetDataBean for update.getAttachmentAssets in interface AttachmentUpdateCmdAttachmentAssetDataBeanpublic void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECExceptionpublic void reset()
reset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommandpublic void setAttachmentTargetId(java.lang.Long anAttachmentTargetId)
setAttachmentTargetId in interface AttachmentUpdateCmdanAttachmentTargetId - The attachment target IDpublic void setStoreentId(java.lang.Integer anStoreentId)
setStoreentId in interface AttachmentUpdateCmdanStoreentId - The store entity IDpublic void setMemberId(java.lang.Long anMemberId)
AttachmentAdd.setMemberId in interface AttachmentUpdateCmdanMemberId - The owner of the attachment targetpublic void setIdentifier(java.lang.String astrIdentifier)
setIdentifier in interface AttachmentUpdateCmdastrIdentifier - The identifier of the attachment targetpublic void setAttachmentUsageId(java.lang.String astrAttachmentUsageId)
setAttachmentUsageId in interface AttachmentUpdateCmdastrAttachmentUsageId - The attachment usage IDpublic void setField1(java.lang.Long anField1)
setField1 in interface AttachmentUpdateCmdanField1 - The customizable field 1public void setField2(java.lang.Double adField2)
setField2 in interface AttachmentUpdateCmdadField2 - The customizable field 2public void setField3(java.lang.String astrField3)
setField3 in interface AttachmentUpdateCmdastrField3 - The customizable field 3public void setField4(java.lang.String astrField4)
setField4 in interface AttachmentUpdateCmdastrField4 - The customizable field 4public void setAttachmentAssets(java.util.Vector avAttachmentAssetDataBeans)
AttachmentAssetDataBean as the attachment assets to be updated for the attachment target.setAttachmentAssets in interface AttachmentUpdateCmdavAttachmentAssetDataBeans - The list of AttachmentAssetDataBeanpublic void setAttachmentAssetsForDelete(java.util.Vector avAttachmentAssetDataBeansForDelete)
AttachmentAssetDataBean as the attachment assets to be deleted from the attachment target.setAttachmentAssetsForDelete in interface AttachmentUpdateCmdavAttachmentAssetDataBeansForDelete - The list of AttachmentAssetDataBean as the attachment assets for delete.public void setAttachmentTargetDescriptions(java.util.Vector avAttachmentTargetDescriptionDataBeans)
AttachmentTargetDescriptionDataBean as the description to be updated for the attachment target.setAttachmentTargetDescriptions in interface AttachmentUpdateCmdavAttachmentTargetDescriptionDataBeans - The list of AttachmentTargetDescriptionDataBeanpublic void setURL(java.lang.String astrURL)
setURL in interface AttachmentUpdateCmdastrURL - The redirect URLpublic void setCreateMissing(java.lang.Boolean aboolCreateMissing)
setCreateMissing in interface AttachmentUpdateCmdaboolCreateMissing - The create missing flagpublic void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
setRequestProperties in interface ControllerCommandsetRequestProperties in class ControllerCommandImplreqParms - The request propertiesECApplicationExceptionpublic void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECExceptionpublic java.lang.String[] getCatalogIdsForCacheInvalidations()
throws ECException
ECExceptionpublic java.lang.String[] getCatentryIdsForCacheInvalidations()
throws ECException
ECExceptionpublic java.lang.String[] getCatgroupIdsForCacheInvalidations()
throws ECException
ECExceptionpublic java.lang.String[] getCollateralIdsForCacheInvalidations()
throws ECException
ECExceptionpublic java.util.Collection getEMarketingSpotNamesForCacheInvalidations()
throws ECException
ECException