summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSidharth Singh2013-03-25 06:30:20 (EDT)
committer Sven Rottstock2013-03-25 06:30:20 (EDT)
commitf843eafaf303da56020efdebf17462a94fcacc56 (patch)
tree4aef7f84859e37a176dfe474f67e8c570c681a6b
parentf0845bfd0b3ece7046ee414376b993410e0f3422 (diff)
downloadorg.eclipse.stardust.ui.web-f843eafaf303da56020efdebf17462a94fcacc56.zip
org.eclipse.stardust.ui.web-f843eafaf303da56020efdebf17462a94fcacc56.tar.gz
org.eclipse.stardust.ui.web-f843eafaf303da56020efdebf17462a94fcacc56.tar.bz2
Jira-ID: CRNT-28519
Added method setWorklistThresholdCount() in ParticipantWorklistCacheManager, ProcessWorklistCacheManager.java and SpecialWorklistCacheManager.java Added code to update threshold in WorklistTableBean.fetchQueryResult() git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@63914 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--process-portal/src/main/java/org/eclipse/stardust/ui/web/processportal/view/WorklistTableBean.java3
-rw-r--r--views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/utils/ParticipantWorklistCacheManager.java13
-rw-r--r--views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/utils/ProcessWorklistCacheManager.java14
-rw-r--r--views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/utils/SpecialWorklistCacheManager.java5
4 files changed, 35 insertions, 0 deletions
diff --git a/process-portal/src/main/java/org/eclipse/stardust/ui/web/processportal/view/WorklistTableBean.java b/process-portal/src/main/java/org/eclipse/stardust/ui/web/processportal/view/WorklistTableBean.java
index 439e38c..186709a 100644
--- a/process-portal/src/main/java/org/eclipse/stardust/ui/web/processportal/view/WorklistTableBean.java
+++ b/process-portal/src/main/java/org/eclipse/stardust/ui/web/processportal/view/WorklistTableBean.java
@@ -367,6 +367,7 @@ public class WorklistTableBean extends UIComponentBean
if (!filtersAddedToQuery)
{
ParticipantWorklistCacheManager.getInstance().setWorklistCount(participantInfo, queryResult.getTotalCount());
+ ParticipantWorklistCacheManager.getInstance().setWorklistThresholdCount(participantInfo, queryResult.getTotalCountThreshold());
}
}
else if (query instanceof ActivityInstanceQuery)
@@ -378,10 +379,12 @@ public class WorklistTableBean extends UIComponentBean
if (SpecialWorklistCacheManager.isSpecialWorklist(worklistId))
{
SpecialWorklistCacheManager.getInstance().setWorklistCount(worklistId, queryResult.getTotalCount());
+ SpecialWorklistCacheManager.getInstance().setWorklistThresholdCount(worklistId, queryResult.getTotalCountThreshold());
}
else
{
ProcessWorklistCacheManager.getInstance().setWorklistCount(worklistId, queryResult.getTotalCount());
+ ProcessWorklistCacheManager.getInstance().setWorklistThresholdCount(worklistId, queryResult.getTotalCountThreshold());
}
}
}
diff --git a/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/utils/ParticipantWorklistCacheManager.java b/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/utils/ParticipantWorklistCacheManager.java
index 12c4a4e..3eae8c3 100644
--- a/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/utils/ParticipantWorklistCacheManager.java
+++ b/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/utils/ParticipantWorklistCacheManager.java
@@ -152,6 +152,19 @@ public class ParticipantWorklistCacheManager implements InitializingBean, Serial
worklistCacheEntry.setCount(count);
}
}
+
+ /**
+ * @param participantInfo
+ * @param count
+ */
+ public void setWorklistThresholdCount(ParticipantInfo participantInfo, long count)
+ {
+ ParticipantWorklistCacheEntry worklistCacheEntry = participantWorklists.get(new ParticipantInfoWrapper(participantInfo));
+ if (null != worklistCacheEntry)
+ {
+ worklistCacheEntry.setTotalCountThreshold(count);
+ }
+ }
/**
* @param oldAi
diff --git a/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/utils/ProcessWorklistCacheManager.java b/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/utils/ProcessWorklistCacheManager.java
index 2c726dd..91ab628 100644
--- a/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/utils/ProcessWorklistCacheManager.java
+++ b/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/utils/ProcessWorklistCacheManager.java
@@ -166,6 +166,20 @@ public class ProcessWorklistCacheManager implements InitializingBean
processWorklistCacheEntry.setCount(count);
}
}
+
+ /**
+ * @param processId
+ * @param count
+ */
+ public void setWorklistThresholdCount(String processId, long count)
+ {
+ ProcessDefinition processDefinitionKey = processDefinitions.get(processId);
+ ProcessWorklistCacheEntry processWorklistCacheEntry = processWorklists.get(processDefinitionKey);
+ if (null != processWorklistCacheEntry)
+ {
+ processWorklistCacheEntry.setTotalCountThreshold(count);
+ }
+ }
/**
* @param oldAi
diff --git a/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/utils/SpecialWorklistCacheManager.java b/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/utils/SpecialWorklistCacheManager.java
index 4c5ccef..adcdf7d 100644
--- a/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/utils/SpecialWorklistCacheManager.java
+++ b/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/utils/SpecialWorklistCacheManager.java
@@ -115,6 +115,11 @@ public class SpecialWorklistCacheManager implements InitializingBean, Serializab
worklists.get(id).setCount(totalCount);
}
+ public void setWorklistThresholdCount(String id, long thresholdCount)
+ {
+ worklists.get(id).setTotalCountThreshold(thresholdCount);
+ }
+
public static boolean isSpecialWorklist(String worklistId)
{
return WORKLIST_IDS.contains(worklistId);