本文整理匯總了Java中org.kuali.rice.kew.quicklinks.ActionListStats類的典型用法代碼示例。如果您正苦於以下問題:Java ActionListStats類的具體用法?Java ActionListStats怎麽用?Java ActionListStats使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ActionListStats類屬於org.kuali.rice.kew.quicklinks包,在下文中一共展示了ActionListStats類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getActionListStats
import org.kuali.rice.kew.quicklinks.ActionListStats; //導入依賴的package包/類
@Override
@SuppressWarnings("unchecked")
public List<ActionListStats> getActionListStats(final String principalId) {
try {
final List<Object[]> stats = getEntityManager().createNamedQuery("ActionItem.GetQuickLinksDocumentTypeNameAndCount").
setParameter("principalId", principalId).setParameter("delegationType", DelegationType
.SECONDARY.getCode()).getResultList();
final List<ActionListStats> docTypes = new ArrayList<ActionListStats>(stats.size());
for (Object[] res : stats) {
final String docTypeName = (String) res[0];
final Long count = (Long) res[1];
final DocumentType docType = getDocumentTypeService().findByName(docTypeName);
if(docType != null){
docTypes.add(new ActionListStats(docTypeName, docType.getLabel(), count.intValue()));
}
}
Collections.sort(docTypes);
return docTypes;
} catch (Exception e) {
throw new WorkflowRuntimeException("Error getting action list stats for user: " + principalId, e);
}
}
示例2: getActionListStats
import org.kuali.rice.kew.quicklinks.ActionListStats; //導入依賴的package包/類
@Override
@SuppressWarnings("unchecked")
public List<ActionListStats> getActionListStats(final String principalId) {
try {
final List<Object[]> stats = entityManager.createNamedQuery("ActionItem.QuickLinks.FindActionListStatsByPrincipalId").setParameter("principalId", principalId).setParameter("delegationType", DelegationType
.SECONDARY.getCode()).getResultList();
final List<ActionListStats> docTypes = new ArrayList<ActionListStats>(stats.size());
for (Object[] res : stats) {
final String docTypeName = (String) res[0];
final Long count = (Long) res[1];
final List<String> docTypeLabel = entityManager.createNamedQuery("DocumentType.QuickLinks.FindLabelByTypeName").setParameter("docTypeName", docTypeName).getResultList();
if (docTypeLabel.size() > 0) {
docTypes.add(new ActionListStats(docTypeName, docTypeLabel.get(0), count.intValue()));
}
}
Collections.sort(docTypes);
return docTypes;
} catch (Exception e) {
throw new WorkflowRuntimeException("Error getting action list stats for user: " + principalId, e);
}
}
示例3: getActionListStats
import org.kuali.rice.kew.quicklinks.ActionListStats; //導入依賴的package包/類
@Override
public List<ActionListStats> getActionListStats(String principalId) {
return getQuickLinksDAO().getActionListStats(principalId);
}
示例4: getActionListStats
import org.kuali.rice.kew.quicklinks.ActionListStats; //導入依賴的package包/類
public List<ActionListStats> getActionListStats(String principalId);