|
Openfire 3.5.0 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IQRegisterInfo
Handle the various user registration settings that are valid under XMPP. Although user registration is a fairly flexible beast in XMPP, much of registration is redundant to vCard and no mainstream clients support registration fields with much fidelity anyhow. So registration is kept simple, and we defer to vCard for user information gathering.
Field Summary | |
---|---|
static int |
ADDRESS
The user's address |
static int |
CITY
The user's city |
static int |
DATE
The date of registration |
static int |
EMAIL
The user's email |
static int |
FIELD_IN_USER_PROPS
Fields should be stored in user properties |
static int |
FIELD_IN_VCARD
Fields should be stored in vCard |
static String[] |
FIELD_NAMES
Element names of the fields, array index matches type |
static int |
FIRST_NAME
The user's first name |
static int |
LAST_NAME
The user's last name |
static int |
MISC
Misc data to associate with the account |
static int |
NAME
The user's full name |
static int |
PHONE
The user's phone |
static int |
STATE
The user's state |
static int |
TEXT
Misc text to associate with the account |
static int |
UNKNOWN
An unknown type |
static int |
URL
The user's url |
static int |
ZIP
The user's zip code |
Method Summary | |
---|---|
String |
getFieldElementName(int fieldType)
Obtain the element name from a field type. |
int |
getFieldStoreLocation()
Determines where field information is stored. |
int |
getFieldType(String fieldElementName)
Get the setting type from a field's element name. |
boolean |
isFieldRequired(int fieldType)
Determines if a given field is required for registration. |
boolean |
isOpenRegistrationSupported()
Determines if users can automatically register user accounts without system administrator intervention. |
void |
setFieldRequired(int fieldType,
boolean isRequired)
Tells the server whether to require a registration field or not. |
void |
setFieldStoreLocation(int location)
Sets the location for storing field information. |
void |
setOpenRegistrationSupported(boolean isSupported)
Tells the server whether to support open registration or not. |
Field Detail |
---|
static final int UNKNOWN
static final int EMAIL
static final int NAME
static final int FIRST_NAME
static final int LAST_NAME
static final int ADDRESS
static final int CITY
static final int STATE
static final int ZIP
static final int PHONE
static final int URL
static final int DATE
static final int MISC
static final int TEXT
static final String[] FIELD_NAMES
static final int FIELD_IN_USER_PROPS
static final int FIELD_IN_VCARD
Method Detail |
---|
int getFieldStoreLocation()
void setFieldStoreLocation(int location) throws UnauthorizedException
location
- The location type
UnauthorizedException
- If you don't have permission to adjust this settingboolean isOpenRegistrationSupported()
void setOpenRegistrationSupported(boolean isSupported) throws UnauthorizedException
isSupported
- True if open registration is supported
UnauthorizedException
- If you don't have permission to change this settingboolean isFieldRequired(int fieldType)
fieldType
- The field to check
void setFieldRequired(int fieldType, boolean isRequired) throws UnauthorizedException
fieldType
- The field to require.isRequired
- True if the field should be required
UnauthorizedException
- If you don't have permission to change this settingint getFieldType(String fieldElementName)
fieldElementName
- The known element name
String getFieldElementName(int fieldType)
fieldType
- The known field type
|
Openfire 3.5.0 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |