public class DefaultInboxRenderServiceImpl<T extends StateAware> extends Object implements InboxRenderService<T>
<bean id="myStateAwarePersistenceService" parent="persistenceService">
<property name="type" value="org.egov.infra.web.struts.actions.common.MyStateAware" />
</bean>
<bean id="MyStateAwareInboxRenderService" class="org.egov.infra.workflow.inbox.DefaultInboxRenderServiceImpl">
<constructor-arg index="0" ref="myStateAwarePersistenceService"/>
</bean>
InboxRenderService
This is how, InboxRenderServiceDeligate will detect the
appropriate InboxRenderService and render the inbox items.| Constructor and Description |
|---|
DefaultInboxRenderServiceImpl(PersistenceService<T,Long> stateAwarePersistenceService) |
| Modifier and Type | Method and Description |
|---|---|
List<T> |
getAssignedWorkflowItems(Long userId,
List<Long> owners)
Returns a list of workflow items that are assigned to the given position where the workflow
has not ended.
|
List<T> |
getDraftWorkflowItems(Long userId,
List<Long> owners)
Returns a list of workflow items that are created by the given position and the state in
'NEW'.
|
public DefaultInboxRenderServiceImpl(PersistenceService<T,Long> stateAwarePersistenceService)
public List<T> getAssignedWorkflowItems(Long userId, List<Long> owners)
InboxRenderServicegetAssignedWorkflowItems in interface InboxRenderService<T extends StateAware>userId - the user idowners - the ownerpublic List<T> getDraftWorkflowItems(Long userId, List<Long> owners)
InboxRenderServicegetDraftWorkflowItems in interface InboxRenderService<T extends StateAware>userId - the user idowners - the ownerCopyright © 2015–2016 eGovernments Foundation. All rights reserved.