KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opensubsystems > core > logic > ModifiableDataController


1 /*
2  * Copyright (c) 2003 - 2007 OpenSubsystems s.r.o. Slovak Republic. All rights reserved.
3  *
4  * Project: OpenSubsystems
5  *
6  * $Id: ModifiableDataController.java,v 1.6 2007/01/07 06:15:14 bastafidli Exp $
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; version 2 of the License.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20  */

21
22 package org.opensubsystems.core.logic;
23
24 import java.rmi.RemoteException JavaDoc;
25
26 import org.opensubsystems.core.data.ModifiableDataObject;
27 import org.opensubsystems.core.error.OSSException;
28
29 /**
30  * This interface adds support for modifying data by the application.
31  *
32  * @version $Id: ModifiableDataController.java,v 1.6 2007/01/07 06:15:14 bastafidli Exp $
33  * @author Miro Halas
34  * @code.reviewer Miro Halas
35  * @code.reviewed 1.4 2005/02/26 10:00:58 bastafidli
36  */

37 public interface ModifiableDataController extends BasicDataController
38 {
39    /**
40     * Save data object.
41     *
42     * @param data - data object to save
43     * @return ModifiableDataObject - saved data object, null if user doesn't have
44     * access to that data object granted
45     * @throws OSSException - an error has occured
46     * @throws RemoteException - required since this method can be called remotely
47     */

48    ModifiableDataObject save(
49       ModifiableDataObject data
50    ) throws OSSException,
51             RemoteException JavaDoc;
52 }
53
Popular Tags