|
Openfire 3.3.3 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.openfire.user.UserNameManager
public class UserNameManager
Main responsibility of this class is to return the correct name of XMPP entities. For local
entities (i.e. users) the User
name is used. For remote entities the following logic
is used:
UserNameProvider
is registered for the entity's domain. If a provider
was found then use it to get the entity's name
Method Summary | |
---|---|
static void |
addUserNameProvider(String domain,
UserNameProvider provider)
Adds the specified UserNameProvider as the provider of users of the specified domain. |
static String |
getUserName(JID entity)
Returns the name of the XMPP entity. |
static String |
getUserName(JID entity,
String defaultName)
Returns the name of the XMPP entity. |
static void |
removeUserNameProvider(String domain)
Removes any UserNameProvider that was associated with the specified domain. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void addUserNameProvider(String domain, UserNameProvider provider)
UserNameProvider
as the provider of users of the specified domain.
domain
- the domain hosted by the UserNameProvider.provider
- the provider that will provide the name of users in the specified domain.public static void removeUserNameProvider(String domain)
UserNameProvider
that was associated with the specified domain.
domain
- the domain hosted by a UserNameProvider.public static String getUserName(JID entity) throws UserNotFoundException
entity
- the JID of the entity to get its name.
UserNotFoundException
- if the jid belongs to the local server but no user was
found for that jid.public static String getUserName(JID entity, String defaultName) throws UserNotFoundException
entity
- the JID of the entity to get its name.defaultName
- default name to return when no name was found.
UserNotFoundException
- if the jid belongs to the local server but no user was
found for that jid.
|
Openfire 3.3.3 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |