Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 2005-2013 The Kuali Foundation Licensed under the Educational Community License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.opensource.org/licenses/ecl2.php Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
package org.kuali.rice.kew.impl.action;
Reference implementation of the RokePokerQueue which handle re-resolution of action requests which use roles.

Author(s):
Kuali Rice Team (rice.collab@kuali.org)
public class RolePokerQueueImpl implements RolePokerQueue {
    @Override
	public void reResolveQualifiedRole(String documentIdString roleNameString qualifiedRoleNameLabel) {
        if (StringUtils.isBlank(documentId)) {
			throw new RiceIllegalArgumentException("documentId is null or blank");
		}
        if (StringUtils.isBlank(roleName)) {
			throw new RiceIllegalArgumentException("roleName is null or blank");
		}
		KEWServiceLocator.getRouteHeaderService().lockRouteHeader(documentIdtrue);
		DocumentRouteHeaderValue document = KEWServiceLocator.getRouteHeaderService().getRouteHeader(documentId);
		if (qualifiedRoleNameLabel == null) {
			KEWServiceLocator.getRoleService().reResolveRole(documentroleName);
else {
			KEWServiceLocator.getRoleService().reResolveQualifiedRole(documentroleNamequalifiedRoleNameLabel);
		}
	}
    @Override
	public void reResolveRole(String documentIdString roleName) {
		reResolveQualifiedRole(documentIdroleNamenull);
	}
New to GrepCode? Check out our FAQ X