public class CatalogAttachmentUpdateCmdImpl extends AttachmentRelationBaseUpdateCmdImpl implements CatalogAttachmentUpdateCmd
CatalogAttachmentUpdateCmd is a URL and controller command that:
If the attachment relation ID is specified, then the attachment relation will be updated.
If the command is called as URL. Only one description can be created or updated. Otherwise, multiple descriptions can be updated by setting the vector of
AttachmentRelationDescriptionDataBean.
When updating the attachment relation, the command will change the parameters set by the command. However, the behaviour in updating the attachment relation description is different. Its behaviour will depend on whether the command was called as a URL or as a command.
AttachmentRelationDescriptionDataBean, the attachment relation ID from the databean will not be used. The
attachment relation ID will be obtained from the command itself. Either user specified the attachment relation ID or it is obtained from the attachment relation
just created by the command. Make sure that all the name, short description, and long description are set in the databean even if they are not changed.
The command will take these name and descriptions as they are and update the attachment relation description.By default, the option to create the missing attachment relation and its description is set to True. If the option is set to false but the attachment relation is not found, an exception will be thrown. An exception will also be thrown if any of the attachment relation descriptions are not found. Parameters:
AttachmentRelationDescriptionDataBeanCatalogAccessBeanAttachmentRelationAccessBeanAttachmentRelationDescriptionAccessBeanAttachmentRelationDescriptionDataBeanAddAttachmentRelationCmdUpdateAttachmentRelationCmd| 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 |
|---|
CatalogAttachmentUpdateCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
getCatalogId()
Gets the Catalog ID.
|
java.lang.String |
getCatalogIdentifier()
Gets the external catalog identifier.
|
AccessVector |
getResources()
Gets the access vector accessed by this command.
|
void |
performExecute()
Calls the super class to do the work.
|
void |
reset()
Resets the variables used.
|
void |
setCatalogId(java.lang.Long anCatalogId)
Sets the Catalog ID.
|
void |
setCatalogIdentifier(java.lang.String astrCatalogIdentifier)
Sets the external identifier of the catalog.
|
void |
setRequestProperties(TypedProperty reqParms)
Sets the request properties.
|
void |
validateParameters()
Validate the parameters.
|
getAttachmentObjectId, getAttachmentObjectTypeId, getAttachmentRelationDescriptions, getAttachmentRelationId, getAttachmentRelationUsageId, getAttachmentTargetId, getSequence, getURL, setAttachmentObjectId, setAttachmentObjectTypeId, setAttachmentRelationDescriptions, setAttachmentRelationId, setAttachmentRelationUsageId, setAttachmentTargetId, setCreateMissing, setSequence, setURLcheckPermission, 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, 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, waitgetAttachmentObjectId, getAttachmentRelationDescriptions, getAttachmentRelationId, getAttachmentRelationUsageId, getAttachmentTargetId, getSequence, getURL, setAttachmentObjectId, setAttachmentRelationDescriptions, setAttachmentRelationId, setAttachmentRelationUsageId, setAttachmentTargetId, setCreateMissing, setSequence, setURLcheckPermission, 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, 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 getCatalogId()
getCatalogId in interface CatalogAttachmentUpdateCmdpublic java.lang.String getCatalogIdentifier()
getCatalogIdentifier in interface CatalogAttachmentUpdateCmdpublic AccessVector getResources() throws ECException
CatalogAccessBean.
which is the owner of the attachment relation.getResources in interface ECCommandgetResources in class AbstractECTargetableCommandCatalogAccessBean.ECExceptionpublic void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AttachmentRelationBaseUpdateCmdImplECExceptionpublic void reset()
reset in interface com.ibm.websphere.command.Commandreset in class AttachmentRelationBaseUpdateCmdImplpublic void setCatalogId(java.lang.Long anCatalogId)
setCatalogId in interface CatalogAttachmentUpdateCmdanCatalogId - The Catalog IDpublic void setCatalogIdentifier(java.lang.String astrCatalogIdentifier)
setCatalogIdentifier in interface CatalogAttachmentUpdateCmdastrCatalogIdentifier - The external identifier of the Catalogpublic void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
setRequestProperties in interface ControllerCommandsetRequestProperties in class AttachmentRelationBaseUpdateCmdImplreqParms - The request propertiesECApplicationExceptionpublic void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECException