de.innovationgate.wgpublisher.webtml.form
Modifier and Type | Class and Description |
---|---|
class |
ProcessContext.DiskPCFile
A process context file stored on disk
|
class |
ProcessContext.DocumentPCFile
A process context file that points to a file attached to a document
|
static interface |
ProcessContext.PCFile
A file attached to a process context
|
Constructor and Description |
---|
ProcessContext(String processid,
String parentId,
Map<String,ProcessContext> registration)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addFile(InputStream in,
String fileName)
Add an uploaded file to the process context
|
void |
clear() |
void |
clearFiles()
Remove all files on this process context
|
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<String,Object>> |
entrySet() |
boolean |
equals(Object o) |
Object |
get(Object key) |
Date |
getCreated()
Returns the creation time of this process context
|
de.innovationgate.webgate.api.WGDocument |
getCreatedDoc()
Returns a document that was created on a process in this context
|
Map<String,ProcessContext.PCFile> |
getFiles()
Returns all files attached to this process context
|
String |
getProcessId()
Returns the unique process id
|
int |
hashCode() |
boolean |
isEmpty() |
Set<String> |
keySet() |
void |
kill()
Remove this process context
|
Object |
put(String key,
Object value) |
void |
putAll(Map<? extends String,? extends Object> t) |
Object |
remove(Object key) |
boolean |
removeFile(String filename)
Remove a file from this process context
|
int |
size() |
Collection<Object> |
values() |
public ProcessContext(String processid, String parentId, Map<String,ProcessContext> registration)
processid
- The process idparentId
- The id of the entity to which this process context should belongregistration
- The registration map for process contextspublic void kill()
public boolean containsKey(Object key)
containsKey
in interface Map<String,Object>
public boolean containsValue(Object value)
containsValue
in interface Map<String,Object>
public boolean equals(Object o)
public int hashCode()
public Date getCreated()
public String getProcessId()
public Map<String,ProcessContext.PCFile> getFiles()
public boolean removeFile(String filename)
filename
- Name of the filepublic void addFile(InputStream in, String fileName) throws IOException, NoSuchAlgorithmException
in
- The data of the filefileName
- The name of the fileIOException
NoSuchAlgorithmException
public void clearFiles()
public de.innovationgate.webgate.api.WGDocument getCreatedDoc()