public interface AttachmentRelationBaseUpdateCmd extends ControllerCommand
AttachmentRelationBaseUpdate
command.
The AttachmentRelationBaseUpdate
updates an attachment relationship between and attachment target
and a Commerce business object; together with its attachment relation descriptions. This
command must be extended from a controller command from the Commerce business object, for example,
the CatalogEntryAttachmentUpdate
command.
The create missing option is used to determine if an attachment relation description being updated does not exists,
should it be created or not. By default, it is set to true to create missing descriptions.
Setting the attachment relation description requires setting a vector of AttachmentRelationDescriptionDataBeans.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
Define the CLASSNAME.
|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
defaultCommandClassName
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getAttachmentObjectId()
Gets the ID of the business object for which this relationship is defined.
|
java.util.Vector |
getAttachmentRelationDescriptions()
Gets the vector of
AttachmentRelationDescriptionDataBean |
java.lang.Long |
getAttachmentRelationId()
Gets the attachment relation ID for the business object.
|
java.lang.Integer |
getAttachmentRelationUsageId()
Gets the attachment relation usage ID in the attachment relation.
|
java.lang.Long |
getAttachmentTargetId()
Gets the attachment target ID in the attachment relation.
|
java.lang.Double |
getSequence()
Gets the sequence used in the attachment relation.
|
java.lang.String |
getURL()
Gets the redirect URL.
|
void |
setAttachmentObjectId(java.lang.Long anObjectId)
Sets the ID of the business object for which this relation is defined.
|
void |
setAttachmentRelationDescriptions(java.util.Vector avAttachmentRelationDescriptionDataBeans)
Sets the vector of
AttachmentRelationDescriptionDataBean to be created as the description for the attachment relation. |
void |
setAttachmentRelationId(java.lang.Long anAttachmentRelationId)
Sets the attachment relation ID.
|
void |
setAttachmentRelationUsageId(java.lang.Integer anAttachmentRelationUsageId)
Sets the attachment relation usage ID.
|
void |
setAttachmentTargetId(java.lang.Long anAttachmentTargetId)
Sets the attachment target ID.
|
void |
setCreateMissing(java.lang.Boolean aboolCreateMissing)
Sets the option the create missing attachment relation and attachment relation descriptions.
|
void |
setSequence(java.lang.Double adSequence)
Sets the sequence in the attachment relation.
|
void |
setURL(java.lang.String astrURL)
Sets the redirect URL.
|
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, 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, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
fulfills, getOwner
static final java.lang.String COPYRIGHT
static final java.lang.String CLASSNAME
java.lang.Long getAttachmentObjectId()
java.lang.Long getAttachmentRelationId()
java.lang.Long getAttachmentTargetId()
java.lang.Integer getAttachmentRelationUsageId()
java.lang.Double getSequence()
java.util.Vector getAttachmentRelationDescriptions()
AttachmentRelationDescriptionDataBean
AttachmentRelationDescriptionDataBean
java.lang.String getURL()
void setCreateMissing(java.lang.Boolean aboolCreateMissing)
aboolCreateMissing
- The create missing flagvoid setAttachmentObjectId(java.lang.Long anObjectId)
anObjectId
- The Object IDvoid setAttachmentRelationId(java.lang.Long anAttachmentRelationId)
anAttachmentRelationId
- The attachment relation IDvoid setAttachmentTargetId(java.lang.Long anAttachmentTargetId)
anAttachmentTargetId
- The attachment target IDvoid setAttachmentRelationUsageId(java.lang.Integer anAttachmentRelationUsageId)
anAttachmentRelationUsageId
- The attachment relation usage IDvoid setSequence(java.lang.Double adSequence)
adSequence
- The sequence numbervoid setAttachmentRelationDescriptions(java.util.Vector avAttachmentRelationDescriptionDataBeans)
AttachmentRelationDescriptionDataBean
to be created as the description for the attachment relation.avAttachmentRelationDescriptionDataBeans
- The list of AttachmentRelationDescriptionDataBean
void setURL(java.lang.String astrURL)
astrURL
- The redirect URL