org.eaglei.datatools.etl.server
Class RepoService

java.lang.Object
  extended by org.eaglei.datatools.etl.server.RepoService

public class RepoService
extends java.lang.Object


Field Summary
static org.eaglei.model.EIEntity DEFAULT_CREATE_TRANSITION
           
static org.eaglei.model.EIEntity PUBLISH_TRANSITION
           
static org.eaglei.model.EIEntity SENT_TO_CURATION_TRANSITION
           
 
Method Summary
 org.eaglei.datatools.config.DatatoolsConfiguration getDatatoolsConfiguration()
           
static RepoService getInstance(org.eaglei.model.EIOntModel ontModel, org.eaglei.services.repository.SecurityProvider commonSecurityProvider)
           
static RepoService getInstance(java.lang.String file, org.eaglei.model.EIOntModel ontModel, org.eaglei.services.repository.SecurityProvider commonSecurityProvider)
           
 java.util.List<org.eaglei.model.EIURI> getNewInstancesFromRepo(int countofInstances)
          gets the new instance from Repo
 com.hp.hpl.jena.rdf.model.Resource getNewResourceFromRepository(com.hp.hpl.jena.rdf.model.Model modelTocreateStatments)
           
 java.lang.String getRepoConfigFile()
           
 org.eaglei.datatools.provider.RepositoryProvider getRepositoryProvider()
           
 org.eaglei.datatools.jena.FooRepositorySecurityProvider getRepositorySecurityProvider()
           
 org.eaglei.security.Session getSession()
           
 org.eaglei.security.Session login(java.lang.String repoPath)
           
 boolean pushToRepo(org.eaglei.model.EIInstance instance)
           
 boolean pushToRepo(com.hp.hpl.jena.rdf.model.Model rdfModel, org.eaglei.security.Session session, java.lang.String uri, java.lang.String promoteParameter)
          pushed the Model to Repo and promotes it
 boolean pushToRepo(java.lang.String rdfString, java.lang.String instanceUri)
           
 java.lang.String query(java.lang.String query)
           
 void setPropertyFilePathAndgetNewRepoProvider(java.lang.String configFilePath)
           
 void setSession(org.eaglei.security.Session session)
           
 boolean workFlowTansistion(org.eaglei.model.EIURI resource, Loader.Promote promote)
           
 boolean workFlowTansistion(java.util.List<org.eaglei.model.EIURI> lstResource, Loader.Promote promote)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CREATE_TRANSITION

public static final org.eaglei.model.EIEntity DEFAULT_CREATE_TRANSITION

SENT_TO_CURATION_TRANSITION

public static final org.eaglei.model.EIEntity SENT_TO_CURATION_TRANSITION

PUBLISH_TRANSITION

public static final org.eaglei.model.EIEntity PUBLISH_TRANSITION
Method Detail

getRepositoryProvider

public org.eaglei.datatools.provider.RepositoryProvider getRepositoryProvider()

getRepositorySecurityProvider

public org.eaglei.datatools.jena.FooRepositorySecurityProvider getRepositorySecurityProvider()

getDatatoolsConfiguration

public org.eaglei.datatools.config.DatatoolsConfiguration getDatatoolsConfiguration()

getInstance

public static RepoService getInstance(java.lang.String file,
                                      org.eaglei.model.EIOntModel ontModel,
                                      org.eaglei.services.repository.SecurityProvider commonSecurityProvider)
                               throws java.lang.Exception
Throws:
java.lang.Exception

workFlowTansistion

public boolean workFlowTansistion(org.eaglei.model.EIURI resource,
                                  Loader.Promote promote)
                           throws java.lang.Exception
Throws:
java.lang.Exception

workFlowTansistion

public boolean workFlowTansistion(java.util.List<org.eaglei.model.EIURI> lstResource,
                                  Loader.Promote promote)
                           throws java.lang.Exception
Throws:
java.lang.Exception

getInstance

public static RepoService getInstance(org.eaglei.model.EIOntModel ontModel,
                                      org.eaglei.services.repository.SecurityProvider commonSecurityProvider)
                               throws java.lang.Exception
Throws:
java.lang.Exception

pushToRepo

public boolean pushToRepo(com.hp.hpl.jena.rdf.model.Model rdfModel,
                          org.eaglei.security.Session session,
                          java.lang.String uri,
                          java.lang.String promoteParameter)
                   throws java.lang.Exception
pushed the Model to Repo and promotes it

Parameters:
rdfModel -
session -
uri -
Returns:
Throws:
java.lang.Exception

pushToRepo

public boolean pushToRepo(org.eaglei.model.EIInstance instance)
                   throws java.lang.Exception
Throws:
java.lang.Exception

pushToRepo

public boolean pushToRepo(java.lang.String rdfString,
                          java.lang.String instanceUri)
                   throws org.eaglei.services.repository.RepositoryProviderException
Throws:
org.eaglei.services.repository.RepositoryProviderException

query

public java.lang.String query(java.lang.String query)
                       throws java.lang.Exception
Throws:
java.lang.Exception

getNewInstancesFromRepo

public java.util.List<org.eaglei.model.EIURI> getNewInstancesFromRepo(int countofInstances)
gets the new instance from Repo

Parameters:
countofInstances -
Returns:
Throws:
java.lang.Exception

setPropertyFilePathAndgetNewRepoProvider

public void setPropertyFilePathAndgetNewRepoProvider(java.lang.String configFilePath)
                                              throws java.io.IOException
Throws:
java.io.IOException

login

public org.eaglei.security.Session login(java.lang.String repoPath)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

getNewResourceFromRepository

public com.hp.hpl.jena.rdf.model.Resource getNewResourceFromRepository(com.hp.hpl.jena.rdf.model.Model modelTocreateStatments)

getSession

public org.eaglei.security.Session getSession()

setSession

public void setSession(org.eaglei.security.Session session)

getRepoConfigFile

public java.lang.String getRepoConfigFile()


Copyright © 2009-2011 Eagle-I. All Rights Reserved.