|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.engine.TWGObject
com.tivoli.twg.engine.TWGPersistentObject
com.tivoli.twg.engine.TWGUser
User (administrator) accounts defined for the Director Server.
Field Summary |
---|
Fields inherited from class com.tivoli.twg.engine.TWGPersistentObject |
---|
SIZEOF_BYTE, SIZEOF_CHAR, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_SHORT |
Constructor Summary | |
---|---|
TWGUser()
default constructor (required by TWGPersistentObject). |
|
TWGUser(java.lang.String uid,
java.lang.String password)
constructor. |
Method Summary | |
---|---|
void |
addFilterToFilterAccessList(long new_foid)
Add new filter ID to access list |
void |
addTaskToTaskAccessList(long new_toid)
Add new task ID to access list |
void |
AttachObjectToConsole(TWGActiveConsole act_con)
Associate the object with the given TWGActiveConsole instance. |
void |
Destroy()
method for destroying user (e.g. |
void |
DetachObjectFromAllConsoles()
Disassociate the object from all TWGActiveConsoles. |
void |
DetachObjectFromConsole(TWGActiveConsole act_con)
Disassociate the object from the given TWGActiveConsole instance. |
static void |
filterDeleted(TWGFilter flt)
Handle destroy of a given filter instance |
static TWGUser |
find(java.lang.String name)
class method for finding user object by name. |
static java.lang.String[] |
getAllUserIDs()
Get all user ID names |
static TWGUser[] |
getAllUsers()
Get all users |
java.lang.String[] |
getAttributeIDList()
Attribute ID enumeration : this method is expected to return a list of strings containing the String names of the attributes supported for a given object. |
int |
getAttributeType(java.lang.String identifier)
Get type of attribute value for given attribute |
DataValue |
getAttributeValue(java.lang.String identifier,
java.util.Locale locale)
Get value of attribute with given ID |
DataValue |
getAttributeValue(java.lang.String id,
java.util.Locale loc,
TWGUser usr)
Get value of attribute with given ID |
java.lang.String |
GetConShadowClass()
Get name of console shadow class. |
java.lang.String |
getDescription()
method for getting user description. |
java.lang.String |
getEmail()
method for getting user email address. |
LongValueSet |
getFilterAccessList()
Get filter access list |
java.lang.String |
getFullName()
method for getting users full name. |
java.lang.String |
getLocale()
Get locale for user |
java.lang.String |
getName()
method for getting user name. |
java.lang.String |
getPager()
method for getting user pager info. |
java.lang.String |
getPassword()
method for getting user password. |
byte[] |
GetShadowRecord(java.util.Locale locale)
Get buffer containing current values of the shadowed attributes to be delivered to the console shadow class. |
long |
GetShadowVersion()
Get object state version. |
LongValueSet |
getTaskAccessList()
Get task access list |
static void |
handlePropertiesCommand(Command command)
Properties command handler. |
boolean |
hasPrivilege(java.lang.String priv_id)
Test if user has given privilege |
static void |
initializationComplete()
Update and validate all user properties |
static void |
initialize()
Initialize user information and profiles |
boolean |
isFilterAccessable(TWGFilter flt)
Test if specific filter is accessable by user |
boolean |
isFilterLimited()
Test if filter restrictions are active |
boolean |
isReadOnlyFilterAccess()
Is user limited to read-only access to filters |
boolean |
isTaskAccessable(TWGTask tsk)
Test if specific task is accessable by user |
boolean |
isTaskLimited()
Test if task restrictions are active |
static LongValueSet |
parseLongListString(java.lang.String p)
Parse string into long value set |
static StringValueSet |
parseStringListString(java.lang.String p)
Parse string into string value set |
static java.lang.String |
printLongListString(LongValueSet s)
Write long value set to string |
static java.lang.String |
printStringListString(StringValueSet s)
Write string value set to string |
static void |
removeFilterID(TWGFilter filter)
Delete all references to given filter |
static void |
removeTaskID(TWGTask task)
Delete all references to given task |
protected void |
restoreData(TWGPersistentObjectDictionary dictionary,
boolean resolveObjectReferences)
method for restoring persistent object data. |
protected void |
saveData(TWGPersistentObjectDictionary dictionary)
method for saving persistent object data. |
static void |
saveDefaults()
Save updated defaults |
void |
setAccessFlags(int new_af)
Update access flags |
boolean |
setAttributeValue(java.lang.String identifier,
DataValue value)
Set value of attribute with given ID |
boolean |
setAttributeValue(java.lang.String id,
DataValue val,
TWGUser usr)
Set value of attribute with given ID |
void |
setDescription(java.lang.String desc)
method for setting user description. |
void |
setEmail(java.lang.String Email)
method for setting user email address. |
void |
setFilterAccessList(long[] new_flt)
Replace filter access list with new list |
void |
setFullName(java.lang.String fName)
method for setting users full name. |
void |
setLocale(java.lang.String loc)
Set locale for user |
void |
SetObjectID(long oid)
Set object ID. |
void |
setPager(java.lang.String Pager)
method for setting user pager info. |
void |
setPassword(java.lang.String pwd)
method for setting user password. |
void |
setTaskAccessList(long[] new_tal)
Replace task access list with new list |
static void |
taskDeleted(TWGTask tsk)
Handle destroy of a given task instance |
java.lang.String |
toString()
Returns a string representation of the object. |
void |
UpdateShadowVersion()
Update object state version. |
Methods inherited from class com.tivoli.twg.engine.TWGPersistentObject |
---|
enableAsyncWrites, fromPersistID, isNewPersistentStore, isSaveRequired, PersistID, restore, restoreAll, save, save, setSaveRequired, terminate, toPersistID |
Methods inherited from class com.tivoli.twg.engine.TWGObject |
---|
AllObjects, AllObjects, Delete, DumpTWGObjects, FindObject, isDeleted, isNewObject, isPersistent, isPersistent, isValid, isValid, ObjectID, setDistinctObjectID |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TWGUser()
public TWGUser(java.lang.String uid, java.lang.String password)
uid
- user name.password
- user password.Method Detail |
public static TWGUser find(java.lang.String name)
name
- user name.
public void Destroy() throws TWGObjectDestroyException
Destroy
in class TWGPersistentObject
TWGObjectDestroyException
- thrown when unable to destroy object.public java.lang.String getName()
public java.lang.String getFullName()
public java.lang.String getDescription()
public java.lang.String getPassword()
public java.lang.String getEmail()
public java.lang.String getPager()
public java.lang.String getLocale()
public void setFullName(java.lang.String fName)
fName
- users full name.public void setDescription(java.lang.String desc)
desc
- user description.public void setPassword(java.lang.String pwd)
pwd
- user password.public void setEmail(java.lang.String Email)
Email
- user email address.public void setPager(java.lang.String Pager)
Pager
- user pager info.public void setLocale(java.lang.String loc)
loc
- - locale for user (4 characters (2 language+2 country))public static void handlePropertiesCommand(Command command)
protected void saveData(TWGPersistentObjectDictionary dictionary) throws TWGPersistentObjectSaveException
saveData
in class TWGPersistentObject
TWGPersistentObjectSaveException
- thrown to abort save
procedure.protected void restoreData(TWGPersistentObjectDictionary dictionary, boolean resolveObjectReferences) throws TWGPersistentObjectRestoreException
restoreData
in class TWGPersistentObject
resolveObjectReferences
- used to indicate if object references
should be resolved during restore.
TWGPersistentObjectRestoreException
- thrown to abort
restore procedure.public java.lang.String[] getAttributeIDList()
getAttributeIDList
in interface TWGGetSetInterface
public DataValue getAttributeValue(java.lang.String identifier, java.util.Locale locale)
getAttributeValue
in interface TWGGetSetInterface
identifier
- - attribute ID requestedlocale
- - locale to use for value, if applicable
public boolean setAttributeValue(java.lang.String identifier, DataValue value)
setAttributeValue
in interface TWGGetSetInterface
identifier
- attribute ID to be setvalue
- attribute value to be set
public DataValue getAttributeValue(java.lang.String id, java.util.Locale loc, TWGUser usr) throws UserNotAuthorizedException
getAttributeValue
in interface TWGProtectedGetSetInterface
id
- - attribute ID requestedloc
- - locale to use for value, if applicableusr
- - user requesting attribute
UserNotAuthorizedException
- if request not allowedpublic boolean setAttributeValue(java.lang.String id, DataValue val, TWGUser usr) throws UserNotAuthorizedException
setAttributeValue
in interface TWGProtectedGetSetInterface
id
- - attribute ID to be setval
- - attribute value to be setusr
- - user setting attribute
UserNotAuthorizedException
- if request not allowedpublic int getAttributeType(java.lang.String identifier)
getAttributeType
in interface TWGGetSetInterface
identifier
- attribute ID
public static java.lang.String[] getAllUserIDs()
public static TWGUser[] getAllUsers()
public static void removeTaskID(TWGTask task)
task
- - task to removepublic static void removeFilterID(TWGFilter filter)
filter
- - filter to be removedpublic java.lang.String toString()
Object.toString()
public boolean hasPrivilege(java.lang.String priv_id)
priv_id
- - privilege ID to test for
public void AttachObjectToConsole(TWGActiveConsole act_con)
AttachObjectToConsole
in interface TWGConsoleSpecShadowedObject
act_con
- - Active console instance to be associated withpublic void DetachObjectFromConsole(TWGActiveConsole act_con)
DetachObjectFromConsole
in interface TWGConsoleSpecShadowedObject
act_con
- - Active console instance to be disassociated frompublic void DetachObjectFromAllConsoles()
DetachObjectFromAllConsoles
in interface TWGConsoleSpecShadowedObject
public void UpdateShadowVersion()
UpdateShadowVersion
in interface TWGBaseShadowedObject
public long GetShadowVersion()
GetShadowVersion
in interface TWGBaseShadowedObject
public java.lang.String GetConShadowClass()
GetConShadowClass
in interface TWGBaseShadowedObject
public byte[] GetShadowRecord(java.util.Locale locale)
GetShadowRecord
in interface TWGBaseShadowedObject
locale
- - Locale of requested data
public static void initialize()
public static void initializationComplete()
public static void saveDefaults()
public static java.lang.String printLongListString(LongValueSet s)
s
- - long value set to write
public static LongValueSet parseLongListString(java.lang.String p)
p
- - string to be parsed
public static java.lang.String printStringListString(StringValueSet s)
s
- - string value set to write
public static StringValueSet parseStringListString(java.lang.String p)
p
- - string to be parsed
public static void filterDeleted(TWGFilter flt)
flt
- - Filter which is being destroyedpublic static void taskDeleted(TWGTask tsk)
tsk
- - Task which is being destroyedpublic boolean isFilterLimited()
public boolean isTaskLimited()
public boolean isReadOnlyFilterAccess()
public boolean isFilterAccessable(TWGFilter flt)
flt
- - filter to be tested
public boolean isTaskAccessable(TWGTask tsk)
tsk
- - task to be tested
public void setTaskAccessList(long[] new_tal)
public LongValueSet getTaskAccessList()
public void addTaskToTaskAccessList(long new_toid)
public void setFilterAccessList(long[] new_flt)
public LongValueSet getFilterAccessList()
public void addFilterToFilterAccessList(long new_foid)
public void setAccessFlags(int new_af)
public void SetObjectID(long oid) throws DuplicateObjectIDException
SetObjectID
in class TWGObject
oid
- - new object ID, or INVALID_OBJECT_ID if none
DuplicateObjectIDException
- if ID is duplicate
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |