org.eclipse.higgins.idas.cp.jena2.impl
Class SharedContext
java.lang.Object
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
SharedContext
public SharedContext()
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