@Named(value="dmsController") @ConversationScoped public class DMSController extends Object implements Serializable
org.imixs.workflow.jee.faces.fileupload.FileUploadController,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected org.imixs.workflow.engine.DocumentService |
documentService |
protected org.imixs.workflow.faces.util.LoginController |
loginController |
static String |
REGEX_URL_PATTERN |
protected org.imixs.workflow.faces.data.WorkflowController |
workflowController |
| Constructor and Description |
|---|
DMSController() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLink(javax.faces.event.ActionEvent event)
This Method adds a new Link (url) into the DMS list.
|
String |
documentType(String name) |
List<org.imixs.workflow.ItemCollection> |
getDmsList()
this method returns a list of all attached files and the file meta data
provided in a list of ItemCollection.
|
List<org.imixs.workflow.ItemCollection> |
getDmsListByWorkitem(org.imixs.workflow.ItemCollection workitem)
This method returns a list of ItemCollections for all custom attributes of
attached files.
|
String |
getLink() |
void |
onWorkflowEvent(org.imixs.workflow.faces.data.WorkflowEvent workflowEvent)
WorkflowEvent listener to update the DMS property if a WorkItem has changed,
processed or saved.
|
void |
removeFile(String aFile)
This method removes a file form the current dms list and also from the
workitem
|
void |
reset()
Reset the current dms list
|
void |
setLink(String link) |
String |
userFriendlyBytes(int bytes)
Computes the file size into a user friendly format
|
public static final String REGEX_URL_PATTERN
@Inject protected org.imixs.workflow.faces.util.LoginController loginController
@Inject protected org.imixs.workflow.faces.data.WorkflowController workflowController
@Inject protected org.imixs.workflow.engine.DocumentService documentService
public String getLink()
public void setLink(String link)
public void onWorkflowEvent(@Observes
org.imixs.workflow.faces.data.WorkflowEvent workflowEvent)
throws org.imixs.workflow.exceptions.AccessDeniedException
workflowEvent - org.imixs.workflow.exceptions.AccessDeniedExceptionpublic List<org.imixs.workflow.ItemCollection> getDmsList()
public List<org.imixs.workflow.ItemCollection> getDmsListByWorkitem(org.imixs.workflow.ItemCollection workitem)
The method is used by the DmsController to display the dms meta data.
The method caches the data result internally to avoid multiple calls because of JSF behavior (https://stackoverflow.com/questions/2090033/why-jsf-calls-getters-multiple-times/2090062)
workitem - - source of meta data, sorted by $creationpublic void removeFile(String aFile)
aFile - public void reset()
public void addLink(javax.faces.event.ActionEvent event)
event - public String userFriendlyBytes(int bytes)
size - Copyright © 2016–2022 Imixs Software Solutions GmbH. All rights reserved.