001/*
002 * The Kuali Financial System, a comprehensive financial management system for higher education.
003 * 
004 * Copyright 2005-2014 The Kuali Foundation
005 * 
006 * This program is free software: you can redistribute it and/or modify
007 * it under the terms of the GNU Affero General Public License as
008 * published by the Free Software Foundation, either version 3 of the
009 * License, or (at your option) any later version.
010 * 
011 * This program is distributed in the hope that it will be useful,
012 * but WITHOUT ANY WARRANTY; without even the implied warranty of
013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
014 * GNU Affero General Public License for more details.
015 * 
016 * You should have received a copy of the GNU Affero General Public License
017 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
018 */
019package org.kuali.kfs.module.purap.document.validation.event;
020
021import org.kuali.kfs.sys.KFSConstants;
022import org.kuali.kfs.sys.document.validation.event.AttributedSaveDocumentEvent;
023import org.kuali.rice.krad.document.Document;
024import org.kuali.rice.krad.rules.rule.event.SaveEvent;
025
026/**
027 * UpdateCamsView Event for Accounts Payable Document.
028 * This could be triggered when a user presses the UpdateCamsView button to go to the next page.
029 */
030public final class AttributedUpdateCamsViewPurapEvent extends AttributedSaveDocumentEvent implements SaveEvent {
031
032    /**
033     * Overridden constructor.
034     * 
035     * @param document the document for this event
036     */
037    public AttributedUpdateCamsViewPurapEvent(Document document) {
038        this(KFSConstants.EMPTY_STRING, document);
039    }
040
041    /**
042     * Constructs a UpdateCamsViewPurapEvent 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 AttributedUpdateCamsViewPurapEvent(String errorPathPrefix, Document document) {
048        super("updating view for document " + getDocumentId(document), errorPathPrefix, document);
049    }
050}