/*
 * Copyright (C) 2019  Consiglio Nazionale delle Ricerche
 *
 *     This program is free software: you can redistribute it and/or modify
 *     it under the terms of the GNU Affero General Public License as
 *     published by the Free Software Foundation, either version 3 of the
 *     License, or (at your option) any later version.
 *
 *     This program is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU Affero General Public License for more details.
 *
 *     You should have received a copy of the GNU Affero General Public License
 *     along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

package it.cnr.contab.doccont00.action;

import it.cnr.contab.doccont00.bp.*;
import it.cnr.jada.action.*;
/**
 * Insert the type's description here.
 * Creation date: (03/07/2003 16.14.44)
 * @author: Simonetta Costa
 */
public abstract class CRUDAbstractObbligazioneAction extends it.cnr.jada.util.action.CRUDAction {
/**
 * CRUDAbstractObbligazioneAction constructor comment.
 */
public CRUDAbstractObbligazioneAction() {
	super();
}
public Forward doRiportaAvanti(ActionContext context) throws java.rmi.RemoteException 
{

	CRUDVirtualObbligazioneBP bp = (CRUDVirtualObbligazioneBP)context.getBusinessProcess();

	try 
	{
		fillModel(context);
		bp.riportaAvanti(context);
		return context.findDefaultForward();
	} 
	catch(Throwable e) 
	{
		return handleException(context,e);
	}
}
public Forward doRiportaIndietro(ActionContext context) throws java.rmi.RemoteException 
{

	CRUDVirtualObbligazioneBP bp = (CRUDVirtualObbligazioneBP)context.getBusinessProcess();

	try 
	{
		fillModel(context);
		bp.riportaIndietro(context);
		return context.findDefaultForward();
	} 
	catch(Throwable e) 
	{
		return handleException(context,e);
	}
}
}
