Source code: openfuture/masterdata/IMasterDataService.java
1 package openfuture.masterdata;
2
3 import java.util.*;
4 /**
5 * This interface defines the services a Master Data Service must implement
6 *
7 * Creation date: (09.09.00 21:53:00)
8 * @author: Markus Giebeler
9 *
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation; either
13 * version 2 of the License, or (at your option) any later version.<p>
14 *
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Lesser General Public License for more details.<p>
19 *
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with this library; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA<br>
23 * http://www.gnu.org/copyleft/lesser.html"
24 */
25 public interface IMasterDataService {
26 /**
27 * Passes Master Data of the specified type and a given language to the
28 * Master Data Provider.
29 *
30 * Creation date: (09.09.00 21:57:13)
31 * @return java.util.Vector
32 * @param type java.lang.String
33 * @param language java.lang.String
34 */
35 public IMasterDataContainer getMasterData(String type, String language);
36 /**
37 * Initialize the Master Data cache<br>
38 * Must be subclassed to provide some master data.
39 *
40 * <p>You might want to create an instance of an implementing class at start-up
41 * of your (server) application and initialize is in order to fetch some data,
42 * e.g. from a legacy system or interface.
43 *
44 * Creation date: (10.09.00 09:38:20)
45 */
46 public void initialize();
47 }