Interface IQRegisterInfo


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.
Author:
Iain Shigeoka
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The user's address
    static final int
    The user's city
    static final int
    The date of registration
    static final int
    The user's email
    static final int
    Fields should be stored in user properties
    static final int
    Fields should be stored in vCard
    static final String[]
    Element names of the fields, array index matches type
    static final int
    The user's first name
    static final int
    The user's last name
    static final int
    Misc data to associate with the account
    static final int
    The user's full name
    static final int
    The user's phone
    static final int
    The user's state
    static final int
    Misc text to associate with the account
    static final int
    An unknown type
    static final int
    The user's url
    static final int
    The user's zip code
  • Method Summary

    Modifier and Type
    Method
    Description
    getFieldElementName(int fieldType)
    Obtain the element name from a field type.
    int
    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
    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 Details

  • Method Details

    • getFieldStoreLocation

      int getFieldStoreLocation()
      Determines where field information is stored.
      Returns:
      the location type.
    • setFieldStoreLocation

      void setFieldStoreLocation(int location) throws UnauthorizedException
      Sets the location for storing field information.
      Parameters:
      location - The location type
      Throws:
      UnauthorizedException - If you don't have permission to adjust this setting
    • isOpenRegistrationSupported

      boolean isOpenRegistrationSupported()
      Determines if users can automatically register user accounts without system administrator intervention.
      Returns:
      True if open registration is supported
    • setOpenRegistrationSupported

      void setOpenRegistrationSupported(boolean isSupported) throws UnauthorizedException
      Tells the server whether to support open registration or not.
      Parameters:
      isSupported - True if open registration is supported
      Throws:
      UnauthorizedException - If you don't have permission to change this setting
    • isFieldRequired

      boolean isFieldRequired(int fieldType)
      Determines if a given field is required for registration.
      Parameters:
      fieldType - The field to check
      Returns:
      True if the field is required
    • setFieldRequired

      void setFieldRequired(int fieldType, boolean isRequired) throws UnauthorizedException
      Tells the server whether to require a registration field or not.
      Parameters:
      fieldType - The field to require.
      isRequired - True if the field should be required
      Throws:
      UnauthorizedException - If you don't have permission to change this setting
    • getFieldType

      int getFieldType(String fieldElementName)
      Get the setting type from a field's element name. This is a convenience for looking up the correct field type from an element name.
      Parameters:
      fieldElementName - The known element name
      Returns:
      The field type, one of the static int types defined in this class
    • getFieldElementName

      String getFieldElementName(int fieldType)
      Obtain the element name from a field type. This is a convience for looking up the correct field element name from it's field type.
      Parameters:
      fieldType - The known field type
      Returns:
      The field element name