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, toString
public 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 Repository
public java.lang.String getAuthorizationServerURL()
public java.util.Iterator<EcogridRepositoryResults> search(java.lang.String queryString, boolean authenticate) throws RepositoryException, AuthenticationException
search
in class Repository
queryString
- a string to search forauthenticate
- booleanAuthenticationException
RepositoryException
EcogridRepositoryResults
public java.util.Iterator<EcogridRepositoryResults> advancedSearch(java.io.Reader queryDocument, boolean authenticate) throws RepositoryException, AuthenticationException
queryDocument
- - the query document to give the QueryServiceClientRepositoryException
AuthenticationException
public org.ecoinformatics.ecogrid.queryservice.resultset.ResultsetType arbitrarySearch(java.io.Reader queryDocument, boolean authenticate) throws RepositoryException, AuthenticationException
queryDocument
- authenticate
- RepositoryException
AuthenticationException
public java.io.InputStream get(java.lang.String docid, boolean authenticate) throws RepositoryException, AuthenticationException
get
in class Repository
AuthenticationException
RepositoryException
public static KarXml getKarXml(java.lang.String docid, java.lang.String repositoryName, boolean authenticate) throws RepositoryException
docid
- repositoryName
- RepositoryException
public java.io.InputStream get(KeplerLSID lsid, boolean authenticate) throws RepositoryException, AuthenticationException
get
in class Repository
AuthenticationException
RepositoryException
public void put(java.lang.Object o, KeplerLSID lsid, java.lang.String sessionId) throws RepositoryException
put
in class Repository
RepositoryException
public java.lang.String getNextObject(KeplerLSID lsid) throws RepositoryException
lsid
- the lsid to get the next object forRepositoryException
public java.lang.String getNextRevision(KeplerLSID lsid) throws RepositoryException
lsid
- the lsid to get the next revision forRepositoryException
public 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 authenticateRepositoryException
public 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 authenticateRepositoryException
public void removeRegistryEntry(KeplerLSID lsid, java.lang.String sessionId) throws RepositoryException
lsid
- the id of the entrysessionid
- the session id to use to authenticateRepositoryException
public java.lang.String loginRegEcoGrid(java.lang.String userName, java.lang.String password) throws java.lang.Exception
java.lang.Exception