public class ERPendingAttachment extends Object
Constructor and Description |
---|
ERPendingAttachment(File uploadedFile)
Constructs an ERPendingAttachment.
|
ERPendingAttachment(File uploadedFile,
String recommendedFilePath)
Constructs an ERPendingAttachment.
|
ERPendingAttachment(File uploadedFile,
String recommendedFilePath,
String mimeType)
Constructs an ERPendingAttachment.
|
ERPendingAttachment(File uploadedFile,
String recommendedFilePath,
String mimeType,
int width,
int height,
String configurationName,
String ownerID)
Constructs an ERPendingAttachment.
|
ERPendingAttachment(File uploadedFile,
String recommendedFilePath,
String mimeType,
String configurationName,
String ownerID)
Constructs an ERPendingAttachment.
|
Modifier and Type | Method and Description |
---|---|
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.
|
String |
mimeType()
Returns the mime type (or null if there isn't an explicit one) for this file.
|
String |
ownerID()
Returns the arbitrary string that represents the ID of the "owner" of this attachment (Person.primaryKey, for instance).
|
String |
recommendedFileName()
Returns the cleansed file name recommended by the user during import.
|
String |
recommendedFilePath()
Returns the path recommended by the user during import.
|
void |
setConfigurationName(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(String mimeType)
Sets the mime type (or null if there isn't an explicit one) for this file.
|
void |
setOwnerID(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(String recommendedFilePath)
Sets the path recommended by the user during import.
|
void |
setUploadedFile(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).
|
String |
toString() |
File |
uploadedFile()
Returns the uploaded temporary file (which will be deleted at the end).
|
int |
width()
Returns the desired width of this attachment.
|
public ERPendingAttachment(File uploadedFile)
uploadedFile
- public ERPendingAttachment(File uploadedFile, String recommendedFilePath)
uploadedFile
- recommendedFilePath
- public ERPendingAttachment(File uploadedFile, String recommendedFilePath, String mimeType)
uploadedFile
- recommendedFilePath
- mimeType
- public ERPendingAttachment(File uploadedFile, String recommendedFilePath, String mimeType, String configurationName, String ownerID)
uploadedFile
- recommendedFilePath
- mimeType
- configurationName
- ownerID
- public ERPendingAttachment(File uploadedFile, String recommendedFilePath, String mimeType, int width, int height, String configurationName, String ownerID)
uploadedFile
- recommendedFilePath
- mimeType
- width
- height
- configurationName
- ownerID
- public File uploadedFile()
public void setUploadedFile(File uploadedFile)
uploadedFile
- public String recommendedFilePath()
public void setRecommendedFilePath(String recommendedFilePath)
recommendedFilePath
- public String recommendedFileName()
public String mimeType()
public void setMimeType(String mimeType)
mimeType
- public String configurationName()
public void setConfigurationName(String configurationName)
configurationName
- public String ownerID()
public void setOwnerID(String ownerID)
ownerID
- public void setPendingDelete(boolean pendingDelete)
pendingDelete
- public boolean isPendingDelete()
public void setWidth(int width)
width
- public int width()
public void setHeight(int height)
height
- public int height()
Copyright © 2002 – 2020 Project Wonder.