Package org.imixs.workflow.office.forms
Class ChronicleController
- java.lang.Object
-
- org.imixs.workflow.office.forms.ChronicleController
-
- All Implemented Interfaces:
Serializable
@Named @ConversationScoped public class ChronicleController extends Object implements Serializable
The ChronicleController collects all chronicle data history, versions, comments, references, documentsEach chronic entry for a workitme consists of the following data items:
-
- type : date|history|file|version|
With the method 'toggleFilter' the chronicle list can be filter to a specific type. This method call recalculates also the time data.
- Author:
- rsoika,gheinle
- See Also:
workitem_chronicle.xhtml, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected DMSControllerdmsControllerprotected org.imixs.workflow.faces.data.WorkflowControllerworkflowControllerprotected WorkitemLinkControllerworkitemLinkControllerprotected WorkitemServiceworkitemService
-
Constructor Summary
Constructors Constructor Description ChronicleController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ChronicleEntity>getChroniclePerMonth(int year, int month)Returns all chronical entries by year/monthStringgetFilter()Returns the current active filter or null if no filter is active.List<Integer>getMonths(int year)return months by year descendingList<Integer>getYears()voidinit()voidonWorkflowEvent(org.imixs.workflow.faces.data.WorkflowEvent workflowEvent)WorkflowEvent listenervoidtoggleFilter(String category)This method call creates a new filtered list of the originChronicl List. and recalculates also the time data.
-
-
-
Field Detail
-
workflowController
@Inject protected org.imixs.workflow.faces.data.WorkflowController workflowController
-
dmsController
@Inject protected DMSController dmsController
-
workitemLinkController
@Inject protected WorkitemLinkController workitemLinkController
-
workitemService
protected WorkitemService workitemService
-
-
Method Detail
-
init
@PostConstruct public void init()
-
onWorkflowEvent
public void onWorkflowEvent(@Observes org.imixs.workflow.faces.data.WorkflowEvent workflowEvent)WorkflowEvent listenerIf a new WorkItem was created the file upload will be reset.
- Parameters:
workflowEvent-
-
getFilter
public String getFilter()
Returns the current active filter or null if no filter is active.- Returns:
-
getMonths
public List<Integer> getMonths(int year)
return months by year descending- Parameters:
year-- Returns:
-
getChroniclePerMonth
public List<ChronicleEntity> getChroniclePerMonth(int year, int month)
Returns all chronical entries by year/month- Parameters:
year-month-- Returns:
-
toggleFilter
public void toggleFilter(String category)
This method call creates a new filtered list of the originChronicl List. and recalculates also the time data.- Parameters:
category-
-
-