public class CatalogEntryAttachmentUpdateCmdImpl extends AttachmentRelationBaseUpdateCmdImpl implements CatalogEntryAttachmentUpdateCmd
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 behavior in updating the attachment relation description is different. Its behavior will depend on whether the command was called as a URL or as a command.
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:
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASSNAME
Define the CLASSNAME.
|
static java.lang.String | COPYRIGHT
The internal copyright field.
|
Constructor and Description |
---|
CatalogEntryAttachmentUpdateCmdImpl() |
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.
|
protected void | preSetParameters()
Sets some of the parameters that have not been set by the caller.
|
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.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public java.lang.Long getCatentryId()
public java.lang.String getPartNumber()
public AccessVector getResources() throws ECException
public void performExecute() throws ECException
protected void preSetParameters() throws ECException
public void reset()
public void setCatentryId(java.lang.Long anCatalogEntryId)
public void setPartnumber(java.lang.String astrPartnumber)
public void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
public void validateParameters() throws ECException