org.eclipse.higgins.idas.cp.jena2.impl
Class SharedContext

java.lang.Object
  extended by org.eclipse.higgins.idas.cp.jena2.impl.SharedContext
All Implemented Interfaces:
ISharedContext
Direct Known Subclasses:
SharedFileContext, SharedJDBCContext

public abstract class SharedContext
extends Object
implements ISharedContext


Constructor Summary
SharedContext()
           
 
Method Summary
 IUserAccount authenticateNamePasswordMaterials(org.eclipse.higgins.idas.common.AuthNNamePasswordMaterials credentials)
           
 IUserAccount authenticateUser(org.eclipse.higgins.idas.api.IAuthNMaterials credentials)
           
 void close(IJenaContext context)
           
 void close(Object context)
           
 com.hp.hpl.jena.ontology.Individual getContextEntityIndividual()
           
 URI getContextEntityType()
           
 com.hp.hpl.jena.ontology.Individual getEntityIndividual(String uri, IUserAccount account)
           
 com.hp.hpl.jena.rdf.model.Property getProperty(String uri)
           
 com.hp.hpl.jena.rdf.model.Resource getResource(String uri, boolean createIfNotExists)
           
 void initContextEntityIndividual()
           
 void open(IJenaContext context)
           
 void open(Object context)
           
 List<com.hp.hpl.jena.ontology.Individual> queryIndividuals(String query)
           
 void saveChanges(List<IStatefulObject> changedObjects)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SharedContext

public SharedContext()
Method Detail

getEntityIndividual

public com.hp.hpl.jena.ontology.Individual getEntityIndividual(String uri,
                                                               IUserAccount account)
                                                        throws org.eclipse.higgins.idas.api.IdASException
Specified by:
getEntityIndividual in interface ISharedContext
Throws:
org.eclipse.higgins.idas.api.IdASException

getProperty

public com.hp.hpl.jena.rdf.model.Property getProperty(String uri)
                                               throws org.eclipse.higgins.idas.api.IdASException
Specified by:
getProperty in interface ISharedContext
Throws:
org.eclipse.higgins.idas.api.IdASException

getResource

public com.hp.hpl.jena.rdf.model.Resource getResource(String uri,
                                                      boolean createIfNotExists)
                                               throws org.eclipse.higgins.idas.api.IdASException
Specified by:
getResource in interface ISharedContext
Throws:
org.eclipse.higgins.idas.api.IdASException

saveChanges

public void saveChanges(List<IStatefulObject> changedObjects)
                 throws org.eclipse.higgins.idas.api.IdASException
Specified by:
saveChanges in interface ISharedContext
Throws:
org.eclipse.higgins.idas.api.IdASException

close

public void close(IJenaContext context)
           throws org.eclipse.higgins.idas.api.IdASException
Specified by:
close in interface ISharedContext
Throws:
org.eclipse.higgins.idas.api.IdASException

open

public void open(IJenaContext context)
          throws org.eclipse.higgins.idas.api.IdASException
Specified by:
open in interface ISharedContext
Throws:
org.eclipse.higgins.idas.api.IdASException

close

public void close(Object context)
           throws org.eclipse.higgins.idas.api.IdASException
Throws:
org.eclipse.higgins.idas.api.IdASException

open

public void open(Object context)
          throws org.eclipse.higgins.idas.api.IdASException
Throws:
org.eclipse.higgins.idas.api.IdASException

queryIndividuals

public List<com.hp.hpl.jena.ontology.Individual> queryIndividuals(String query)
                                                           throws org.eclipse.higgins.idas.api.IdASException
Specified by:
queryIndividuals in interface ISharedContext
Throws:
org.eclipse.higgins.idas.api.IdASException

authenticateUser

public IUserAccount authenticateUser(org.eclipse.higgins.idas.api.IAuthNMaterials credentials)
                              throws org.eclipse.higgins.idas.api.IdASException
Specified by:
authenticateUser in interface ISharedContext
Throws:
org.eclipse.higgins.idas.api.IdASException

authenticateNamePasswordMaterials

public IUserAccount authenticateNamePasswordMaterials(org.eclipse.higgins.idas.common.AuthNNamePasswordMaterials credentials)
                                               throws org.eclipse.higgins.idas.api.IdASException
Throws:
org.eclipse.higgins.idas.api.IdASException

getContextEntityType

public URI getContextEntityType()
                         throws org.eclipse.higgins.idas.api.IdASException
Specified by:
getContextEntityType in interface ISharedContext
Returns:
The type of singleton entity which holds attributes of context
Throws:
org.eclipse.higgins.idas.api.IdASException

getContextEntityIndividual

public com.hp.hpl.jena.ontology.Individual getContextEntityIndividual()
                                                               throws org.eclipse.higgins.idas.api.IdASException
Specified by:
getContextEntityIndividual in interface ISharedContext
Returns:
Singleton entity which holds attributes of context
Throws:
org.eclipse.higgins.idas.api.IdASException

initContextEntityIndividual

public void initContextEntityIndividual()
                                 throws org.eclipse.higgins.idas.api.IdASException
Throws:
org.eclipse.higgins.idas.api.IdASException