public class JabberAccountRegistration extends JabberAccountID implements java.io.Serializable
ANONYMOUS_AUTH, BOSH_URL, BYPASS_GTALK_CAPABILITIES, DEFAULT_STUN_PORT, GMAIL_NOTIFICATIONS_ENABLED, GOOGLE_CONNECT_SRV, GOOGLE_CONTACTS_ENABLED, GOOGLE_USER_SUFFIX, OVERRIDE_PHONE_SUFFIX, SEND_KEEP_ALIVE, TELEPHONY_BYPASS_GTALK_CAPS
accountProperties, DEFAULTS_PREFIX
Constructor and Description |
---|
JabberAccountRegistration()
Initializes a new JabberAccountRegistration.
|
Modifier and Type | Method and Description |
---|---|
void |
addJingleNodes(JingleNodeDescriptor node)
Adds the given node to the list of additional JingleNodes.
|
void |
addStunServer(StunServerDescriptor stunServer)
Adds the given stunServer to the list of additional stun servers.
|
java.lang.String |
getAccountUniqueID()
Overrides to return UID loaded from edited AccountID.
|
java.util.List<JingleNodeDescriptor> |
getAdditionalJingleNodes()
Returns the List of all additional stun servers entered by the
user.
|
java.util.List<StunServerDescriptor> |
getAdditionalStunServers()
Returns the List of all additional stun servers entered by the
user.
|
java.lang.String |
getDefaultUserSufix()
Returns the user sufix.
|
EncodingsRegistrationUtil |
getEncodingsRegistration()
Returns EncodingsRegistrationUtil object which stores encodings
configuration.
|
SecurityAccountRegistration |
getSecurityRegistration()
Returns SecurityAccountRegistration object which stores security
settings.
|
protected java.lang.String |
getServerFromUserName(java.lang.String userName)
Parse the server part from the jabber id and set it to server as default
value.
|
java.lang.String |
getUserID()
Returns the user id associated with this account.
|
boolean |
isRememberPassword()
Returns TRUE if password has to remembered, FALSE otherwise.
|
void |
loadAccount(AccountID account,
org.osgi.framework.BundleContext bundleContext)
Fills this registration object with configuration properties from given
account.
|
void |
setDefaultUserSufix(java.lang.String userSufix)
Sets the default value of the user sufix.
|
void |
setRememberPassword(boolean rememberPassword)
Sets the rememberPassword value of this jabber account registration.
|
void |
setUserID(java.lang.String userID)
Sets the User ID of the jabber registration account.
|
void |
storeProperties(java.lang.String userName,
java.lang.String passwd,
java.lang.String protocolIconPath,
java.lang.String accountIconPath,
java.util.Map<java.lang.String,java.lang.String> accountProperties)
Stores Jabber account configuration held by this registration object into
givenaccountProperties map.
|
allowNonSecureConnection, getBoshUrl, getBypassGtalkCaps, getDefaultBool, getDefaultStr, getDefaultString, getJingleNodes, getOverridePhoneSuffix, getPriority, getResource, getSmsServerAddress, getSystemProtocolName, getTelephonyDomainBypassCaps, isAllowNonSecure, isAnonymousAuthUsed, isAutoDiscoverJingleNodes, isAutoDiscoverStun, isCarbonDisabled, isGmailNotificationEnabled, isGoogleContactsEnabled, isJingleDisabled, isJingleNodesAutoDiscoveryEnabled, isJingleNodesRelayEnabled, isJingleNodesSearchBuddiesEnabled, isResourceAutogenerated, isSendKeepAlive, isUseIce, isUseJingleNodes, isUseUPNP, setAllowNonSecure, setAutoDiscoverJingleNodes, setAutoDiscoverStun, setBoshUrl, setBypassGtalkCaps, setDisableCarbon, setDisableJingle, setGmailNotificationEnabled, setGoogleContactsEnabled, setOverridePhoneSufix, setPriority, setResource, setResourceAutogenerated, setSendKeepAlive, setSmsServerAddress, setTelephonyDomainBypassCaps, setUseAnonymousAuth, setUseDefaultStunServer, setUseIce, setUseJingleNodes, setUseUPNP
equals, getAccountAddress, getAccountIconPath, getAccountProperties, getAccountPropertyBoolean, getAccountPropertyInt, getAccountPropertyString, getAccountPropertyString, getAuthorizationName, getBooleanPropertiesByPrefix, getDisplayName, getDTMFMethod, getDtmfMinimalToneDuration, getIntegerPropertiesByPrefix, getPassword, getPropertyNamesByPrefix, getProtocolDisplayName, getProtocolIconPath, getProtocolName, getServerAddress, getServerPort, getService, getSortedEnabledEncryptionProtocolList, getStunServers, getTlsClientCertificate, hashCode, isConfigHidden, isEnabled, isEncryptionProtocolEnabled, isHidden, isPreferredProvider, isReadOnly, isServerOverridden, isStatusMenuHidden, isStunServerDiscoveryEnabled, isUPNPEnabled, isUseDefaultStunServer, loadStunPassword, mergeProperties, putAccountProperty, putAccountProperty, removeAccountProperty, setAccountIconPath, setAccountProperties, setAuthorizationName, setDisplayName, setDTMFMethod, setDtmfMinimalToneDuration, setOrRemoveIfEmpty, setOrRemoveIfEmpty, setOrRemoveIfNull, setPassword, setProtocolIconPath, setServerAddress, setServerOverridden, setServerPort, setTlsClientCertificate, storeProperties, toString
public JabberAccountRegistration()
public java.lang.String getAccountUniqueID()
getAccountUniqueID
in class AccountID
public java.lang.String getDefaultUserSufix()
public void setUserID(java.lang.String userID)
userID
- the identifier of the jabber registration account.public java.lang.String getUserID()
public void setDefaultUserSufix(java.lang.String userSufix)
userSufix
- the user name sufix (the domain name after the @ sign)public boolean isRememberPassword()
public void setRememberPassword(boolean rememberPassword)
rememberPassword
- TRUE if password has to remembered, FALSE
otherwisepublic void addStunServer(StunServerDescriptor stunServer)
stunServer
- the StunServer to addpublic java.util.List<StunServerDescriptor> getAdditionalStunServers()
public void addJingleNodes(JingleNodeDescriptor node)
node
- the node to addpublic java.util.List<JingleNodeDescriptor> getAdditionalJingleNodes()
public EncodingsRegistrationUtil getEncodingsRegistration()
public SecurityAccountRegistration getSecurityRegistration()
public void storeProperties(java.lang.String userName, java.lang.String passwd, java.lang.String protocolIconPath, java.lang.String accountIconPath, java.util.Map<java.lang.String,java.lang.String> accountProperties) throws OperationFailedException
userName
- the user name that will be used.passwd
- the password for this account.protocolIconPath
- the path to protocol icon if used, or
null otherwise.accountIconPath
- the path to account icon if used, or
null otherwise.accountProperties
- the map used for storings account properties.OperationFailedException
- if properties are invalid.public void loadAccount(AccountID account, org.osgi.framework.BundleContext bundleContext)
account
- the account object that will be used.bundleContext
- the OSGi bundle context required for some
operations.protected java.lang.String getServerFromUserName(java.lang.String userName)
userName
- the full JID that we'd like to parse.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.