|
Oracle Role Manager Java API Reference 10g (10.1.4) E14613-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SnapshotObject
An object representing the vales of a TemporalObject at a particular point in value and transaction time.
Method Summary | |
---|---|
void |
delete() Makes the object ineffective. |
void |
delete(boolean cascade) Makes the object ineffective. |
java.util.Map<java.lang.String,java.lang.Object> |
getAllAttributes() Gets all of the attributes for this object. |
java.lang.Object |
getAttributeValue(java.lang.String attributeKey) Gets the value of an attribute. |
oracle.iam.rm.i18n.Formattable |
getDefaultTitle() Gets the value that should be used for the default title of this object. |
SnapshotObject |
getMixin(java.lang.String mixinType) Gets the SnapshotObject that represents the mix-in type. |
ObjectKey |
getObjectKey() Gets the pantemporal object identifier for this object. |
ObjectType |
getObjectType() Gets the ObjectType that defines this object. |
SnapshotObject[] |
getRelativeObjects(java.lang.String relationshipPath) Gets the snapshot version of a relative object. |
SnapshotObject[] |
getRelativeObjects(java.lang.String relationshipPath, Filter additionalFilter) Gets the snapshot version of a relative object. |
SnapshotObject |
getStructuralObject() Gets the structural SnapshotObject that a mix-in is bound to |
ObjectType |
getStructuralObjectType() Gets the object type of the structural SnapshotObject that a mix-in is bound to. |
long |
getVersion() Gets the current version of the object. |
boolean |
isEditable() Determines if the object is editable. |
void |
makeReadConsistent() Marks this object to act in a "read consistent" fashion so that if it is changed in another transaction an appropriate constraint violation is thrown. |
AttributeChangeSet |
setAttributeValue(java.lang.String attributeKey, java.lang.Object value) Sets an attribute value to be effective as of the snapshot time. |
AttributeChangeSet |
setAttributeValues(java.util.Map<java.lang.String,java.lang.Object> attributeValues) Sets a collection of attribute values to be effective as of the snapshot time. |
boolean |
stateEquals(SnapshotObject snapshotObject) Determines if another SnapshotObject's state is equal. |
void |
updateVersion(SnapshotObject snapshotObject) Updates the version of this object based on its equivalent from the system (read-only) session. |
Method Detail |
---|
java.lang.Object getAttributeValue(java.lang.String attributeKey) throws TemporalException
attributeKey
- identifier for the attributeTemporalException
- if a failure occurs retrieving the attribute valueSnapshotObject[] getRelativeObjects(java.lang.String relationshipPath)
relationshipPath
- identifier for the relative objectSnapshotObject[] getRelativeObjects(java.lang.String relationshipPath, Filter additionalFilter)
relationshipPath
- identifier for the relative objectadditionalFilter
- additional filter to restrict the returned objectsObjectKey getObjectKey()
ObjectType getObjectType()
AttributeChangeSet setAttributeValues(java.util.Map<java.lang.String,java.lang.Object> attributeValues) throws TemporalException
attributeValues
- names/values to setTemporalException
- if the object is not editableAttributeChangeSet setAttributeValue(java.lang.String attributeKey, java.lang.Object value) throws TemporalException
attributeKey
- the identifier for the attributevalue
- the attribute value to setTemporalException
- if the object is not editableboolean stateEquals(SnapshotObject snapshotObject) throws TemporalException
snapshotObject
- SnapshotObject to compare this SnapshotObject totrue
if their snapshot states are equal, otherwise false
TemporalException
- if a failure occurs during object comparisonjava.util.Map<java.lang.String,java.lang.Object> getAllAttributes()
oracle.iam.rm.i18n.Formattable getDefaultTitle() throws TemporalException
TemporalException
- if a failure occurs during title retrievalSnapshotObject getMixin(java.lang.String mixinType) throws TemporalException
mixinType
- type of mixinTemporalException
- if a failure occurs retrieving the related mixinSnapshotObject getStructuralObject()
ObjectType getStructuralObjectType()
void delete() throws TemporalException
TemporalException
- if this object is not editable or deletion failsvoid delete(boolean cascade) throws TemporalException
cascade
- Boolean true
forces a cascade delete, false
only deletes the current object.TemporalException
- if this object is not editable or deletion failsboolean isEditable()
true
if editable, otherwise false
void updateVersion(SnapshotObject snapshotObject)
snapshotObject
- version of this object from the system (read-only) sessionjava.lang.IllegalStateException
- if the object is not editable and not within a merge handlerjava.lang.IllegalArgumentException
- if the snapshot object provided is not the same as the current object or not from a system (read-only) sessionvoid makeReadConsistent()
TemporalException
- if this object is not editable or marking it "read consistent" failslong getVersion()
|
Oracle Role Manager Java API Reference 10g (10.1.4) E14613-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |