Skip navigation links

Oracle Role Manager Java API Reference
10g (10.1.4)
E12031-02


oracle.iam.rm.temporal
Interface InteractiveTemporalSession

All Superinterfaces:
InteractiveSession, TemporalSession

public interface InteractiveTemporalSession
extends TemporalSession, InteractiveSession

An interface that supports updating the data model within the context of a business transaction.


Method Summary
 TemporalObject addMixinType(TemporalObject object, java.lang.String mixinType, java.util.Map<java.lang.String,java.lang.Object> attributes, oracle.iam.rm.util.DateTime valueTime)
          Adds a mix-in object to an existing object.
 TemporalObject createObject(java.lang.String type, java.util.Map<java.lang.String,ObjectKey> primaryKeys, java.util.Map<java.lang.String,java.lang.Object> attributes, oracle.iam.rm.util.DateTime valueTime)
          Creates a new temporal object.
 void discardChanges(ObjectKey objectKey)
          Discards any changes that have been made to this object within this business transaction.
 TemporalObject getEditableTemporalObject(ObjectKey objectKey)
          Gets an editable version of a particular temporal object by its object key.
 java.util.Collection<TemporalObject> getEditedObjects(java.lang.String type)
          Gets all objects that have been changed in this session of a particular type.
 InteractiveSnapshotSession getInteractiveSnapshotSession(oracle.iam.rm.util.DateTime valueTime)
          Gets an interactive snapshot session based on this InteractiveTemporalSession.
 java.util.Collection<oracle.iam.rm.bizxact.ValidationFailure> validate()
          Runs validation on the session in order to determine whether the data is valid according to the model constraints.

 

Methods inherited from interface oracle.iam.rm.temporal.TemporalSession
canEdit, findObjectKeys, findTemporalObjects, getSnapshotSession, getSnapshotSession, getTemporalEngine, getTemporalObject

 

Methods inherited from interface oracle.iam.rm.temporal.InteractiveSession
addDataChangeListener, getBusinessTransactionID, removeDataChangeListener

 

Method Detail

getEditableTemporalObject

TemporalObject getEditableTemporalObject(ObjectKey objectKey)
                                         throws TemporalException
Gets an editable version of a particular temporal object by its object key.
Parameters:
objectKey - object identifier
Returns:
TemporalObject representing the object identified by the provided object key.
Throws:
TemporalException - if this session is not related to a live business transaction

createObject

TemporalObject createObject(java.lang.String type,
                            java.util.Map<java.lang.String,ObjectKey> primaryKeys,
                            java.util.Map<java.lang.String,java.lang.Object> attributes,
                            oracle.iam.rm.util.DateTime valueTime)
                            throws TemporalException
Creates a new temporal object.
Parameters:
type - object's type
primaryKeys - Map of primary keys of the object (if applicable)
attributes - Map of attributes with which to initially populate this object
valueTime - effective date of the object and any provided attributes
Returns:
A newly created, editable temporal object.
Throws:
TemporalException - if this session is not related to a live business transaction

addMixinType

TemporalObject addMixinType(TemporalObject object,
                            java.lang.String mixinType,
                            java.util.Map<java.lang.String,java.lang.Object> attributes,
                            oracle.iam.rm.util.DateTime valueTime)
                            throws TemporalException
Adds a mix-in object to an existing object.
Parameters:
object - TemporalObject to which the mix-in is being added
mixinType - mix-in type
attributes - Map of attributes with which to initially populate the mix-in object
valueTime - effective date of the mix-in and any provide attributes
Returns:
A newly created, editable temporal mix-in object.
Throws:
TemporalException - if this session is not related to a live business transaction

getInteractiveSnapshotSession

InteractiveSnapshotSession getInteractiveSnapshotSession(oracle.iam.rm.util.DateTime valueTime)
Gets an interactive snapshot session based on this InteractiveTemporalSession.
Parameters:
valueTime - point in time for the SnapshotSession
Returns:
InteractiveSnapshotSession effective at the provided point in time.

getEditedObjects

java.util.Collection<TemporalObject> getEditedObjects(java.lang.String type)
Gets all objects that have been changed in this session of a particular type.
Parameters:
type - type of objects to return
Returns:
Collection of objects that have been changed in this session.

validate

java.util.Collection<oracle.iam.rm.bizxact.ValidationFailure> validate()
Runs validation on the session in order to determine whether the data is valid according to the model constraints. <p/> Note: The constraints checked here are required, but not sufficient for a successful finalization as there are separate business constraints to test for.
Returns:
Collection of ValidationFailures or an empty collection if the session's data is valid according to the model constraints.

discardChanges

void discardChanges(ObjectKey objectKey)
Discards any changes that have been made to this object within this business transaction. Be careful when using this method to not hold references to old instances of this object.
Parameters:
objectKey - identifier for the obejct whose changes to discard

Skip navigation links

Oracle Role Manager Java API Reference
10g (10.1.4)
E12031-02


Copyright © 2007, 2008 Oracle. All Rights Reserved.