public class AttachmentDataBean extends SmartDataBeanImpl
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASSNAME
Define the CLASSNAME.
|
Constructor and Description |
---|
AttachmentDataBean(java.lang.String aFilenamePath, java.lang.String tool, java.lang.String storeDir)
This constructor takes three arguments: the file name, the tool, and the store directory. Based on these three values, we set the different fields which we will be used in the result page in the Attachment UI.
|
AttachmentDataBean(java.lang.String aFilenamePath, java.lang.String tool, java.lang.String strMimeType, java.lang.String storeDir)
This constructor takes four arguments: the file name, the tool, the file's mimetype, and the store directory. Based on these four values, we set the different fields which we will be used in the result page in the Attachment UI.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String | getAttachmentTargetId()
Getter for the attachment target Id.
|
java.lang.String | getAttachmentType()
Get method for the attachment type.
|
java.lang.String | getDirectoryPath()
This get method returns the directory path of the attachment.
|
java.lang.String | getDisplayName()
Getter for the display name used in the UI.
|
java.lang.String | getErrorCode()
Getter for the error code.
|
java.lang.String | getFilename()
This get method returns the filename of the attachment.
|
java.lang.String | getFilenamePath()
This get method returns the full filename, that is, the directory path plus the filename of the attachment.
|
java.lang.String | getFileSize()
Getter for the size of the file.
|
boolean | getIsAnAttachmentTarget()
Getter to determine if a file is already an attachment target.
|
boolean | getIsAttachmentAsset()
Getter to determine if a file is already an attachment asset.
|
java.lang.String | getMimeType()
This get method returns the MIME type.
|
java.lang.Long | getOwner()
Gets the member Id of the store.
|
java.lang.String | getStoreRelativeFilenamePath()
Getter for the store relative directory path of the file.
|
boolean | isContentManagedFile()
Getter to determine if the file is content managed, not an attachment asset yet.
|
boolean | isLanguageSpecificFile()
Getter to determine if the file is an attachment asset for a specific language.
|
boolean | isLanguageUniversalFile()
This method determines if the file is an attachment asset for all languages.
|
boolean | isWorkspaceCorrupted()
Getter for the file conflict flag with respect to workspace.
|
void | populate()
Populates the databean based on the directory and file name.
|
void | setAttachmentType(java.lang.String string)
Set method for the attachment type.
|
void | setContentManagedFile(boolean b)
Setter for the content managed file flag.
|
void | setDirectoryPath(java.lang.String string)
This method sets the Directory Path.
|
void | setDisplayName(java.lang.String string)
Setter for the display name to be used in the UI.
|
void | setErrorCode(java.lang.String anErrorCode)
Setter for the error code.
|
void | setFilename(java.lang.String string)
This method sets the file name.
|
void | setFilenamePath(java.lang.String string)
This method sets the directory path plus the file name.
|
void | setFileSize(java.lang.String string)
Setter for the size of the file.
|
void | setLanguageSpecificFile(boolean b)
Setter for the language specific file flag.
|
void | setLanguageUniversalFile(boolean b)
Setter for the language universal file flag.
|
void | setMimeType(java.lang.String string)
This method sets the mimeType.
|
void | setStoreRelativeFilenamePath(java.lang.String string)
Setter for the store relative directory path of the file.
|
void | setWorkspaceCorrupted(boolean hasWorkspaceCorrupted)
Setter for the file conflict flag with respect to workspace.
|
public static final java.lang.String CLASSNAME
public AttachmentDataBean(java.lang.String aFilenamePath, java.lang.String tool, java.lang.String storeDir)
public AttachmentDataBean(java.lang.String aFilenamePath, java.lang.String tool, java.lang.String strMimeType, java.lang.String storeDir)
public java.lang.Long getOwner() throws java.lang.Exception, java.rmi.RemoteException
public void populate() throws java.lang.Exception
public java.lang.String getDirectoryPath()
public java.lang.String getFilename()
public java.lang.String getMimeType()
public java.lang.String getFilenamePath()
public void setDirectoryPath(java.lang.String string)
public void setFilename(java.lang.String string)
public void setMimeType(java.lang.String string)
public void setFilenamePath(java.lang.String string)
public boolean getIsAttachmentAsset()
public boolean getIsAnAttachmentTarget()
public java.lang.String getAttachmentTargetId()
public java.lang.String getDisplayName()
public void setDisplayName(java.lang.String string)
public java.lang.String getStoreRelativeFilenamePath()
public void setStoreRelativeFilenamePath(java.lang.String string)
public boolean isContentManagedFile()
public boolean isLanguageSpecificFile()
public boolean isLanguageUniversalFile()
public void setContentManagedFile(boolean b)
public void setLanguageSpecificFile(boolean b)
public void setLanguageUniversalFile(boolean b)
public java.lang.String getAttachmentType()
public void setAttachmentType(java.lang.String string)
public java.lang.String getFileSize()
public void setFileSize(java.lang.String string)
public boolean isWorkspaceCorrupted()
public void setWorkspaceCorrupted(boolean hasWorkspaceCorrupted)
public java.lang.String getErrorCode()
public void setErrorCode(java.lang.String anErrorCode)