org.embl.ebi.escience.scufl.enactor.implementation
Class SimpleUserContext

java.lang.Object
  extended by org.embl.ebi.escience.scufl.enactor.implementation.SimpleUserContext
All Implemented Interfaces:
UserContext

public class SimpleUserContext
extends java.lang.Object
implements UserContext

A simple implementation of the UserContext interface that is configured by parameters in its constructor and is subsequently immutable. No security properties are contained by this context implementation.

Author:
Tom Oinn

Constructor Summary
SimpleUserContext(uk.ac.soton.itinnovation.freefluo.main.FlowContext flowContext)
           
SimpleUserContext(java.lang.String personLSID, java.lang.String organizationLSID, java.lang.String experimentDesignLSID)
           
SimpleUserContext(java.lang.String personLSID, java.lang.String organisationLSID, java.lang.String experimentDesignLSID, java.lang.String username, java.lang.String password)
           
 
Method Summary
 java.lang.String getExperimentDesignLSID()
           
 java.lang.String getOrganizationLSID()
           
 java.lang.String getPersonLSID()
           
 java.lang.String[] getUserNameAndPassword(java.lang.String resourceExpression)
           
 uk.ac.soton.itinnovation.freefluo.main.FlowContext toFlowContext()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleUserContext

public SimpleUserContext(java.lang.String personLSID,
                         java.lang.String organisationLSID,
                         java.lang.String experimentDesignLSID,
                         java.lang.String username,
                         java.lang.String password)

SimpleUserContext

public SimpleUserContext(java.lang.String personLSID,
                         java.lang.String organizationLSID,
                         java.lang.String experimentDesignLSID)

SimpleUserContext

public SimpleUserContext(uk.ac.soton.itinnovation.freefluo.main.FlowContext flowContext)
Method Detail

getPersonLSID

public java.lang.String getPersonLSID()
Specified by:
getPersonLSID in interface UserContext

getOrganizationLSID

public java.lang.String getOrganizationLSID()
Specified by:
getOrganizationLSID in interface UserContext

getExperimentDesignLSID

public java.lang.String getExperimentDesignLSID()
Specified by:
getExperimentDesignLSID in interface UserContext

getUserNameAndPassword

public java.lang.String[] getUserNameAndPassword(java.lang.String resourceExpression)
Specified by:
getUserNameAndPassword in interface UserContext

toFlowContext

public uk.ac.soton.itinnovation.freefluo.main.FlowContext toFlowContext()
Specified by:
toFlowContext in interface UserContext