001: /**
002: * $Id: ConsumerAttributes.java,v 1.4 2005/11/24 08:39:55 pa157442 Exp $
003: * Copyright 2005 Sun Microsystems, Inc. All
004: * rights reserved. Use of this product is subject
005: * to license terms. Federal Acquisitions:
006: * Commercial Software -- Government Users
007: * Subject to Standard License Terms and
008: * Conditions.
009: *
010: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
011: * are trademarks or registered trademarks of Sun Microsystems,
012: * Inc. in the United States and other countries.
013: */package com.sun.portal.wsrp.consumer.admin.mbeans;
014:
015: import java.util.ArrayList;
016: import java.util.HashMap;
017:
018: import com.sun.portal.admin.common.AttributeInfo;
019:
020: public class ConsumerAttributes {
021: public static final String IS_DISABLED = "IsDisabled";
022: public static final String USER_PROFILE_MAPPING = "UserProfileMapping";
023: public static final String NAME = "Name";
024:
025: public static final String ENABLED = "Enabled";
026: public static final String WSDL_URL = "WSDL_URL";
027: public static final String SERVICE_DESC_LAST_MOD = "ServiceDescriptionLastUpdated";
028: public static final String ALL_ROLES = "AllRoles";
029: public static final String USER_CATEGORY_DESCRIPTIONS = "UserCategoryDescriptions";
030: public static final String USER_CATEGORY_MAPPING = "UserCategoryMapping";
031: public static final String REGISTRATION_REQUIRED = "RegistrationRequired";
032: public static final String REGISTRATION_HANDLE = "RegistrationHandle";
033: public static final String REGISTRATION_PROPERTY_DESCRIPTION = "RegistrationPropertyDescription";
034: public static final String REGISTRATION_PROPERTIES = "RegistrationProperties";
035: public static final String IDENTITY_PROPAGATION_TYPE = "IdentityPropagationType";
036:
037: public static final HashMap CONSUMER_MAP = new HashMap();
038: public static final HashMap PE_MAP = new HashMap();
039:
040: static {
041: // Consumer attributes map.
042: ArrayList value = new ArrayList();
043: value.add(new Integer(AttributeInfo.SINGLE_BOOLEAN));
044: value.add("psadmin.list.consumer.isdisabled.desc");
045: value.add(new Integer(AttributeInfo.READ_WRITE));
046: CONSUMER_MAP.put(IS_DISABLED, value);
047:
048: value = new ArrayList();
049: value.add(new Integer(AttributeInfo.LIST_STRING));
050: value.add("psadmin.list.consumer.userprofilemapping.desc");
051: value.add(new Integer(AttributeInfo.READ_WRITE));
052: CONSUMER_MAP.put(USER_PROFILE_MAPPING, value);
053:
054: value = new ArrayList();
055: value.add(new Integer(AttributeInfo.SINGLE_STRING));
056: value.add("psadmin.list.consumer.name.desc");
057: value.add(new Integer(AttributeInfo.READ_WRITE));
058: CONSUMER_MAP.put(NAME, value);
059:
060: // Configured producer (a.k.a. producer entity) attributes map.
061: value = new ArrayList();
062: value.add(new Integer(AttributeInfo.SINGLE_STRING));
063: value.add("psadmin.list.consumer.name.desc");
064: value.add(new Integer(AttributeInfo.READ_WRITE));
065: PE_MAP.put(NAME, value);
066:
067: value = new ArrayList();
068: value.add(new Integer(AttributeInfo.SINGLE_BOOLEAN));
069: value.add("psadmin.list.consumer.enabled.desc");
070: value.add(new Integer(AttributeInfo.READ_WRITE));
071: PE_MAP.put(ENABLED, value);
072:
073: value = new ArrayList();
074: value.add(new Integer(AttributeInfo.SINGLE_STRING));
075: value.add("psadmin.list.consumer.wsdlurl.desc");
076: value.add(new Integer(AttributeInfo.READ_ONLY));
077: PE_MAP.put(WSDL_URL, value);
078:
079: value = new ArrayList();
080: value.add(new Integer(AttributeInfo.SINGLE_NUMERIC));
081: value.add("psadmin.list.consumer.servicedesclastmod.desc");
082: value.add(new Integer(AttributeInfo.READ_ONLY));
083: PE_MAP.put(SERVICE_DESC_LAST_MOD, value);
084:
085: value = new ArrayList();
086: value.add(new Integer(AttributeInfo.LIST_STRING));
087: value.add("psadmin.list.consumer.allroles.desc");
088: value.add(new Integer(AttributeInfo.READ_ONLY));
089: PE_MAP.put(ALL_ROLES, value);
090:
091: value = new ArrayList();
092: value.add(new Integer(AttributeInfo.LIST_STRING));
093: value
094: .add("psadmin.list.consumer.usercategorydescriptions.desc");
095: value.add(new Integer(AttributeInfo.READ_ONLY));
096: PE_MAP.put(USER_CATEGORY_DESCRIPTIONS, value);
097:
098: value = new ArrayList();
099: value.add(new Integer(AttributeInfo.LIST_STRING));
100: value.add("psadmin.list.consumer.usercategorymapping.desc");
101: value.add(new Integer(AttributeInfo.READ_WRITE));
102: PE_MAP.put(USER_CATEGORY_MAPPING, value);
103:
104: value = new ArrayList();
105: value.add(new Integer(AttributeInfo.SINGLE_BOOLEAN));
106: value.add("psadmin.list.consumer.registrationrequired.desc");
107: value.add(new Integer(AttributeInfo.READ_ONLY));
108: PE_MAP.put(REGISTRATION_REQUIRED, value);
109:
110: value = new ArrayList();
111: value.add(new Integer(AttributeInfo.SINGLE_STRING));
112: value.add("psadmin.list.consumer.registrationhandle.desc");
113: value.add(new Integer(AttributeInfo.READ_ONLY));
114: PE_MAP.put(REGISTRATION_HANDLE, value);
115:
116: value = new ArrayList();
117: value.add(new Integer(AttributeInfo.LIST_STRING));
118: value
119: .add("psadmin.list.consumer.registrationpropertydescription.desc");
120: value.add(new Integer(AttributeInfo.READ_ONLY));
121: PE_MAP.put(REGISTRATION_PROPERTY_DESCRIPTION, value);
122:
123: value = new ArrayList();
124: value.add(new Integer(AttributeInfo.LIST_STRING));
125: value.add("psadmin.list.consumer.registrationproperties.desc");
126: value.add(new Integer(AttributeInfo.READ_WRITE));
127: PE_MAP.put(REGISTRATION_PROPERTIES, value);
128:
129: value = new ArrayList();
130: value.add(new Integer(AttributeInfo.SINGLE_STRING));
131: value
132: .add("psadmin.list.consumer.indentitypropagationtype.desc");
133: value.add(new Integer(AttributeInfo.READ_WRITE));
134: PE_MAP.put(IDENTITY_PROPAGATION_TYPE, value);
135: }
136: }
|