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.AttachmentTargetDescriptionDataBean
AttachmentAssetDataBean
AttachmentAssetDataBean
for deleteAttachmentTargetAccessBean
AttachmentTargetDescriptionAccessBean
AttachmentAssetAccessBean
AttachmentAssetLanguageAccessBean
AttachmentTargetDescriptionDataBean
AttachmentAssetDataBean
UpdateAttachmentTarget
UpdateAttachmentAsset
DeleteAttachmentAsset
AttachmentHelper
AttachmentAssetHelper
AttachmentTargetHelper
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, 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 COPYRIGHT
public static final java.lang.String CLASSNAME
public java.lang.Long getAttachmentTargetId()
getAttachmentTargetId
in interface AttachmentUpdateCmd
public java.lang.Integer getStoreentId()
getStoreentId
in interface AttachmentUpdateCmd
public java.lang.Long getMemberId()
getMemberId
in interface AttachmentUpdateCmd
public java.lang.String getIdentifier()
getIdentifier
in interface AttachmentUpdateCmd
public java.lang.String getAttachmentUsageId()
getAttachmentUsageId
in interface AttachmentUpdateCmd
public java.lang.Long getField1()
getField1
in interface AttachmentUpdateCmd
public java.lang.Double getField2()
getField2
in interface AttachmentUpdateCmd
public java.lang.String getField3()
getField3
in interface AttachmentUpdateCmd
public java.lang.String getField4()
getField4
in interface AttachmentUpdateCmd
public java.util.Vector getAttachmentTargetDescriptions()
AttachmentTargetDescriptionDataBean
for update.getAttachmentTargetDescriptions
in interface AttachmentUpdateCmd
AttachmentTargetDescriptionDataBean
public java.util.Vector getAttachmentAssets()
AttachmentAssetDataBean
for update.getAttachmentAssets
in interface AttachmentUpdateCmd
AttachmentAssetDataBean
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void setAttachmentTargetId(java.lang.Long anAttachmentTargetId)
setAttachmentTargetId
in interface AttachmentUpdateCmd
anAttachmentTargetId
- The attachment target IDpublic void setStoreentId(java.lang.Integer anStoreentId)
setStoreentId
in interface AttachmentUpdateCmd
anStoreentId
- The store entity IDpublic void setMemberId(java.lang.Long anMemberId)
AttachmentAdd
.setMemberId
in interface AttachmentUpdateCmd
anMemberId
- The owner of the attachment targetpublic void setIdentifier(java.lang.String astrIdentifier)
setIdentifier
in interface AttachmentUpdateCmd
astrIdentifier
- The identifier of the attachment targetpublic void setAttachmentUsageId(java.lang.String astrAttachmentUsageId)
setAttachmentUsageId
in interface AttachmentUpdateCmd
astrAttachmentUsageId
- The attachment usage IDpublic void setField1(java.lang.Long anField1)
setField1
in interface AttachmentUpdateCmd
anField1
- The customizable field 1public void setField2(java.lang.Double adField2)
setField2
in interface AttachmentUpdateCmd
adField2
- The customizable field 2public void setField3(java.lang.String astrField3)
setField3
in interface AttachmentUpdateCmd
astrField3
- The customizable field 3public void setField4(java.lang.String astrField4)
setField4
in interface AttachmentUpdateCmd
astrField4
- 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 AttachmentUpdateCmd
avAttachmentAssetDataBeans
- The list of AttachmentAssetDataBean
public void setAttachmentAssetsForDelete(java.util.Vector avAttachmentAssetDataBeansForDelete)
AttachmentAssetDataBean
as the attachment assets to be deleted from the attachment target.setAttachmentAssetsForDelete
in interface AttachmentUpdateCmd
avAttachmentAssetDataBeansForDelete
- 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 AttachmentUpdateCmd
avAttachmentTargetDescriptionDataBeans
- The list of AttachmentTargetDescriptionDataBean
public void setURL(java.lang.String astrURL)
setURL
in interface AttachmentUpdateCmd
astrURL
- The redirect URLpublic void setCreateMissing(java.lang.Boolean aboolCreateMissing)
setCreateMissing
in interface AttachmentUpdateCmd
aboolCreateMissing
- The create missing flagpublic void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
reqParms
- The request propertiesECApplicationException
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
public java.lang.String[] getCatalogIdsForCacheInvalidations() throws ECException
ECException
public java.lang.String[] getCatentryIdsForCacheInvalidations() throws ECException
ECException
public java.lang.String[] getCatgroupIdsForCacheInvalidations() throws ECException
ECException
public java.lang.String[] getCollateralIdsForCacheInvalidations() throws ECException
ECException
public java.util.Collection getEMarketingSpotNamesForCacheInvalidations() throws ECException
ECException