Package hec.model
Class UserInfo
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.model.UserInfo
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,Serializable,Cloneable,Comparable,Observer,Modifiable
- See Also:
-
Field Summary
FieldsFields inherited from class hec.lang.NamedType
_description, _ignoreModifiedEvents, _index, _isValid, _modified, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]findUserIds(String userName) return the userIds for a given userNamefindUserName(String userId) return the username for a given useridgetClientsForUser(String userName) get the list of clients that belong to the User with the login of userNamegetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.String[]return a list of user namesgetName()get the NameType's namegetUserLoginInfo(String userId) booleanisLoggedIn(String userId) see if the given userId is logged inbooleanremoveUser(String userId) booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.booleansetKeyForUser(String userId, long key) intsize()Methods inherited from class hec.lang.NamedType
addModifiableListener, clone, compareTo, fireModifiedStateChanged, getDescription, getDisplayName, getIgnoreModifiedEvents, getIndex, isModified, isValid, readResolve, removeModifiableListener, rename, set, setDescription, setIgnoreModifiedEvents, setIndex, setModified, setName, setValid, toString, update, useRecursiveModifiedTestMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Field Details
-
ID_SEPARATOR
- See Also:
-
-
Constructor Details
-
UserInfo
-
-
Method Details
-
addUser
-
removeUser
-
findUserName
return the username for a given userid -
findUserIds
return the userIds for a given userName -
setKeyForUser
-
isLoggedIn
see if the given userId is logged in -
getName
Description copied from class:NamedTypeget the NameType's name -
getLoggedInUsers
return a list of user names -
getUserList
-
size
public int size() -
getFieldObject
Description copied from interface:FieldAccessorThis method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObjectin interfaceFieldAccessor- Overrides:
getFieldObjectin classNamedType- Parameters:
fld- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessorThis allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObjectin interfaceFieldAccessor- Overrides:
setFieldObjectin classNamedType- Parameters:
fld- The java field object representing the member field to be setfobj- The data to set in that field- Returns:
- returns true if successful
-
getClientsForUser
get the list of clients that belong to the User with the login of userName- Parameters:
userName- the User's login- Returns:
- the list of clients. If no clients are found the list will be empty.
-
getUserLoginInfo
-