public class PersonInfo
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
clearCache()
Clears the person cache completely.
|
static void |
clearCacheForPerson(java.lang.String name)
Clear the cached information for a particular person.
|
static void |
clearPersonNames()
Clear the cached list of persons in the system.
|
boolean |
equals(java.lang.Object obj)
Returns true if the objects are equal.
|
static boolean |
exists(java.lang.String name)
Returns true if the given person exists.
|
static int |
getActiveUserCount() |
static java.util.List<PersonInfo> |
getAllPersonInfos()
Returns all persons from the database.
|
java.util.List<java.lang.String> |
getAssignments()
Returns the assignments.
|
java.lang.String |
getEmail()
Returns the fullname.
|
java.lang.String |
getFullname()
Returns the fullname.
|
static PersonInfo |
getInstance()
Returns a PersonInfo instance encapsulating information about
the current person.
|
static PersonInfo |
getInstance(java.lang.String name)
Returns a PersonInfo instance encapsulating information about
the requested person.
|
java.lang.String |
getName()
Returns the name of the admin object.
|
static java.util.Map<java.lang.String,java.lang.String> |
getPersonFullNames() |
static java.util.Map<java.lang.String,java.lang.String> |
getPersonFullNames(java.util.List<java.lang.String> names) |
static java.util.List<java.lang.String> |
getPersonNames()
Returns an unmodifiable list containing the NAMES of all the persons that
exists in the database.
|
int |
hashCode()
Returns the hash code.
|
boolean |
isBusiness()
Returns whether the person is a business or not.
|
boolean |
isFull()
Returns whether the person is a full or not.
|
boolean |
isHidden()
Returns whether the person is hidden or not.
|
boolean |
isInactive()
Returns whether the person is inactive or not.
|
boolean |
isSystem()
Returns whether the person is a system or not.
|
static void |
reloadCache()
Reloads the complete cache.
|
static void |
reloadCacheForPerson(java.lang.String name)
Reload the cache for a particular person.
|
java.lang.String |
toString()
Returns a string representation suitable for debugging.
|
public static int getActiveUserCount()
public static void clearCache()
public static void clearCacheForPerson(java.lang.String name)
name - The name of the person whose information should be cleared.public static void clearPersonNames()
public static void reloadCacheForPerson(java.lang.String name)
throws TVCException
name - The name of the person whose information is reloaded.TVCException - If unable to reload the cached information.public static void reloadCache()
throws TVCException
TVCException - If unable to reload the cache.public static boolean exists(java.lang.String name)
throws TVCException
TVCExceptionpublic static java.util.List<java.lang.String> getPersonNames()
throws TVCException
TVCExceptionpublic static java.util.Map<java.lang.String,java.lang.String> getPersonFullNames()
throws TVCException
TVCExceptionpublic static java.util.Map<java.lang.String,java.lang.String> getPersonFullNames(java.util.List<java.lang.String> names)
throws TVCException
TVCExceptionpublic static java.util.List<PersonInfo> getAllPersonInfos() throws TVCException
TVCExceptionpublic static PersonInfo getInstance() throws TVCException
TVCException - If unable to retrieve person information in case the
information has to be retrieved from the database.public static PersonInfo getInstance(java.lang.String name) throws TVCException
name - The name of the person.TVCException - If unable to retrieve person information in case the
information has to be retrieved from the database.public boolean isHidden()
public boolean isInactive()
public boolean isFull()
public boolean isSystem()
public boolean isBusiness()
public java.util.List<java.lang.String> getAssignments()
public java.lang.String getFullname()
public java.lang.String getEmail()
public int hashCode()
public boolean equals(java.lang.Object obj)
public java.lang.String getName()
getName in interface com.technia.tvc.core.db.model.SchemaInfopublic final java.lang.String toString()
toString in class java.lang.ObjectCopyright ? Technia AB. All Rights Reserved.