public interface AttachmentRelationBaseAddCmd extends ControllerCommand
AttachmentRelationBaseAdd
command.
The AttachmentRelationBaseAdd
creates an attachment relationship between and attachment target
and a Commerce business object; together with attachment relation descriptions for it. This command must be extended from a controller command from the Commerce
business object, for example, the CatalogEntryAttachmentAdd
command.
If the attachment relation ID is specified, then only the attachment relation descriptions will be created.
Setting the attachment relation description requires setting the vector of AttachmentRelationDescriptionDataBeans.
The attachment object ID is the primary key of the Commerce business object as a string.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 |
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 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