public class CatalogGroupAttachmentAddCmdImpl extends AttachmentRelationBaseAddCmdImpl implements CatalogGroupAttachmentAddCmd
CatalogGroupAttachmentAddCmd
is a URL and controller command that:
If the attachment relation ID is specified, then only attachment relation description will be created.
If the command is called as URL. Only one description can be created. Otherwise, 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
CatalogGroupAccessBean
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 |
---|
CatalogGroupAttachmentAddCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCatalogGroupIdentifier()
Gets the external catalog group identifier.
|
java.lang.Long |
getCatgroupId()
Gets the Catalog Group ID.
|
AccessVector |
getResources()
Gets the access vector accessed by this command.
|
void |
performExecute()
Calls the super class to do the work.
|
void |
reset()
Resets the variables used.
|
void |
setCatalogGroupIdentifier(java.lang.String astrCatalogGroupIdentifier)
Sets the external identifier of the catalog group.
|
void |
setCatgroupId(java.lang.Long anCatalogGroupId)
Sets the Catalog Group ID.
|
void |
setRequestProperties(TypedProperty reqParms)
Sets the request properties.
|
void |
validateParameters()
Validate the parameters.
|
getAttachmentObjectId, getAttachmentObjectTypeId, getAttachmentRelationDescriptions, getAttachmentRelationId, getAttachmentRelationUsageId, getAttachmentTargetId, getSequence, getURL, setAttachmentObjectId, setAttachmentObjectTypeId, setAttachmentRelationDescriptions, setAttachmentRelationId, setAttachmentRelationUsageId, setAttachmentTargetId, setSequence, setURL
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, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
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
getAttachmentObjectId, getAttachmentRelationDescriptions, getAttachmentRelationId, getAttachmentRelationUsageId, getAttachmentTargetId, getSequence, getURL, setAttachmentObjectId, setAttachmentRelationDescriptions, setAttachmentRelationId, setAttachmentRelationUsageId, setAttachmentTargetId, setSequence, setURL
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, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public java.lang.Long getCatgroupId()
getCatgroupId
in interface CatalogGroupAttachmentAddCmd
public java.lang.String getCatalogGroupIdentifier()
getCatalogGroupIdentifier
in interface CatalogGroupAttachmentAddCmd
public AccessVector getResources() throws ECException
CatalogGroupAccessBean
.
which is the owner of the attachment relation.getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
CatalogGroupAccessBean
.ECException
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AttachmentRelationBaseAddCmdImpl
ECException
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AttachmentRelationBaseAddCmdImpl
public void setCatgroupId(java.lang.Long anCatalogGroupId)
setCatgroupId
in interface CatalogGroupAttachmentAddCmd
anCatalogGroupId
- The Catalog Group IDpublic void setCatalogGroupIdentifier(java.lang.String astrCatalogGroupIdentifier)
setCatalogGroupIdentifier
in interface CatalogGroupAttachmentAddCmd
astrCatalogGroupIdentifier
- The identifier of the Catalog Grouppublic void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class AttachmentRelationBaseAddCmdImpl
reqParms
- The request propertiesECApplicationException
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException