Coverage Report - edu.sampleu.travel.workflow.CustomActionListAttributeImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
CustomActionListAttributeImpl
0%
0/8
N/A
1
 
 1  
 /**
 2  
  * Copyright 2005-2011 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl2.php
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package edu.sampleu.travel.workflow;
 17  
 
 18  
 import org.kuali.rice.kew.api.action.ActionItem;
 19  
 import org.kuali.rice.kew.actionlist.CustomActionListAttribute;
 20  
 import org.kuali.rice.kew.api.action.ActionSet;
 21  
 import org.kuali.rice.kew.api.actionlist.DisplayParameters;
 22  
 
 23  
 
 24  0
 public class CustomActionListAttributeImpl implements CustomActionListAttribute {
 25  
 
 26  
         private static final long serialVersionUID = 6129615406164385616L;
 27  
 
 28  
         @Override
 29  
         public DisplayParameters getDocHandlerDisplayParameters(String principalId, ActionItem actionItem) throws Exception {
 30  0
                 return DisplayParameters.Builder.create(new Integer(400)).build();
 31  
         }
 32  
 
 33  
         @Override
 34  
         public ActionSet getLegalActions(String principalId, ActionItem actionItem) throws Exception {
 35  0
                 ActionSet actionSet = ActionSet.Builder.create().build();
 36  0
                 actionSet.addAcknowledge();
 37  0
                 actionSet.addApprove();
 38  0
                 actionSet.addFyi();
 39  0
                 actionSet.addComplete();
 40  0
                 return actionSet;
 41  
         }
 42  
 
 43  
 }