001: /**
002: * $Id: DSAMEConstants.java,v 1.4 2005/04/11 17:40:36 dpolla Exp $
003: * Copyright 2002 Sun Microsystems, Inc. Allrights reserved. Use of
004: * this product is subjectto license terms. Federal Acquisitions:
005: * Commercial Software -- Government Users Subject to Standard License
006: * Terms and Conditions.
007: *
008: * Sun, Sun Microsystems, the Sun logo, and Sun ONE are trademarks or
009: * registered trademarks of Sun Microsystems,Inc. in the United States
010: * and other countries.
011: */package com.sun.ssoadapter.config;
012:
013: public interface DSAMEConstants {
014: //
015: // default version for our services
016: //
017: public static String VERSION = "1.0";
018:
019: //
020: // Possible Scopes: The SchemaType is an object and we have to use
021: // its .equals() method to check scope - perf problem.
022: // Hence we use integers to represent them. Reserve 0-2 for future use.
023: //
024:
025: public static final int UNKNOWN_SCOPE = -1;
026:
027: public static final int UNKNOWN_SERVICE = 3;
028: public static final int UNKNOWN_ATTRIBUTE = 4;
029:
030: public static final int GLOBAL = 5;
031: public static final int ORGANIZATION = 6;
032: public static final int INSTANCE = 7;
033: public static final int DYNAMIC = 8;
034: public static final int USER = 9;
035: public static final int POLICY = 10;
036:
037: //
038: // For debug: the positions == their values
039: //
040: public static final String scopeArray[] = { "", "", "",
041: "UNKNOWN_SERVICE", "UNKNOWN_ATTRIBUTE", "GLOBAL",
042: "ORGANIZATION", "INSTANCE", "DYNAMIC", "USER", "POLICY" };
043:
044: //
045: // Client type string Separator
046: //
047: public static final String SEPARATOR = "|";
048:
049: //
050: // Possible Types - (we are interested in)
051: // Map: AttributeSchema.Type.LIST & AttributeSchema.Type.SINGLE
052: //
053:
054: public static final int UNKNOWN_TYPE = -1;
055:
056: public static final int SINGLE = 1;
057: public static final int SINGLE_CHOICE = 2;
058: public static final int LIST = 3;
059: public static final int MULTIPLE_CHOICE = 4;
060: public static final int SIGNATURE = 5;
061: public static final int VALIDATOR = 6;
062:
063: public static final String DEFAULT_CLIENT_TYPE = "default";
064:
065: public static final String DEFAULT_TYPE = "default" + SEPARATOR;
066: public static final String GENERIC_HTML = "genericHTML" + SEPARATOR;
067: public static final String CLIENT_TYPE = "clientType";
068:
069: //
070: // Used to check if the values are client aware
071: //
072: public static final int CONTAINS_CLIENT = 1;
073: public static final int CONTAINS_OTHER_CLIENTS = 2;
074: public static final int CONTAINS_DEFAULT = 3;
075: public static final int NOT_CLIENTAWARE = 4;
076:
077: //
078: // For debug: the positions == their values
079: //
080: public static final String parseTypeArray[] = { "",
081: "CONTAINS_CLIENT", "CONTAINS_OTHER_CLIENTS",
082: "CONTAINS_DEFAULT", "NOT_CLIENTAWARE" };
083:
084: //
085: // Message in Exceptions
086: //
087: public static final String cannotSetMultiInSingle = "Cannot set multi-values in attribute defined as SINGLE. ";
088:
089: public static final String cannotForceSingle = ":Cannot forceClientAwareness on an attribute defined as SINGLE.";
090:
091: //
092: // Used to return parsed values
093: //
094: public static final String ORIG_SET = "originalSet";
095: public static final String DEFAULT_SET = "defaultSet";
096: public static final String CLIENT_SET = "clientSet";
097: public static final String OTHER_CLIENT_SET = "otherClientSet";
098: public static final String NOT_AWARE_SET = "notAwareSet";
099:
100: //
101: // debug file name
102: //
103: public static final String DEBUG_FILENAME = "SAALContext";
104:
105: //
106: // ClientType Property strings
107: //
108: public static final String CONTENTTYPE = "contentType";
109:
110: public static final String FILEPATH = "filePath";
111:
112: public static final String SERVICENAME = "serviceName";
113:
114: //
115: // Used by ConfigContext
116: //
117:
118: //
119: // session-less object names
120: //
121:
122: public static final String MAP_PROPERTIES = "SAALContext";
123:
124: public static final String CLIENTAWARE_APP_CONTEXT_CLASSNAME = "clientAwareAppContextClassName";
125:
126: public static final String TEMPLATE_BASEDIR = "templateBaseDir";
127:
128: public static final String SERVICE_APP_CONTEXT_CLASSNAME = "serviceAppContextClassName";
129:
130: public static final String DEBUG_CONTEXT_CLASSNAME = "debugContextClassName";
131:
132: public static final String SESSION_APP_CONTEXT_CLASSNAME = "sessionAppContextClassName";
133:
134: public static final String CLIENT_CONTEXT_CLASSNAME = "clientContextClassName";
135:
136: public static final String FILELOOKUP_CONTEXT_CLASSNAME = "fileLookupContextClassName";
137:
138: //
139: // session object names
140: //
141:
142: public static final String CLIENTAWARE_USER_CONTEXT_CLASSNAME = "clientAwareUserContextClassName";
143:
144: public static final String CLIENTAWARE_AUTHLESS_USER_CONTEXT_CLASSNAME = "clientAwareAuthlessUserContextClassName";
145:
146: public static final String SERVICE_USER_CONTEXT_CLASSNAME = "serviceUserContextClassName";
147:
148: public static final String SESSION_USER_CONTEXT_CLASSNAME = "sessionUserContextClassName";
149:
150: //
151: // Service Names
152: //
153:
154: public static final String SUN_SSOADAPTER_SERVICE = "SunSSOAdapterService";
155:
156: public static final String ATTR_ENABLE_AUTHLESS_SUPPORT = "sunSSOAdapterEnableAuthlessSupport";
157:
158: public static final String ATTR_AUTHORIZEDAUTHLESSUIDS = "sunSSOAdapterAuthorizedAuthlessUIDs";
159:
160: }
|