public class AttachmentDataBean extends SmartDataBeanImpl
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
Define the CLASSNAME.
|
emptyString
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.
|
fulfills, getCommandContext, getHttpRequest, getHttpResponse, getResources, getViewCommandContext, setCommandContext, setHttpRequest, setHttpResponse, setViewCommandContext
getRequestProperties, setRequestProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRequestProperties, setRequestProperties
public static final java.lang.String CLASSNAME
public AttachmentDataBean(java.lang.String aFilenamePath, java.lang.String tool, java.lang.String storeDir)
aFilenamePath
- The full name of the file including its directorytool
- The tool which will be using this databean. Two possible values: browser or search.storeDir
- The store directory that this asset is located inpublic AttachmentDataBean(java.lang.String aFilenamePath, java.lang.String tool, java.lang.String strMimeType, java.lang.String storeDir)
aFilenamePath
- The full name of the file including its directorytool
- The tool which will be using this databean. Two possible values: browser or search.strMimeType
- the mimetype of the file aFilenamePath. We have the empty string '' to represent a URL and 'm' to represent a managed file.storeDir
- The store directory that this asset is located inpublic java.lang.Long getOwner() throws java.lang.Exception
java.lang.Exception
public void populate() throws java.lang.Exception
populate
in interface SmartDataBean
populate
in class SmartDataBeanImpl
java.lang.Exception
- Any exception capturedpublic 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)
string
- public void setFilename(java.lang.String string)
string
- public void setMimeType(java.lang.String string)
string
- The MIME type of the attachment assetpublic void setFilenamePath(java.lang.String 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)
string
- The display namepublic java.lang.String getStoreRelativeFilenamePath()
public void setStoreRelativeFilenamePath(java.lang.String string)
string
- The store relative directory path of the file.public boolean isContentManagedFile()
public boolean isLanguageSpecificFile()
public boolean isLanguageUniversalFile()
public void setContentManagedFile(boolean b)
b
- Set to true to indicate that the file is content managed only ; false otherwise.public void setLanguageSpecificFile(boolean b)
b
- Set to true to indicate that the file is an attachment asset targeted for a specific language ; false otherwise.public void setLanguageUniversalFile(boolean b)
b
- Set to true to indicate that the file is an attachment asset targeted for all languages ; false otherwise.public java.lang.String getAttachmentType()
public void setAttachmentType(java.lang.String string)
string
- The type of attachments. It should be one of these 3 possible values:
public java.lang.String getFileSize()
public void setFileSize(java.lang.String string)
string
- Set the size of the attachment in bytepublic boolean isWorkspaceCorrupted()
public void setWorkspaceCorrupted(boolean hasWorkspaceCorrupted)
hasWorkspaceCorrupted
- True to indicate a workspace conflict; false otherwise.public java.lang.String getErrorCode()
public void setErrorCode(java.lang.String anErrorCode)
anErrorCode
- The error code.