Coverage Report - org.kuali.rice.ken.kew.NotificationCustomActionListAttribute
 
Classes in this File Line Coverage Branch Coverage Complexity
NotificationCustomActionListAttribute
0%
0/6
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 org.kuali.rice.ken.kew;
 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  
 /**
 25  
  * This class is our custom action list for Notifications in KEW.  It's wired in as the implementation to use as part of the NotificationData.xml 
 26  
  * bootstrap file for KEW.
 27  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 28  
  */
 29  0
 public class NotificationCustomActionListAttribute implements CustomActionListAttribute {
 30  
 
 31  
     @Override
 32  
         public DisplayParameters getDocHandlerDisplayParameters(String principalId, ActionItem actionItem) throws Exception {
 33  0
         DisplayParameters dp = DisplayParameters.Builder.create(new Integer(400)).build();
 34  0
         return dp;
 35  
     }
 36  
 
 37  
     @Override
 38  
         public ActionSet getLegalActions(String principalId,ActionItem actionItem) throws Exception {
 39  0
         ActionSet as = ActionSet.Builder.create().build();
 40  0
         as.addFyi();
 41  0
         return as;
 42  
     }
 43  
 
 44  
 }