|
Fuego Process API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Field Summary | |
static int |
DESCRIPT_LENGTH
|
static int |
FILENAME_LENGTH
|
static int |
REMARK_LENGTH
|
| Method Summary | |
boolean |
existsFile(String directory)
This methods returns true if the attachment has already been checked out in the specified directory |
long |
getContentSize()
The size of the content of this attachment |
String |
getContentType()
Returns the attachment content type |
fuego.lang.Time |
getCreationTime()
Returns the time of creation of this particular version of the attachment. |
String |
getCreatorName()
Returns the creator of this particular version of the attachment. |
String |
getDescription()
The description of this attachment |
fuego.lang.Time |
getEditionTime()
Returns the time of marking for edition of this attachment. |
String |
getFileExtension()
The extension of the attachment file |
String |
getFileName()
The name of the attachment file |
String |
getId()
This methid returns the attachment id. |
int |
getIn()
The identificator number of this attachment |
String |
getInstanceId()
Returns the instance identificator from the specific attachment |
int |
getInstanceIn()
The identificator number of the instance where is this attached |
String |
getLocaleSize(Locale locale)
Returns the locale formatted size of the attachment. |
String |
getLockerName()
Returns the current locker's name of this attachment. |
String |
getName()
The name of this attachment |
String |
getOsInfo()
Deprecated. |
int |
getProcessIn()
This method returns the identificatior number of the process which belongs this attachment |
String |
getRemarks()
Returns remarks or observations for this particular version of the attachment |
Object |
getVar(String variableId)
Returns the value of any variable by id. |
int |
getVersion()
The version of this attachment |
boolean |
isFileModified(String directory)
This methods returns true if the attachment has already been checked out in the specified directory |
boolean |
isLocked()
If the process is locked or not |
boolean |
isLockedByParticipant(String participantId)
If this attachment is locked by the given participant |
void |
saveAs(String attachmentsDirectory,
File file)
This method saves the given file in the given directory |
| Field Detail |
public static final int FILENAME_LENGTH
public static final int DESCRIPT_LENGTH
public static final int REMARK_LENGTH
| Method Detail |
public long getContentSize()
getContentSize in interface AttachmentInterfacepublic String getContentType()
getContentType in interface AttachmentInterfacepublic fuego.lang.Time getCreationTime()
getCreationTime in interface AttachmentInterfacepublic String getCreatorName()
getCreatorName in interface AttachmentInterfacepublic String getDescription()
getDescription in interface AttachmentInterfacepublic fuego.lang.Time getEditionTime()
getEditionTime in interface AttachmentInterfacepublic String getFileExtension()
public boolean isFileModified(String directory)
directory - to check
public String getFileName()
public String getId()
getId in interface AttachmentInterfacepublic int getIn()
public String getInstanceId()
public int getInstanceIn()
public String getLocaleSize(Locale locale)
public boolean isLocked()
public boolean isLockedByParticipant(String participantId)
participantId -
public String getLockerName()
getLockerName in interface AttachmentInterfacepublic String getName()
getName in interface AttachmentInterfacepublic String getOsInfo()
public int getProcessIn()
public String getRemarks()
getRemarks in interface AttachmentInterface
public Object getVar(String variableId)
throws InvalidVariableIdException
variableId - The id of the variable whose value is required
InvalidVariableIdExceptionpublic int getVersion()
getVersion in interface AttachmentInterface
public boolean existsFile(String directory)
throws IOException
directory - to check
IOException
public void saveAs(String attachmentsDirectory,
File file)
throws FileNotFoundException,
SecurityException,
IOException
FileNotFoundException
SecurityException
IOException
|
Fuego Process API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||