01: /*
02: * Copyright 2001 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05: package com.sun.portal.rewriter.services;
06:
07: import java.util.Observable;
08: import java.util.Set;
09:
10: /**
11: * All the DataService provides will need to implement this interface
12: *
13: * @version 1.0 12/15/2001
14: * @author Raja Nagendra Kumar, Nagendra.Raja@sun.com
15: */
16: public interface DataService {
17: public static final String PROPERTY_CUSTOM_DATA_SERVICE_IMPLEMENTOR = "CUSTOM_DATA_SERVICE_IMPLEMENTOR";
18: public static final String PROPERTY_DATA_SERVICE_BASE = "DATA_SERVICE_BASE";
19:
20: public static final String PROPERTY_DATA_SERIVCE_USER = "USER_NAME";
21: public static final String PROPERTY_DATA_SERIVCE_USER_PASSWORD = "PASSWORD";
22:
23: public static final String CLI_CONTEXT_ID = "CLI";
24:
25: public static final String IDS = "IDS";
26: public static final String IDSAME = "IDSAME";
27: public static final String CUSTOM = "CUSTOM";
28:
29: public String storeXML(String aKey, String aXMLString)
30: throws DataServiceException, UnsupportedOperationException;
31:
32: public String deleteKey(String aKey) throws DataServiceException,
33: UnsupportedOperationException;
34:
35: public String retrieveXML(String aKey) throws DataServiceException;
36:
37: public Set retrieveKeys() throws DataServiceException;
38:
39: public String matchesWithID(String aKey)
40: throws DataServiceException;
41:
42: public Observable getChangeNotifier();
43:
44: }//Interface DataService
|