public class XMPPPatternUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Long |
extractBlogId(String aliasJid)
This method extracts the blog id from the alias.
|
static ClientTO |
extractClient(String aliasJid)
This method extracts a client from an alias jid.
|
static String |
extractClientIdFromUser(String jid)
This method extracts the client from a user jid.
|
static User |
extractKenmeiUser(String jid)
This method returns a client extracted from the alias.
|
static User |
extractKenmeiUserWithoutDatabaseDelegate(String jid)
This works on the current assigned client.
|
static String |
getBlogSuffix() |
static String |
getUserSuffix()
Suffix to separate the user from specific host settings.
|
public static Long extractBlogId(String aliasJid)
aliasJid
- Jid to extract user id from.Long
,public static ClientTO extractClient(String aliasJid) throws ClientNotFoundException
aliasJid
- Jid to extract client id from.ClientTO
.ClientNotFoundException
- If no client was found.public static String extractClientIdFromUser(String jid)
jid
- Jid to extract the client id from.public static User extractKenmeiUser(String jid)
ClientDelegate
to
switch the client.jid
- Jid to extract the user from.User
for the jid.public static User extractKenmeiUserWithoutDatabaseDelegate(String jid)
jid
- Jid to extract the user from.User
for the jid.public static String getBlogSuffix()
public static String getUserSuffix()
Copyright © 2019 Communote team. All rights reserved.