public abstract class AttachmentRelationBaseAddCmdImpl extends ControllerCommandImpl implements AttachmentRelationBaseAddCmd
AttachmentRelationBaseAddCmd
is a base URL and controller command for the business object attachment relationship that:
If the attachment relation ID is specified, then only attachment relation description will be created.
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:
AttachmentRelationDescriptionDataBean
AttachmentRelationAccessBean
AttachmentRelationDescriptionAccessBean
AttachmentRelationDescriptionDataBean
AddAttachmentRelationCmd
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 |
---|
AttachmentRelationBaseAddCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getAttachmentObjectId()
Gets the Attachment Object ID.
|
java.lang.Integer |
getAttachmentObjectTypeId()
Gets the Attachment Object Type ID.
|
java.util.Vector |
getAttachmentRelationDescriptions()
Gets the vector of
AttachmentRelationDescriptionDataBean |
java.lang.Long |
getAttachmentRelationId()
Gets the attachment relation ID for the 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 |
performExecute()
If the attachment relation ID is not given, calls
addAttachmentRelation to create the attachment relation. |
void |
reset()
Resets the variables used.
|
void |
setAttachmentObjectId(java.lang.Long anAttachmentObjectId)
Sets the Attachment Object ID.
|
void |
setAttachmentObjectTypeId(java.lang.Integer anAttachmentObjectTypeId)
Sets the Attachment Object Type ID.
|
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 |
setRequestProperties(TypedProperty reqParms)
Sets the request properties.
|
void |
setSequence(java.lang.Double adSequence)
Sets the sequence in the attachment relation.
|
void |
setURL(java.lang.String astrURL)
Sets the redirect URL.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, 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, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public java.lang.Long getAttachmentObjectId()
getAttachmentObjectId
in interface AttachmentRelationBaseAddCmd
public java.lang.Integer getAttachmentObjectTypeId()
public java.lang.Long getAttachmentRelationId()
getAttachmentRelationId
in interface AttachmentRelationBaseAddCmd
public java.lang.Long getAttachmentTargetId()
getAttachmentTargetId
in interface AttachmentRelationBaseAddCmd
public java.lang.Integer getAttachmentRelationUsageId()
getAttachmentRelationUsageId
in interface AttachmentRelationBaseAddCmd
public java.lang.Double getSequence()
getSequence
in interface AttachmentRelationBaseAddCmd
public java.util.Vector getAttachmentRelationDescriptions()
AttachmentRelationDescriptionDataBean
getAttachmentRelationDescriptions
in interface AttachmentRelationBaseAddCmd
AttachmentRelationDescriptionDataBean
public java.lang.String getURL()
getURL
in interface AttachmentRelationBaseAddCmd
public void performExecute() throws ECException
addAttachmentRelation
to create the attachment relation.
Calls addAttachmentRelationDescriptions
to create the attachment relation descriptions.performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void setAttachmentRelationId(java.lang.Long anAttachmentRelationId)
setAttachmentRelationId
in interface AttachmentRelationBaseAddCmd
anAttachmentRelationId
- The attachment relation IDpublic void setAttachmentTargetId(java.lang.Long anAttachmentTargetId)
setAttachmentTargetId
in interface AttachmentRelationBaseAddCmd
anAttachmentTargetId
- The attachment target IDpublic void setAttachmentRelationUsageId(java.lang.Integer anAttachmentRelationUsageId)
setAttachmentRelationUsageId
in interface AttachmentRelationBaseAddCmd
anAttachmentRelationUsageId
- The attachment relation usage IDpublic void setAttachmentObjectId(java.lang.Long anAttachmentObjectId)
setAttachmentObjectId
in interface AttachmentRelationBaseAddCmd
anAttachmentObjectId
- The Attachment Object IDpublic void setAttachmentObjectTypeId(java.lang.Integer anAttachmentObjectTypeId)
anObjectTypeId
- The Attachment Object Type IDpublic void setSequence(java.lang.Double adSequence)
setSequence
in interface AttachmentRelationBaseAddCmd
adSequence
- The sequence numberpublic void setAttachmentRelationDescriptions(java.util.Vector avAttachmentRelationDescriptionDataBeans)
AttachmentRelationDescriptionDataBean
to be created as the description for the attachment relation.setAttachmentRelationDescriptions
in interface AttachmentRelationBaseAddCmd
avAttachmentRelationDescriptionDataBeans
- The list of AttachmentRelationDescriptionDataBean
public void setURL(java.lang.String astrURL)
setURL
in interface AttachmentRelationBaseAddCmd
astrURL
- The redirect URLpublic void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
reqParms
- The request propertiesECApplicationException