Class jabberwerx.LocalUser (MINIMAL)
Extends
jabberwerx.Entity.
The LocalUser representation.
Constructor Attributes | Constructor Name and Description |
---|---|
jabberwerx.LocalUser(jid, cache)
Creates a new LocalUser with the given JID and cache location
NOTE: This type should not be created directly Use jabberwerx.ClientEntityCache#localUser instead. |
- Fields borrowed from class jabberwerx.Entity:
- features, identities, jid, node, properties
Method Attributes | Method Name and Description |
---|---|
Retrieves the user's display name.
|
- Methods borrowed from class jabberwerx.Entity:
- apply, destroy, getAllPresence, getGroups, getPrimaryPresence, getResourcePresence, hasFeature, hasIdentity, isActive, matches, remove, setDisplayName, setGroups, toString, update, updatePresence
- Methods borrowed from class jabberwerx.JWModel:
- applyEvent, event, shouldBeSavedWithGraph
- Methods borrowed from class jabberwerx.JWBase:
- getClassName, graphUnserialized, init, invocation, shouldBeSerializedInline, wasUnserialized, willBeSerialized
Class Detail
jabberwerx.LocalUser(jid, cache)
Creates a new LocalUser with the given JID and cache location
NOTE: This type should not be created directly
Use jabberwerx.ClientEntityCache#localUser instead.
- Parameters:
- {String|jabberwerx.JID} jid
- The user's JID
- {jabberwerx.ClientEntityCache} cache Optional
- The owning cache
Method Detail
{String}
getDisplayName()
Retrieves the user's display name. This method simply returns the
node portion of the user's JID.
- Returns:
- {String} The display name