public final class PersonUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static matrix.db.Context |
cloneContext(matrix.db.Context context)
Deprecated.
|
static void |
error(java.lang.String message)
Add a error client task to the matrix.db.Context.
|
static matrix.util.StringList |
getAssignments()
Returns the assignments for the context user.
|
static java.lang.String[] |
getClientTasks()
Returns the content of the users client task list as a string array.
|
static java.lang.String |
getEmail()
Returns the users email.
|
static java.lang.String |
getFullname()
Returns the users fullname.
|
static boolean |
isAdministrator()
Check if a user is an Administrator.
|
static boolean |
isBusinessAdmin()
Returns true if user is a business administrator.
|
static boolean |
isSystemAdmin()
Returns true if user is a system administrator.
|
static void |
notice(java.lang.String message)
Add a notice client task to the matrix.db.Context.
|
static void |
reloadCacheForPerson(java.lang.String name) |
static void |
warning(java.lang.String message)
Add a warning client task to the matrix.db.Context.
|
public static void reloadCacheForPerson(java.lang.String name)
throws TVCException
name - The name of the person whose cache will be reloaded.TVCException - If unable to successfully reload person information.public static boolean isSystemAdmin()
throws TVCException
TVCExceptionpublic static boolean isBusinessAdmin()
throws TVCException
TVCException@Deprecated
public static matrix.db.Context cloneContext(matrix.db.Context context)
throws TVCException
TVCExceptionpublic static matrix.util.StringList getAssignments()
Warning: this method will return an empty list if unable to retrieve the person's assignments from the database.
PersonInfo.getAssignments()public static java.lang.String getEmail()
Warning: this method will return null if unable to retrieve the person's email from the database.
PersonInfo.getEmail()public static java.lang.String getFullname()
Warning: this method will return null if unable to retrieve the person's fullname from the database.
PersonInfo.getFullname()public static java.lang.String[] getClientTasks()
public static void notice(java.lang.String message)
throws TVCException
message - the message.TVCException - if unable to add the client task.public static void warning(java.lang.String message)
throws TVCException
message - the message.TVCException - if unable to add the client task.public static void error(java.lang.String message)
throws TVCException
message - the message.TVCException - if unable to add the client task.public static boolean isAdministrator()
throws TVCException
TVCException - If unable to check if the user is an administrator.Copyright ? Technia AB. All Rights Reserved.