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.krad.rules.rule.event; 17 18 import org.kuali.rice.krad.document.Document; 19 20 /** 21 * This class represents the blanketApprove event that is part of an eDoc in Kuali. This could be triggered when a user presses the 22 * blanketApprove button for a given document enroute or it could happen when another piece of code calls the blanketApprove method 23 * in the document service. 24 * 25 * 26 */ 27 public final class BlanketApproveDocumentEvent extends ApproveDocumentEvent { 28 /** 29 * Constructs an BlanketApproveDocumentEvent with the specified errorPathPrefix and document 30 * 31 * @param errorPathPrefix 32 * @param document 33 */ 34 public BlanketApproveDocumentEvent(String errorPathPrefix, Document document) { 35 super("blanketApprove", errorPathPrefix, document); 36 } 37 38 /** 39 * Constructs a BlanketApproveDocumentEvent with the given document 40 * 41 * @param document 42 */ 43 public BlanketApproveDocumentEvent(Document document) { 44 super("blanketApprove", "", document); 45 } 46 }