|
Project Wonder 5.0 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objecter.attachment.model.ERPendingAttachment
public class ERPendingAttachment
ERPendingAttachment is just a convenience wrapper for tracking uploaded file state for later passing into an attachment processor.
| Constructor Summary | |
|---|---|
ERPendingAttachment(java.io.File uploadedFile)
Constructs an ERPendingAttachment. |
|
ERPendingAttachment(java.io.File uploadedFile,
java.lang.String recommendedFilePath)
Constructs an ERPendingAttachment. |
|
ERPendingAttachment(java.io.File uploadedFile,
java.lang.String recommendedFilePath,
java.lang.String mimeType)
Constructs an ERPendingAttachment. |
|
ERPendingAttachment(java.io.File uploadedFile,
java.lang.String recommendedFilePath,
java.lang.String mimeType,
int width,
int height,
java.lang.String configurationName,
java.lang.String ownerID)
Constructs an ERPendingAttachment. |
|
ERPendingAttachment(java.io.File uploadedFile,
java.lang.String recommendedFilePath,
java.lang.String mimeType,
java.lang.String configurationName,
java.lang.String ownerID)
Constructs an ERPendingAttachment. |
|
| Method Summary | |
|---|---|
java.lang.String |
configurationName()
Returns the name of the configuration settings to use for this upload. |
int |
height()
Returns the desired height of this attachment. |
boolean |
isPendingDelete()
Returns whether or not this attachment should be deleted after import. |
java.lang.String |
mimeType()
Returns the mime type (or null if there isn't an explicit one) for this file. |
java.lang.String |
ownerID()
Returns the arbitrary string that represents the ID of the "owner" of this attachment (Person.primaryKey, for instance). |
java.lang.String |
recommendedFileName()
Returns the cleansed file name recommended by the user during import. |
java.lang.String |
recommendedFilePath()
Returns the path recommended by the user during import. |
void |
setConfigurationName(java.lang.String configurationName)
Sets the name of the configuration settings to use for this upload. |
void |
setHeight(int height)
Sets the desired height of this attachment (or -1 to not specify). |
void |
setMimeType(java.lang.String mimeType)
Sets the mime type (or null if there isn't an explicit one) for this file. |
void |
setOwnerID(java.lang.String ownerID)
Sets the arbitrary string that represents the ID of the "owner" of this attachment (Person.primaryKey, for instance). |
void |
setPendingDelete(boolean pendingDelete)
Sets whether or not this attachment should be deleted after import. |
void |
setRecommendedFilePath(java.lang.String recommendedFilePath)
Sets the path recommended by the user during import. |
void |
setUploadedFile(java.io.File uploadedFile)
Sets the uploaded temporary file (which will be deleted at the end). |
void |
setWidth(int width)
Sets the desired width of this attachment (or -1 to not specify). |
java.lang.String |
toString()
|
java.io.File |
uploadedFile()
Returns the uploaded temporary file (which will be deleted at the end). |
int |
width()
Returns the desired width of this attachment. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ERPendingAttachment(java.io.File uploadedFile)
uploadedFile - the uploaded temporary file (which will be deleted at the end)
public ERPendingAttachment(java.io.File uploadedFile,
java.lang.String recommendedFilePath)
uploadedFile - the uploaded temporary file (which will be deleted at the end)recommendedFilePath - the path recommended by the user during import
public ERPendingAttachment(java.io.File uploadedFile,
java.lang.String recommendedFilePath,
java.lang.String mimeType)
uploadedFile - the uploaded temporary file (which will be deleted at the end)recommendedFilePath - the path recommended by the user during importmimeType - the mimeType to use (null = guess based on file extension)
public ERPendingAttachment(java.io.File uploadedFile,
java.lang.String recommendedFilePath,
java.lang.String mimeType,
java.lang.String configurationName,
java.lang.String ownerID)
uploadedFile - the uploaded temporary file (which will be deleted at the end)recommendedFilePath - the path recommended by the user during importmimeType - the mimeType to use (null = guess based on file extension)configurationName - the name of the configuration settings to use for this processor (see top level docs)ownerID - an arbitrary string that represents the ID of the "owner" of this thumbnail (Person.primaryKey, for instance)
public ERPendingAttachment(java.io.File uploadedFile,
java.lang.String recommendedFilePath,
java.lang.String mimeType,
int width,
int height,
java.lang.String configurationName,
java.lang.String ownerID)
uploadedFile - the uploaded temporary file (which will be deleted at the end)recommendedFilePath - the path recommended by the user during importmimeType - the mimeType to use (null = guess based on file extension)width - the desired width of the attachmentheight - the desired height of the attachmentconfigurationName - the name of the configuration settings to use for this processor (see top level docs)ownerID - an arbitrary string that represents the ID of the "owner" of this thumbnail (Person.primaryKey, for instance)| Method Detail |
|---|
public java.io.File uploadedFile()
public void setUploadedFile(java.io.File uploadedFile)
uploadedFile - the uploaded temporary filepublic java.lang.String recommendedFilePath()
public void setRecommendedFilePath(java.lang.String recommendedFilePath)
recommendedFilePath - the path recommended by the user during importpublic java.lang.String recommendedFileName()
public java.lang.String mimeType()
public void setMimeType(java.lang.String mimeType)
mimeType - the mime type (or null if there isn't an explicit one) for this filepublic java.lang.String configurationName()
public void setConfigurationName(java.lang.String configurationName)
configurationName - the name of the configuration settings to use for this uploadpublic java.lang.String ownerID()
public void setOwnerID(java.lang.String ownerID)
ownerID - the arbitrary string that represents the ID of the "owner" of this attachmentpublic void setPendingDelete(boolean pendingDelete)
pendingDelete - whether or not this attachment should be deleted after importpublic boolean isPendingDelete()
public void setWidth(int width)
width - the desired width of this attachmentpublic int width()
public void setHeight(int height)
height - the desired height of this attachmentpublic int height()
public java.lang.String toString()
toString in class java.lang.Object
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||