public class CatalogEntryAttachmentAddCmdImpl extends AttachmentRelationBaseAddCmdImpl implements CatalogEntryAttachmentAddCmd
CatalogEntryAttachmentAddCmd is a URL and controller command that:
If the attachment relation ID is specified, then only attachment relation description will be created.
If the command is called as URL. Only one description can be created. Otherwise, multiple descriptions can be created by setting the vector of
AttachmentRelationDescriptionDataBean.
When creating the vector of 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.
Parameters:
AttachmentRelationDescriptionDataBeanCatalogEntryAccessBeanAttachmentRelationAccessBeanAttachmentRelationDescriptionAccessBeanAttachmentRelationDescriptionDataBeanAddAttachmentRelationCmd| 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 |
|---|
CatalogEntryAttachmentAddCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
getCatentryId()
Gets the Catalog Entry ID.
|
java.lang.String |
getPartNumber()
Gets the part number.
|
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 |
setCatentryId(java.lang.Long anCatalogEntryId)
Sets the Catalog Entry ID.
|
void |
setPartnumber(java.lang.String astrPartnumber)
Sets the part number of the catalog entry.
|
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, 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, 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 getCatentryId()
getCatentryId in interface CatalogEntryAttachmentAddCmdpublic java.lang.String getPartNumber()
getPartNumber in interface CatalogEntryAttachmentAddCmdpublic AccessVector getResources() throws ECException
CatalogEntryAccessBean.
which is the owner of the attachment relation.getResources in interface ECCommandgetResources in class AbstractECTargetableCommandCatalogEntryAccessBean.ECExceptionpublic void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AttachmentRelationBaseAddCmdImplECExceptionpublic void reset()
reset in interface com.ibm.websphere.command.Commandreset in class AttachmentRelationBaseAddCmdImplpublic void setCatentryId(java.lang.Long anCatalogEntryId)
setCatentryId in interface CatalogEntryAttachmentAddCmdanCatalogEntryId - The Catalog Entry IDpublic void setPartnumber(java.lang.String astrPartnumber)
setPartnumber in interface CatalogEntryAttachmentAddCmdastrPartnumber - The part number of the Catalog Entrypublic void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
setRequestProperties in interface ControllerCommandsetRequestProperties in class AttachmentRelationBaseAddCmdImplreqParms - The request propertiesECApplicationExceptionpublic void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECException