public class WriteManagedFileCmdImpl extends TaskCommandImpl implements WriteManagedFileCmd
WriteManagedFile
. The command interface is
WriteManagedFileCmd
. WriteManagedFile
can:
ManagedFileAccessBean
AttachmentAssetAccessBean
StoreEntityAccessBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
Define the CLASSNAME.
|
static java.lang.String |
FILE_ASSOCIATED
The constant to indicate that a file is associated.
|
static java.lang.String |
FILE_DISASSOCIATED
The constant to indicate that the file is not associated.
|
static java.lang.String |
FILE_NOT_PROMOTED_TO_FS
The constant to indicate that the file is not yet promoted to the file system.
|
static java.lang.String |
FILE_NOT_PUBLISHED
The constant to indicate that the file is not yet published.
|
Constructor and Description |
---|
WriteManagedFileCmdImpl() |
Modifier and Type | Method and Description |
---|---|
byte[] |
getFile()
Gets the content of the file.
|
java.lang.Long |
getFileId()
Gets the file ID.
|
java.lang.String |
getFilePath()
Gets the file path.
|
AccessVector |
getResources()
Gets the access vector accessed by this command.
|
void |
performExecute()
Main execution for
WriteManageFile |
void |
reset()
Resets all the parameters
|
void |
setAssociation(java.lang.Boolean aboolAssociation)
Sets the association option of the managed file.
|
void |
setFile(byte[] abaFile)
Sets the content of the file.
|
void |
setFileId(java.lang.Long anFileId)
Sets the file ID.
|
void |
setFilePath(java.lang.String astrFilePath)
Sets the file path.
|
void |
setStoreentId(java.lang.Integer anStoreentId)
Sets the store entity ID that owns the managed file.
|
void |
validateParameters()
Validates the parameters.
|
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
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String CLASSNAME
public static final java.lang.String FILE_ASSOCIATED
public static final java.lang.String FILE_DISASSOCIATED
public static final java.lang.String FILE_NOT_PROMOTED_TO_FS
public static final java.lang.String FILE_NOT_PUBLISHED
public java.lang.String getFilePath()
getFilePath
in interface WriteManagedFileCmd
public byte[] getFile()
getFile
in interface WriteManagedFileCmd
public AccessVector getResources() throws ECException
StoreAccessBean
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
StoreAccessBean
ECException
public void performExecute() throws ECException
WriteManageFile
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 setFileId(java.lang.Long anFileId)
setFileId
in interface WriteManagedFileCmd
anFileId
- The file IDpublic java.lang.Long getFileId()
getFileId
in interface WriteManagedFileCmd
public void setFilePath(java.lang.String astrFilePath)
setFilePath
in interface WriteManagedFileCmd
astrFilePath
- The file pathpublic void setFile(byte[] abaFile)
setFile
in interface WriteManagedFileCmd
abaFile
- The file contentpublic void setAssociation(java.lang.Boolean aboolAssociation)
setAssociation
in interface WriteManagedFileCmd
aboolAssociation
- The option to set an association with the managed filepublic void setStoreentId(java.lang.Integer anStoreentId)
setStoreentId
in interface WriteManagedFileCmd
anStoreentId
- The store entity IDpublic void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException