|
|||||||||||
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.TWGManagedObjectStatusSet
Persistent object for tracking association of managed objects with a given status definition in a given status set definition.
Field Summary |
---|
Fields inherited from class com.tivoli.twg.engine.TWGPersistentObject |
---|
CLASS_NAME, SIZEOF_BYTE, SIZEOF_CHAR, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_SHORT |
Constructor Summary | |
---|---|
TWGManagedObjectStatusSet()
Default constructor - used during restore only |
|
TWGManagedObjectStatusSet(java.lang.String grp_id,
java.lang.String stat_id)
Status set constructor |
Method Summary | |
---|---|
static boolean |
clearManagedObjectStatus(long moid,
java.lang.String grp_id,
java.lang.String stat_id,
boolean is_persist)
Disassociate managed object with given status within given status group |
static boolean |
clearManagedObjectStatus(LongValueSet moids,
java.lang.String grp_id,
java.lang.String stat_id,
boolean set_persist,
boolean set_nonpersist)
Disassociate managed objects with given status within given status group |
void |
Delete()
Handle delete of object |
static TWGManagedObjectStatusSet |
findStatusSet(java.lang.String status_key)
Find status set for given status key (group ID/status ID) |
static TWGManagedObjectStatusSet |
findStatusSet(java.lang.String status_group,
java.lang.String status)
Find status set for given status group ID and status ID |
static java.util.Collection |
getAllStatusSets()
Get all defined status sets |
java.lang.String |
getAttributeDescription(java.lang.String id,
java.util.Locale loc)
Get description string for given attribute in given locale |
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 id)
Get type of attribute value for given attribute |
DataValue |
getAttributeValue(java.lang.String id,
java.util.Locale loc)
Get value of attribute with given ID |
java.lang.String |
getAttributeValueString(java.lang.String id,
java.util.Locale loc)
Get descriptive value string for given attribute in given locale |
java.lang.String |
GetConShadowClass()
Get name of console shadow class. |
byte[] |
GetDeltaShadowRecord(java.util.Locale locale,
long since_ver)
Get buffer containing value delta since requested version stamp of the shadowed attributes to be delivered to the console shadow class. |
LongValueSet |
getManagedObjectIDs()
Get reference to value set containing managed object IDs which have this status associated with them. |
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. |
java.lang.String |
getStatusGroupID()
Get status group ID |
java.lang.String |
getStatusID()
Get status ID |
boolean |
isObjectAssociatedWithStatusSet(long moid)
Test if given object is associated with status set |
static void |
removeManagedObjectFromAllSets(TWGManagedObject twgmo)
Clean up all associations to a given managed object |
protected void |
restoreData(TWGPersistentObjectDictionary dictionary,
boolean resolveObjectReferences)
Method for restoring persistent object data. |
protected void |
saveData(TWGPersistentObjectDictionary dictionary)
Method for saving persistent object data. |
boolean |
setAttributeValue(java.lang.String id,
DataValue val)
Set value of attribute with given ID |
static boolean |
setManagedObjectStatus(long moid,
java.lang.String grp_id,
java.lang.String stat_id,
boolean is_persist)
Associate managed object with given status in given status group |
static boolean |
setManagedObjectStatus(LongValueSet moids,
java.lang.String grp_id,
java.lang.String stat_id,
boolean set_persist,
boolean set_nonpersist)
Associate managed objects in set with given status in given status group |
LongValueSet |
testIDsForMembership(LongValueSet oids)
Test given object IDs to see if any are in status set. |
void |
UpdateShadowVersion()
Update object state version. |
Methods inherited from class com.tivoli.twg.engine.TWGPersistentObject |
---|
Destroy, enableAsyncWrites, fromPersistID, initialize, isNewPersistentStore, isSaveRequired, PersistID, restore, restoreAll, save, save, setSaveRequired, terminate, toPersistID |
Methods inherited from class com.tivoli.twg.engine.TWGObject |
---|
AllObjects, AllObjects, DumpTWGObjects, FindObject, isDeleted, isNewObject, isPersistent, isPersistent, isValid, isValid, ObjectID, setDistinctObjectID, SetObjectID |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TWGManagedObjectStatusSet()
public TWGManagedObjectStatusSet(java.lang.String grp_id, java.lang.String stat_id)
grp_id
- - token ID for status groupstat_id
- - token ID for status within status groupMethod Detail |
public void Delete()
Delete
in class TWGObject
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 static boolean setManagedObjectStatus(long moid, java.lang.String grp_id, java.lang.String stat_id, boolean is_persist) throws TWGPersistentObjectSaveException, InvalidObjectIDException
moid
- - managed object ID to be associated with given statusgrp_id
- - token ID of status groupstat_id
- - token ID of status within status groupis_persist
- - true if persistent setting, false if transient (lost on restart)
TWGPersistentObjectSaveException
- if error saving update
InvalidObjectIDException
- if bad status set or definition IDpublic static boolean setManagedObjectStatus(LongValueSet moids, java.lang.String grp_id, java.lang.String stat_id, boolean set_persist, boolean set_nonpersist) throws TWGPersistentObjectSaveException, InvalidObjectIDException
moids
- - managed object IDs to be associated with given statusgrp_id
- - token ID of status groupstat_id
- - token ID of status within status groupset_persist
- - true if persistent setting should be doneset_nonpersist
- - true if nonpersistent setting should be done
TWGPersistentObjectSaveException
- if error saving update
InvalidObjectIDException
- if bad status set or definition IDpublic static boolean clearManagedObjectStatus(long moid, java.lang.String grp_id, java.lang.String stat_id, boolean is_persist) throws TWGPersistentObjectSaveException, InvalidObjectIDException
moid
- - managed object ID to be disassociated with given statusgrp_id
- - token ID of status groupstat_id
- - token ID of status within status groupis_persist
- - true if persistent setting, false if transient (lost on restart)
TWGPersistentObjectSaveException
- if error saving update
InvalidObjectIDException
- if bad status set or definition IDpublic static boolean clearManagedObjectStatus(LongValueSet moids, java.lang.String grp_id, java.lang.String stat_id, boolean set_persist, boolean set_nonpersist) throws TWGPersistentObjectSaveException, InvalidObjectIDException
moids
- - managed object set to be disassociated with given statusgrp_id
- - token ID of status groupstat_id
- - token ID of status within status groupset_persist
- - true if persistent settingset_nonpersist
- - true if nonpersistent setting
TWGPersistentObjectSaveException
- if error saving update
InvalidObjectIDException
- if bad status set or definition IDpublic 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 byte[] GetDeltaShadowRecord(java.util.Locale locale, long since_ver)
GetDeltaShadowRecord
in interface TWGDeltaShadow
locale
- - Locale requested (for any locale-specific content)since_ver
- - Version to be used as basis for delta (the version
currently possessed by the caller).
public LongValueSet testIDsForMembership(LongValueSet oids)
oids
- - object IDs to be tested
public static TWGManagedObjectStatusSet findStatusSet(java.lang.String status_group, java.lang.String status)
status_group
- - ID of status groupstatus
- - ID of status in set
public static TWGManagedObjectStatusSet findStatusSet(java.lang.String status_key)
status_key
- - status key (group ID/status ID)
public static void removeManagedObjectFromAllSets(TWGManagedObject twgmo)
twgmo
- - managed object to be removedpublic static java.util.Collection getAllStatusSets()
public LongValueSet getManagedObjectIDs()
public java.lang.String getStatusGroupID()
public java.lang.String getStatusID()
public boolean isObjectAssociatedWithStatusSet(long moid)
moid
- - object ID
public java.lang.String[] getAttributeIDList()
getAttributeIDList
in interface TWGGetSetInterface
public DataValue getAttributeValue(java.lang.String id, java.util.Locale loc)
getAttributeValue
in interface TWGGetSetInterface
id
- - attribute ID requestedloc
- - locale to use for value, if applicable
public boolean setAttributeValue(java.lang.String id, DataValue val)
setAttributeValue
in interface TWGGetSetInterface
id
- - attribute ID to be setval
- - attribute value to be set
public int getAttributeType(java.lang.String id)
getAttributeType
in interface TWGGetSetInterface
id
- - attribute ID
public java.lang.String getAttributeDescription(java.lang.String id, java.util.Locale loc)
getAttributeDescription
in interface TWGGetSetDescInterface
id
- - attribute IDloc
- - locale to use for description
public java.lang.String getAttributeValueString(java.lang.String id, java.util.Locale loc)
getAttributeValueString
in interface TWGGetSetDescInterface
id
- - attribute IDloc
- - locale to use for description
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |