public class EcogridRepository extends Repository
| Modifier and Type | Class and Description |
|---|---|
class |
EcogridRepository.RegistryClientContainer
a class to hold a registry client and a sessionid
|
authDomain, authenticatedQueryPath, authorizationPath, authProtocol, includeInSave, includeInSearch, lsidAuthority, lsidPath, name, putPath, queryPath, registry, registryauth, repository| Constructor and Description |
|---|
EcogridRepository(java.lang.String name,
java.lang.String repository,
java.lang.String putPath,
java.lang.String authDomain,
java.lang.String lsidPath,
java.lang.String queryPath,
java.lang.String authenticatedQueryPath,
java.lang.String authorizationPath,
java.lang.String registry,
java.lang.String registryauth,
java.lang.String authProtocol,
java.lang.String lsidAuthority) |
| Modifier and Type | Method and Description |
|---|---|
KeplerLSID |
addRegistryEntry(org.ecoinformatics.ecogrid.registry.stub.RegistryEntryType registryEntry,
java.lang.String sessionId)
add an ecogrid registry entry.
|
java.util.Iterator<EcogridRepositoryResults> |
advancedSearch(java.io.Reader queryDocument,
boolean authenticate)
Search the repository and return an iterator of EcogridRepositoryResults.
|
org.ecoinformatics.ecogrid.queryservice.resultset.ResultsetType |
arbitrarySearch(java.io.Reader queryDocument,
boolean authenticate)
Search the repository using queryDocument.
|
java.io.InputStream |
get(KeplerLSID lsid,
boolean authenticate)
return the object from the repository that has the given lsid
|
java.io.InputStream |
get(java.lang.String docid,
boolean authenticate)
return an object using a ecogrid docid identifier
|
java.lang.String |
getAuthorizationServerURL()
Get the url for the authorization service associated with this repository
|
static KarXml |
getKarXml(java.lang.String docid,
java.lang.String repositoryName,
boolean authenticate)
Return karXml for a docid from a repositoryName.
|
java.lang.String |
getLSIDServerURL()
return the url for the lsid service associated with this repository
|
java.lang.String |
getNextObject(KeplerLSID lsid)
returns the next object for the given lsid
|
java.lang.String |
getNextRevision(KeplerLSID lsid)
returns the next revision for the given lsid
|
java.lang.String |
loginRegEcoGrid(java.lang.String userName,
java.lang.String password)
login to the registry
|
void |
put(java.lang.Object o,
KeplerLSID lsid,
java.lang.String sessionId)
put a file with a predetermined sessionid
|
void |
removeRegistryEntry(KeplerLSID lsid,
java.lang.String sessionId)
remove an ecogrid registry entry.
|
java.util.Iterator<EcogridRepositoryResults> |
search(java.lang.String queryString,
boolean authenticate)
Search the repository and return an iterator of EcogridRepositoryResults.
|
void |
updateRegistryEntry(java.lang.String registryEntry,
KeplerLSID lsid)
update an ecogrid registry entry.
|
getAuthDomain, getAuthenticatedQueryPath, getAuthorizationPath, getAuthProtocol, getLsidAuthority, getLSIDPath, getName, getPutPath, getQueryPath, getRegistry, getRepository, includeInSave, includeInSearch, setIncludeInSave, setIncludeInSearch, toStringpublic EcogridRepository(java.lang.String name, java.lang.String repository, java.lang.String putPath, java.lang.String authDomain, java.lang.String lsidPath, java.lang.String queryPath, java.lang.String authenticatedQueryPath, java.lang.String authorizationPath, java.lang.String registry, java.lang.String registryauth, java.lang.String authProtocol, java.lang.String lsidAuthority)
public java.lang.String getLSIDServerURL()
getLSIDServerURL in class Repositorypublic java.lang.String getAuthorizationServerURL()
public java.util.Iterator<EcogridRepositoryResults> search(java.lang.String queryString, boolean authenticate) throws RepositoryException, AuthenticationException
search in class RepositoryqueryString - a string to search forauthenticate - booleanAuthenticationExceptionRepositoryExceptionEcogridRepositoryResultspublic java.util.Iterator<EcogridRepositoryResults> advancedSearch(java.io.Reader queryDocument, boolean authenticate) throws RepositoryException, AuthenticationException
queryDocument - - the query document to give the QueryServiceClientRepositoryExceptionAuthenticationExceptionpublic org.ecoinformatics.ecogrid.queryservice.resultset.ResultsetType arbitrarySearch(java.io.Reader queryDocument, boolean authenticate) throws RepositoryException, AuthenticationException
queryDocument - authenticate - RepositoryExceptionAuthenticationExceptionpublic java.io.InputStream get(java.lang.String docid, boolean authenticate) throws RepositoryException, AuthenticationException
get in class RepositoryAuthenticationExceptionRepositoryExceptionpublic static KarXml getKarXml(java.lang.String docid, java.lang.String repositoryName, boolean authenticate) throws RepositoryException
docid - repositoryName - RepositoryExceptionpublic java.io.InputStream get(KeplerLSID lsid, boolean authenticate) throws RepositoryException, AuthenticationException
get in class RepositoryAuthenticationExceptionRepositoryExceptionpublic void put(java.lang.Object o, KeplerLSID lsid, java.lang.String sessionId) throws RepositoryException
put in class RepositoryRepositoryExceptionpublic java.lang.String getNextObject(KeplerLSID lsid) throws RepositoryException
lsid - the lsid to get the next object forRepositoryExceptionpublic java.lang.String getNextRevision(KeplerLSID lsid) throws RepositoryException
lsid - the lsid to get the next revision forRepositoryExceptionpublic KeplerLSID addRegistryEntry(org.ecoinformatics.ecogrid.registry.stub.RegistryEntryType registryEntry, java.lang.String sessionId) throws RepositoryException
registryEntry - an xml file that conforms to
seek/project/ecogrid/src/xsd_reg/RegistryEntryType.xsdsessionid - the session id to use to authenticateRepositoryExceptionpublic void updateRegistryEntry(java.lang.String registryEntry, KeplerLSID lsid) throws RepositoryException
registryEntry - an xml file that conforms to
seek/project/ecogrid/src/xsd_reg/RegistryEntryType.xsdlsid - the id of the entrysessionid - the session id to use to authenticateRepositoryExceptionpublic void removeRegistryEntry(KeplerLSID lsid, java.lang.String sessionId) throws RepositoryException
lsid - the id of the entrysessionid - the session id to use to authenticateRepositoryExceptionpublic java.lang.String loginRegEcoGrid(java.lang.String userName, java.lang.String password) throws java.lang.Exception
java.lang.Exception