org.gridprovenance.client.impl
Class InteractionRecordImpl

java.lang.Object
  extended by org.gridprovenance.client.impl.InteractionRecordImpl
All Implemented Interfaces:
InteractionRecord

public class InteractionRecordImpl
extends java.lang.Object
implements InteractionRecord

An implement of Record interface

CSL of EU Provenance

Author:
Sheng Jiang

Constructor Summary
InteractionRecordImpl()
           
InteractionRecordImpl(InteractionRecord inputIR)
           
InteractionRecordImpl(ViewKind vk, org.apache.axis.message.addressing.EndpointReference sink, org.apache.axis.message.addressing.EndpointReference source, java.security.Principal asserter, org.apache.axis.message.addressing.EndpointReference recordPortAddress)
           
InteractionRecordImpl(ViewKind vk, InteractionKey ik, java.security.Principal asserter, org.apache.axis.message.addressing.EndpointReference recordPortAddress)
           
 
Method Summary
 GlobalPAssertionKey addActorStatePAssertion(org.w3c.dom.Element actorState)
          Add an ActorStatePAssertion using Verbatim Documentation Style
 GlobalPAssertionKey addActorStatePAssertion(org.w3c.dom.Element actorState, java.net.URI ds)
          Add an ActorStatePAssertion
 GlobalPAssertionKey addInteractionPAssertion(org.w3c.dom.Element message)
          Add a InteractionPAssertion using Verbatim Documentation Style
 GlobalPAssertionKey addInteractionPAssertion(org.w3c.dom.Element message, java.net.URI ds)
          Add a InteractionPAssertion
 GlobalPAssertionKey addRelationshipPAssertion(RelationObject[] relationObject, java.net.URI relationship, RelationSubject relationSubject)
          Add a relationshipPAssertion
 java.security.Principal getAsserter()
          get the Asserter
 InteractionKey getInteractionKey()
          Get the InteractionKey
 org.apache.axis.message.addressing.EndpointReference getRecordPortAddress()
          Get the Record Address
 ViewKind getViewKind()
          get the Side
 RecordResult record()
          Record PAssertions to Provenance Service
 void setAsserter(java.security.Principal asserter)
          set the Asserter
 void setInteractionKey(InteractionKey ik)
          set the InteractionKey
 void setViewKind(ViewKind vk)
          Set the Side
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InteractionRecordImpl

public InteractionRecordImpl()

InteractionRecordImpl

public InteractionRecordImpl(InteractionRecord inputIR)
                      throws CSLException
Throws:
CSLException

InteractionRecordImpl

public InteractionRecordImpl(ViewKind vk,
                             InteractionKey ik,
                             java.security.Principal asserter,
                             org.apache.axis.message.addressing.EndpointReference recordPortAddress)

InteractionRecordImpl

public InteractionRecordImpl(ViewKind vk,
                             org.apache.axis.message.addressing.EndpointReference sink,
                             org.apache.axis.message.addressing.EndpointReference source,
                             java.security.Principal asserter,
                             org.apache.axis.message.addressing.EndpointReference recordPortAddress)
                      throws java.lang.Exception,
                             CSLException
Throws:
java.lang.Exception
CSLException
Method Detail

addInteractionPAssertion

public GlobalPAssertionKey addInteractionPAssertion(org.w3c.dom.Element message)
                                             throws java.lang.Exception,
                                                    CSLException
Description copied from interface: InteractionRecord
Add a InteractionPAssertion using Verbatim Documentation Style

Specified by:
addInteractionPAssertion in interface InteractionRecord
Parameters:
message - As Element
Throws:
java.lang.Exception
CSLException

addInteractionPAssertion

public GlobalPAssertionKey addInteractionPAssertion(org.w3c.dom.Element message,
                                                    java.net.URI ds)
                                             throws java.lang.Exception,
                                                    CSLException
Description copied from interface: InteractionRecord
Add a InteractionPAssertion

Specified by:
addInteractionPAssertion in interface InteractionRecord
Parameters:
message - As Element
ds - documentationStyle As java.net.URI
Throws:
java.lang.Exception
CSLException

addActorStatePAssertion

public GlobalPAssertionKey addActorStatePAssertion(org.w3c.dom.Element actorState)
                                            throws java.lang.Exception,
                                                   CSLException
Description copied from interface: InteractionRecord
Add an ActorStatePAssertion using Verbatim Documentation Style

Specified by:
addActorStatePAssertion in interface InteractionRecord
Parameters:
actorState - As Element
Throws:
java.lang.Exception
CSLException

addActorStatePAssertion

public GlobalPAssertionKey addActorStatePAssertion(org.w3c.dom.Element actorState,
                                                   java.net.URI ds)
                                            throws java.lang.Exception,
                                                   CSLException
Description copied from interface: InteractionRecord
Add an ActorStatePAssertion

Specified by:
addActorStatePAssertion in interface InteractionRecord
Parameters:
actorState - As Element
ds - documentationStyle as java.net.URI
Throws:
java.lang.Exception
CSLException

addRelationshipPAssertion

public GlobalPAssertionKey addRelationshipPAssertion(RelationObject[] relationObject,
                                                     java.net.URI relationship,
                                                     RelationSubject relationSubject)
                                              throws java.lang.Exception,
                                                     CSLException
Description copied from interface: InteractionRecord
Add a relationshipPAssertion

Specified by:
addRelationshipPAssertion in interface InteractionRecord
Throws:
java.lang.Exception
CSLException

getInteractionKey

public InteractionKey getInteractionKey()
                                 throws CSLException
Description copied from interface: InteractionRecord
Get the InteractionKey

Specified by:
getInteractionKey in interface InteractionRecord
Returns:
InteractionKey
Throws:
CSLException

getRecordPortAddress

public org.apache.axis.message.addressing.EndpointReference getRecordPortAddress()
                                                                          throws CSLException
Description copied from interface: InteractionRecord
Get the Record Address

Specified by:
getRecordPortAddress in interface InteractionRecord
Returns:
recordAddress As EndpointReference
Throws:
CSLException

getViewKind

public ViewKind getViewKind()
                     throws CSLException
Description copied from interface: InteractionRecord
get the Side

return true if it is sender side return false if it is receive side

Specified by:
getViewKind in interface InteractionRecord
Throws:
CSLException

getAsserter

public java.security.Principal getAsserter()
                                    throws CSLException
Description copied from interface: InteractionRecord
get the Asserter

Specified by:
getAsserter in interface InteractionRecord
Returns:
asserter As Principal
Throws:
CSLException

setInteractionKey

public void setInteractionKey(InteractionKey ik)
                       throws CSLException
Description copied from interface: InteractionRecord
set the InteractionKey

Specified by:
setInteractionKey in interface InteractionRecord
Parameters:
ik - As InteractionKey
Throws:
CSLException

setViewKind

public void setViewKind(ViewKind vk)
                 throws CSLException
Description copied from interface: InteractionRecord
Set the Side

true if it is sender side false if it is receive side

Specified by:
setViewKind in interface InteractionRecord
Throws:
CSLException

setAsserter

public void setAsserter(java.security.Principal asserter)
                 throws CSLException
Description copied from interface: InteractionRecord
set the Asserter

Specified by:
setAsserter in interface InteractionRecord
Parameters:
asserter - As Principal
Throws:
CSLException

record

public RecordResult record()
                    throws java.lang.Exception,
                           CSLException
Description copied from interface: InteractionRecord
Record PAssertions to Provenance Service

Specified by:
record in interface InteractionRecord
Throws:
java.lang.Exception
CSLException