01: /*
02: * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05:
06: package com.sun.portal.sra.admin.context;
07:
08: import java.util.Properties;
09:
10: public class AMPropertyContextImpl implements AMPropertyContext {
11:
12: protected Properties p = null;
13: private static final String ERROR = "error";
14:
15: public AMPropertyContextImpl(Properties p) {
16: this .p = p;
17: }
18:
19: public String getDPROVersion() {
20: return p.getProperty(DPRO_VERSION);
21: }
22:
23: public String getPlatformLocale() {
24: return p.getProperty(PLATFORM_LOCALE);
25: }
26:
27: public String getUserNamingAttr() {
28: return p.getProperty(USER_NAMING_ATTRIBUTE);
29: }
30:
31: public String getJDKPath() {
32: return p.getProperty(JDK_PATH);
33: }
34:
35: public String getAMServerProtocol() {
36: return p.getProperty(COM_IPLANET_AM_SERVER_PROTOCOL);
37: }
38:
39: public String getAMServerHost() {
40: return p.getProperty(COM_IPLANET_AM_SERVER_HOST);
41: }
42:
43: public String getAMServerPort() {
44: return p.getProperty(COM_IPLANET_AM_SERVER_PORT);
45: }
46:
47: public String getDefaultOrganization() {
48: return p.getProperty(COM_IPLANET_AM_DEFAULTORG);
49: }
50:
51: public String getAMServerDeployURI() {
52: return p.getProperty(AM_SERVER_DEPLOY_URI);
53: }
54:
55: public String getEncryptionKey() {
56: return p.getProperty(AM_ENCRYPTION_PWD);
57: }
58:
59: public String getDebugLevel() {
60: return p.getProperty(COM_IPLANET_SERVICES_DEBUG_LEVEL, ERROR);
61: }
62:
63: }
|