public abstract class AttachmentRelationBaseAddCmdImpl extends ControllerCommandImpl implements AttachmentRelationBaseAddCmd
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:
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 |
---|
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.
|
protected java.lang.Long | getObjectIdFromAttachmentRelationId(java.lang.Long anAttachmentRelationId, java.lang.Integer anExpectedObjectTypeId)
Gets the Object ID used 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.
|
protected void | preSetParameters()
Sets some of the parameters that have not been set by the caller.
|
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.
|
protected void | setCreateMultipleDescriptions(boolean aboolCreateMultipleDescriptions)
Sets the create multiple descriptions flag.
|
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.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
protected java.lang.Long getObjectIdFromAttachmentRelationId(java.lang.Long anAttachmentRelationId, java.lang.Integer anExpectedObjectTypeId) throws ECException
public java.lang.Long getAttachmentObjectId()
public java.lang.Integer getAttachmentObjectTypeId()
public java.lang.Long getAttachmentRelationId()
public java.lang.Long getAttachmentTargetId()
public java.lang.Integer getAttachmentRelationUsageId()
public java.lang.Double getSequence()
public java.util.Vector getAttachmentRelationDescriptions()
public java.lang.String getURL()
public void performExecute() throws ECException
protected void preSetParameters() throws ECException
public void reset()
public void setAttachmentRelationId(java.lang.Long anAttachmentRelationId)
public void setAttachmentTargetId(java.lang.Long anAttachmentTargetId)
public void setAttachmentRelationUsageId(java.lang.Integer anAttachmentRelationUsageId)
public void setAttachmentObjectId(java.lang.Long anAttachmentObjectId)
public void setAttachmentObjectTypeId(java.lang.Integer anAttachmentObjectTypeId)
public void setSequence(java.lang.Double adSequence)
protected void setCreateMultipleDescriptions(boolean aboolCreateMultipleDescriptions)
public void setAttachmentRelationDescriptions(java.util.Vector avAttachmentRelationDescriptionDataBeans)
public void setURL(java.lang.String astrURL)
public void setRequestProperties(TypedProperty reqParms) throws ECApplicationException