1 11 12 package org.jivesoftware.messenger.handler; 13 14 import org.jivesoftware.messenger.auth.UnauthorizedException; 15 16 26 public interface IQRegisterInfo { 27 28 31 int UNKNOWN = -1; 32 35 int EMAIL = 0; 36 39 int NAME = 1; 40 43 int FIRST_NAME = 2; 44 47 int LAST_NAME = 3; 48 51 int ADDRESS = 4; 52 55 int CITY = 5; 56 59 int STATE = 6; 60 63 int ZIP = 7; 64 67 int PHONE = 8; 68 71 int URL = 9; 72 75 int DATE = 10; 76 79 int MISC = 11; 80 83 int TEXT = 12; 84 85 88 String [] FIELD_NAMES = { 89 "email", 90 "name", 91 "first", 92 "last", 93 "address", 94 "city", 95 "state", 96 "zip", 97 "phone", 98 "url", 99 "date", 100 "misc", 101 "text" 102 }; 103 104 107 int FIELD_IN_USER_PROPS = 0; 108 111 int FIELD_IN_VCARD = 0; 112 113 118 public int getFieldStoreLocation(); 119 120 127 public void setFieldStoreLocation(int location) throws UnauthorizedException; 128 129 135 public boolean isOpenRegistrationSupported(); 136 137 144 public void setOpenRegistrationSupported(boolean isSupported) throws UnauthorizedException; 145 146 152 public boolean isFieldRequired(int fieldType); 153 154 162 public void setFieldRequired(int fieldType, boolean isRequired) throws UnauthorizedException; 163 164 171 public int getFieldType(String fieldElementName); 172 173 180 public String getFieldElementName(int fieldType); 181 } 182 | Popular Tags |