From 76d5907eaaec4ed552f562bfb2205b7397edc842 Mon Sep 17 00:00:00 2001 From: Emil Ivov Date: Mon, 26 Jun 2006 23:29:44 +0000 Subject: [PATCH] Added predefined names for use by operation sets ServerStoredAccountInfo and ServerStoredUserInfo when referring to common used details --- .../service/protocol/ServerStoredDetails.java | 139 ++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100644 src/net/java/sip/communicator/service/protocol/ServerStoredDetails.java diff --git a/src/net/java/sip/communicator/service/protocol/ServerStoredDetails.java b/src/net/java/sip/communicator/service/protocol/ServerStoredDetails.java new file mode 100644 index 000000000..8b6e23ed7 --- /dev/null +++ b/src/net/java/sip/communicator/service/protocol/ServerStoredDetails.java @@ -0,0 +1,139 @@ +/* + * SIP Communicator, the OpenSource Java VoIP and Instant Messaging client. + * + * Distributable under LGPL license. + * See terms of license at gnu.org. + */ +package net.java.sip.communicator.service.protocol; + +/** + * The interface contains the names of a number of details that may be stored + * on a server or a p2p network depending on the protocol. The interface and its + * static fields are meant for usage with the getXxx() methods of operation sets + * OperationSetServerStoredAccountInfo and OperationSetServerStoredUserInfo. + *

+ * The names enumerated in this interface do not in anyway represent an + * exhaustive set covering all possible details (the number of which is next + * to infinite). + *

+ * Nevertheless, if a detail, supported by an Operation Set is enumerated here, + * the implementors are strongly encouraged to use the name defined below. + *

+ * @author Emil Ivov + */ +public interface ServerStoredDetails +{ + /** + * A street name and number associated with a home address. + */ + public static final String HOME_ADDRESS = "HomeAddress"; + + /** + * A City name associated with a home address. + */ + public static final String HOME_CITY = "HomeCity"; + + /** + * The name of a state/province/region associated with a home address. + */ + public static final String HOME_STATE_OR_PROVINCE = "HomeStateOrProvince"; + + /** + * The name of a country associated with a home address. + */ + public static final String HOME_COUNTRY = "HomeCountry"; + + /** + * The name of a zip or postal code associated with a home address. + */ + public static final String HOME_ZIP_OR_POSTAL_CODE = "HomeZipOrPostalCode"; + + /** + * A personal web page. + */ + public static final String WEB_PAGE = "WebPage"; + + + /** + * A street name and number associated with a work address. + */ + public static final String WORK_ADDRESS = "WorkAddress"; + + /** + * A City name associated with a work address. + */ + public static final String WORK_CITY = "WorkCity"; + + /** + * The name of a state/province/region associated with a work address. + */ + public static final String WORK_STATE_OR_PROVINCE="WorkStateOrProvince"; + + /** + * The name of a country associated with a work address. + */ + public static final String WORK_COUNTRY = "WorkCountry"; + + /** + * The name of a zip or postal code associated with a work address. + */ + public static final String WORK_ZIP_OR_POSTAL_CODE = "WorkZipOrPostalCode"; + + /** + * The address of a business web page. + */ + public static final String WORK_WEB_PAGE = "WorkWebPage"; + + /** + * The name of the organization (company, ngo, university, hospital or other) + * employing the information author.. + */ + public static final String ORGANIZATION_NAME = "OrganizationName"; + + + /** + * The number of a private mobile. + */ + public static final String PRIVATE_MOBILE = "PrivateMobile"; + + /** + * The number of a business mobile. + */ + public static final String WORK_MOBILE = "WorkMobile"; + + /** + * A Fax number. + */ + public static final String FAX = "Fax"; + + /** + * A pager number. + */ + public static final String PAGER = "Pager"; + + + /** + * A first, given name. + */ + public static final String FIRST_NAME = "FirstName"; + + /** + * A Middle (father's) name. + */ + public static final String MIDDLE_NAME = "MiddleName"; + + /** + * A family name (surname). + */ + public static final String FAMILY_NAME = "FamilyName"; + + /** + * The name that should be displayed to identify the information author. + */ + public static final String DISPLAY_NAME = "DisplayName"; + + /** + * An informal name (nickname) used for referring to the subject. + */ + public static final String NICKNAME = "Nickname"; +}