001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: package org.apache.pluto.spi.optional;
018:
019: /**
020: * As defined in PLT.D of the JSR-168 specification, this class defines a set of
021: * attribute names for user information and their intended
022: * meaning. To allow portals an automated mapping of commonly used user information
023: * attributes portlet programmers should use these attribute names. These attribute names
024: * are derived from the Platform for Privacy Preferences 1.0 (P3P 1.0) Specification by the
025: * W3C (http://www.w3c.org/TR/P3P).
026: *
027: */
028: public interface P3PAttributes {
029:
030: /* NOTE: The user.bdate must consist of a string that represents the time in milliseconds
031: since January 1, 1970, 00:00:00 GMT. */
032: public static final String USER_BDATE = "user.bdate";
033: public static final String USER_GENDER = "user.gender";
034: public static final String USER_EMPLOYER = "user.employer";
035: public static final String USER_DEPARTMENT = "user.department";
036: public static final String USER_JOBTITLE = "user.jobtitle";
037: public static final String USER_NAME_PREFIX = "user.name.prefix";
038: public static final String USER_NAME_GIVEN = "user.name.given";
039: public static final String USER_NAME_FAMILY = "user.name.family";
040: public static final String USER_NAME_MIDDLE = "user.name.middle";
041: public static final String USER_NAME_SUFFIX = "user.name.suffix";
042: public static final String USER_NAME_NICKNAME = "user.name.nickName";
043: public static final String USER_HOME_INFO_POSTAL_NAME = "user.home-info.postal.name";
044: public static final String USER_HOME_INFO_POSTAL_STREET = "user.home-info.postal.street";
045: public static final String USER_HOME_INFO_POSTAL_CITY = "user.home-info.postal.city";
046: public static final String USER_HOME_INFO_POSTAL_STATEPROV = "user.home-info.postal.stateprov";
047: public static final String USER_HOME_INFO_POSTAL_POSTALCODE = "user.home-info.postal.postalcode";
048: public static final String USER_HOME_INFO_POSTAL_COUNTRY = "user.home-info.postal.country";
049: public static final String USER_HOME_INFO_POSTAL_ORGANIZATION = "user.home-info.postal.organization";
050: public static final String USER_HOME_INFO_TELECOM_TELEPHONE_INTCODE = "user.home-info.telecom.telephone.intcode";
051: public static final String USER_HOME_INFO_TELECOM_TELEPHONE_LOCCODE = "user.home-info.telecom.telephone.loccode";
052: public static final String USER_HOME_INFO_TELECOM_TELEPHONE_NUMBER = "user.home-info.telecom.telephone.number";
053: public static final String USER_HOME_INFO_TELECOM_TELEPHONE_EXT = "user.home-info.telecom.telephone.ext";
054: public static final String USER_HOME_INFO_TELECOM_TELEPHONE_COMMENT = "user.home-info.telecom.telephone.comment";
055: public static final String USER_HOME_INFO_TELECOM_FAX_INTCODE = "user.home-info.telecom.fax.intcode";
056: public static final String USER_HOME_INFO_TELECOM_FAX_LOCCODE = "user.home-info.telecom.fax.loccode";
057: public static final String USER_HOME_INFO_TELECOM_FAX_NUMBER = "user.home-info.telecom.fax.number";
058: public static final String USER_HOME_INFO_TELECOM_FAX_EXT = "user.home-info.telecom.fax.ext";
059: public static final String USER_HOME_INFO_TELECOM_FAX_COMMENT = "user.home-info.telecom.fax.comment";
060: public static final String USER_HOME_INFO_TELECOM_MOBILE_INTCODE = "user.home-info.telecom.mobile.intcode";
061: public static final String USER_HOME_INFO_TELECOM_MOBILE_LOCCODE = "user.home-info.telecom.mobile.loccode";
062: public static final String USER_HOME_INFO_TELECOM_MOBILE_NUMBER = "user.home-info.telecom.mobile.number";
063: public static final String USER_HOME_INFO_TELECOM_MOBILE_EXT = "user.home-info.telecom.mobile.ext";
064: public static final String USER_HOME_INFO_TELECOM_MOBILE_COMMENT = "user.home-info.telecom.mobile.comment";
065: public static final String USER_HOME_INFO_TELECOM_PAGER_INTCODE = "user.home-info.telecom.pager.intcode";
066: public static final String USER_HOME_INFO_TELECOM_PAGER_LOCCODE = "user.home-info.telecom.pager.loccode";
067: public static final String USER_HOME_INFO_TELECOM_PAGER_NUMBER = "user.home-info.telecom.pager.number";
068: public static final String USER_HOME_INFO_TELECOM_PAGER_EXT = "user.home-info.telecom.pager.ext";
069: public static final String USER_HOME_INFO_TELECOM_PAGER_COMMENT = "user.home-info.telecom.pager.comment";
070: public static final String USER_HOME_INFO_ONLINE_EMAIL = "user.home-info.online.email";
071: public static final String USER_HOME_INFO_ONLINE_URI = "user.home-info.online.uri";
072: public static final String USER_BUSINESS_INFO_POSTAL_NAME = "user.business-info.postal.name";
073: public static final String USER_BUSINESS_INFO_POSTAL_STREET = "user.business-info.postal.street";
074: public static final String USER_BUSINESS_INFO_POSTAL_CITY = "user.business-info.postal.city";
075: public static final String USER_BUSINESS_INFO_POSTAL_STATEPROV = "user.business-info.postal.stateprov";
076: public static final String USER_BUSINESS_INFO_POSTAL_POSTALCODE = "user.business-info.postal.postalcode";
077: public static final String USER_BUSINESS_INFO_POSTAL_COUNTRY = "user.business-info.postal.country";
078: public static final String USER_BUSINESS_INFO_POSTAL_ORGANIZATION = "user.business-info.postal.organization";
079: public static final String USER_BUSINESS_INFO_TELECOM_TELEPHONE_INTCODE = "user.business-info.telecom.telephone.intcode";
080: public static final String USER_BUSINESS_INFO_TELECOM_TELEPHONE_LOCCODE = "user.business-info.telecom.telephone.loccode";
081: public static final String USER_BUSINESS_INFO_TELECOM_TELEPHONE_NUMBER = "user.business-info.telecom.telephone.number";
082: public static final String USER_BUSINESS_INFO_TELECOM_TELEPHONE_EXT = "user.business-info.telecom.telephone.ext";
083: public static final String USER_BUSINESS_INFO_TELECOM_TELEPHONE_COMMENT = "user.business-info.telecom.telephone.comment";
084: public static final String USER_BUSINESS_INFO_TELECOM_FAX_INTCODE = "user.business-info.telecom.fax.intcode";
085: public static final String USER_BUSINESS_INFO_TELECOM_FAX_LOCCODE = "user.business-info.telecom.fax.loccode";
086: public static final String USER_BUSINESS_INFO_TELECOM_FAX_NUMBER = "user.business-info.telecom.fax.number";
087: public static final String USER_BUSINESS_INFO_TELECOM_FAX_EXT = "user.business-info.telecom.fax.ext";
088: public static final String USER_BUSINESS_INFO_TELECOM_FAX_COMMENT = "user.business-info.telecom.fax.comment";
089: public static final String USER_BUSINESS_INFO_TELECOM_MOBILE_INTCODE = "user.business-info.telecom.mobile.intcode";
090: public static final String USER_BUSINESS_INFO_TELECOM_MOBILE_LOCCODE = "user.business-info.telecom.mobile.loccode";
091: public static final String USER_BUSINESS_INFO_TELECOM_MOBILE_NUMBER = "user.business-info.telecom.mobile.number";
092: public static final String USER_BUSINESS_INFO_TELECOM_MOBILE_EXT = "user.business-info.telecom.mobile.ext";
093: public static final String USER_BUSINESS_INFO_TELECOM_MOBILE_COMMENT = "user.business-info.telecom.mobile.comment";
094: public static final String USER_BUSINESS_INFO_TELECOM_PAGER_INTCODE = "user.business-info.telecom.pager.intcode";
095: public static final String USER_BUSINESS_INFO_TELECOM_PAGER_LOCCODE = "user.business-info.telecom.pager.loccode";
096: public static final String USER_BUSINESS_INFO_TELECOM_PAGER_NUMBER = "user.business-info.telecom.pager.number";
097: public static final String USER_BUSINESS_INFO_TELECOM_PAGER_EXT = "user.business-info.telecom.pager.ext";
098: public static final String USER_BUSINESS_INFO_TELECOM_PAGER_COMMENT = "user.business-info.telecom.pager.comment";
099: public static final String USER_BUSINESS_INFO_ONLINE_EMAIL = "user.business-info.online.email";
100: public static final String USER_BUSINESS_INFO_ONLINE_URI = "user.business-info.online.uri";
101:
102: public static final String[] ATTRIBUTE_ARRAY = { "user.bdate",
103: "user.gender", "user.employer", "user.department",
104: "user.jobtitle", "user.name.prefix", "user.name.given",
105: "user.name.family", "user.name.middle", "user.name.suffix",
106: "user.name.nickName", "user.home-info.postal.name",
107: "user.home-info.postal.street",
108: "user.home-info.postal.city",
109: "user.home-info.postal.stateprov",
110: "user.home-info.postal.postalcode",
111: "user.home-info.postal.country",
112: "user.home-info.postal.organization",
113: "user.home-info.telecom.telephone.intcode",
114: "user.home-info.telecom.telephone.loccode",
115: "user.home-info.telecom.telephone.number",
116: "user.home-info.telecom.telephone.ext",
117: "user.home-info.telecom.telephone.comment",
118: "user.home-info.telecom.fax.intcode",
119: "user.home-info.telecom.fax.loccode",
120: "user.home-info.telecom.fax.number",
121: "user.home-info.telecom.fax.ext",
122: "user.home-info.telecom.fax.comment",
123: "user.home-info.telecom.mobile.intcode",
124: "user.home-info.telecom.mobile.loccode",
125: "user.home-info.telecom.mobile.number",
126: "user.home-info.telecom.mobile.ext",
127: "user.home-info.telecom.mobile.comment",
128: "user.home-info.telecom.pager.intcode",
129: "user.home-info.telecom.pager.loccode",
130: "user.home-info.telecom.pager.number",
131: "user.home-info.telecom.pager.ext",
132: "user.home-info.telecom.pager.comment",
133: "user.home-info.online.email", "user.home-info.online.uri",
134: "user.business-info.postal.name",
135: "user.business-info.postal.street",
136: "user.business-info.postal.city",
137: "user.business-info.postal.stateprov",
138: "user.business-info.postal.postalcode",
139: "user.business-info.postal.country",
140: "user.business-info.postal.organization",
141: "user.business-info.telecom.telephone.intcode",
142: "user.business-info.telecom.telephone.loccode",
143: "user.business-info.telecom.telephone.number",
144: "user.business-info.telecom.telephone.ext",
145: "user.business-info.telecom.telephone.comment",
146: "user.business-info.telecom.fax.intcode",
147: "user.business-info.telecom.fax.loccode",
148: "user.business-info.telecom.fax.number",
149: "user.business-info.telecom.fax.ext",
150: "user.business-info.telecom.fax.comment",
151: "user.business-info.telecom.mobile.intcode",
152: "user.business-info.telecom.mobile.loccode",
153: "user.business-info.telecom.mobile.number",
154: "user.business-info.telecom.mobile.ext",
155: "user.business-info.telecom.mobile.comment",
156: "user.business-info.telecom.pager.intcode",
157: "user.business-info.telecom.pager.loccode",
158: "user.business-info.telecom.pager.number",
159: "user.business-info.telecom.pager.ext",
160: "user.business-info.telecom.pager.comment",
161: "user.business-info.online.email",
162: "user.business-info.online.uri" };
163: }
|