本文整理汇总了Java中org.kuali.rice.kew.actionlist.ActionListForm类的典型用法代码示例。如果您正苦于以下问题:Java ActionListForm类的具体用法?Java ActionListForm怎么用?Java ActionListForm使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ActionListForm类属于org.kuali.rice.kew.actionlist包,在下文中一共展示了ActionListForm类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getKeyValues
import org.kuali.rice.kew.actionlist.ActionListForm; //导入依赖的package包/类
@Override
public List<KeyValue> getKeyValues(ViewModel model) {
ActionListForm actionListForm = (ActionListForm)model;
List<String> userWorkgroups =
KimApiServiceLocator.getGroupService().getGroupIdsByPrincipalId(actionListForm.getUser());
//note that userWorkgroups is unmodifiable so we need to create a new list that we can sort
List<String> userGroupsToSort = new ArrayList<String>(userWorkgroups);
List<KeyValue> sortedUserWorkgroups = new ArrayList<KeyValue>();
KeyValue keyValue = null;
keyValue = new ConcreteKeyValue(KewApiConstants.NO_FILTERING, KewApiConstants.NO_FILTERING);
sortedUserWorkgroups.add(keyValue);
if (userGroupsToSort != null && userGroupsToSort.size() > 0) {
Collections.sort(userGroupsToSort);
Group group;
for (String groupId : userGroupsToSort)
{
group = KimApiServiceLocator.getGroupService().getGroup(groupId);
keyValue = new ConcreteKeyValue(groupId, group.getName());
sortedUserWorkgroups.add(keyValue);
}
}
return sortedUserWorkgroups;
}