001 /* 002 * Copyright 2011 The Kuali Foundation. 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 package org.kuali.kfs.module.purap.document.validation.event; 017 018 import org.kuali.kfs.module.purap.document.validation.ContinuePurapRule; 019 import org.kuali.kfs.sys.KFSConstants; 020 import org.kuali.kfs.sys.document.validation.event.AttributedSaveDocumentEvent; 021 import org.kuali.rice.kns.document.Document; 022 import org.kuali.rice.kns.document.TransactionalDocument; 023 import org.kuali.rice.kns.rule.BusinessRule; 024 import org.kuali.rice.kns.rule.event.SaveEvent; 025 026 /** 027 * Continue Event for Accounts Payable Document. 028 * This could be triggered when a user presses the continue button to go to the next page. 029 */ 030 public final class AttributedContinuePurapEvent extends AttributedSaveDocumentEvent implements SaveEvent { 031 032 /** 033 * Overridden constructor. 034 * 035 * @param document the document for this event 036 */ 037 public AttributedContinuePurapEvent(Document document) { 038 this(KFSConstants.EMPTY_STRING, document); 039 } 040 041 /** 042 * Constructs a ContinuePurapEvent with the given errorPathPrefix and document. 043 * 044 * @param errorPathPrefix the error path 045 * @param document document the event was invoked upon 046 */ 047 public AttributedContinuePurapEvent(String errorPathPrefix, Document document) { 048 super("continuing for document " + getDocumentId(document), errorPathPrefix, document); 049 } 050 }