public abstract class Repository extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
authDomain |
protected java.lang.String |
authenticatedQueryPath |
protected java.lang.String |
authorizationPath |
protected java.lang.String |
authProtocol |
protected boolean |
includeInSave |
protected boolean |
includeInSearch |
protected java.lang.String |
lsidAuthority |
protected java.lang.String |
lsidPath |
protected java.lang.String |
name |
protected java.lang.String |
putPath |
protected java.lang.String |
queryPath |
protected java.lang.String |
registry |
protected java.lang.String |
registryauth |
protected java.lang.String |
repository |
Constructor and Description |
---|
Repository(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)
constructor
|
Modifier and Type | Method and Description |
---|---|
abstract java.io.InputStream |
get(KeplerLSID lsid,
boolean authenticate)
return the object from the repository that has the given lsid
|
abstract java.io.InputStream |
get(java.lang.String id,
boolean authenticate)
get method with a string id
|
java.lang.String |
getAuthDomain()
return the authentication service path
|
java.lang.String |
getAuthenticatedQueryPath()
return the authenticated query service path
|
java.lang.String |
getAuthorizationPath()
return the authorization service path
|
java.lang.String |
getAuthProtocol()
return the protocol of the authentication
|
java.lang.String |
getLsidAuthority() |
java.lang.String |
getLSIDPath()
return the lsid service path
|
abstract java.lang.String |
getLSIDServerURL()
get the url for the lsid service associated with this repository
|
java.lang.String |
getName()
get the name of the repository
|
java.lang.String |
getPutPath()
return the put service path
|
java.lang.String |
getQueryPath()
return the query service path
|
java.lang.String |
getRegistry()
get the registry of the repository
|
java.lang.String |
getRepository()
get the repository url
|
boolean |
includeInSave()
If the repository is included in saving process
|
boolean |
includeInSearch() |
abstract void |
put(java.lang.Object o,
KeplerLSID lsid,
java.lang.String sessionid)
put an object into the repository with a predetermined sessionid
|
abstract java.util.Iterator |
search(java.lang.String queryString,
boolean authenticate)
Search the repository and return an iterator of results (the Iterator
contains KeplerLSIDs of matched items).
|
void |
setIncludeInSave(boolean includeInSave)
Set the repository to be included in saving process or not
|
void |
setIncludeInSearch(boolean includeInSearch) |
java.lang.String |
toString()
return a string rep of this object for debug purposes
|
protected java.lang.String name
protected java.lang.String repository
protected java.lang.String putPath
protected java.lang.String authDomain
protected java.lang.String queryPath
protected java.lang.String authenticatedQueryPath
protected java.lang.String authorizationPath
protected java.lang.String lsidPath
protected java.lang.String registry
protected java.lang.String registryauth
protected java.lang.String authProtocol
protected java.lang.String lsidAuthority
protected boolean includeInSearch
protected boolean includeInSave
public Repository(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)
repository
- the address of the repositoryusername
- the username of the repositorypassword
- the password for the repositoryauthProtocol
- protocol (http or https for the repository)public abstract java.util.Iterator search(java.lang.String queryString, boolean authenticate) throws RepositoryException, AuthenticationException
public abstract java.io.InputStream get(KeplerLSID lsid, boolean authenticate) throws RepositoryException, AuthenticationException
public abstract java.io.InputStream get(java.lang.String id, boolean authenticate) throws RepositoryException, AuthenticationException
public abstract void put(java.lang.Object o, KeplerLSID lsid, java.lang.String sessionid) throws RepositoryException
RepositoryException
public abstract java.lang.String getLSIDServerURL()
public java.lang.String getRepository()
public java.lang.String getName()
public java.lang.String getRegistry()
public java.lang.String getAuthDomain()
public java.lang.String getPutPath()
public java.lang.String getQueryPath()
public java.lang.String getAuthenticatedQueryPath()
public java.lang.String getLSIDPath()
public java.lang.String getAuthorizationPath()
public java.lang.String getAuthProtocol()
public java.lang.String getLsidAuthority()
public boolean includeInSearch()
public void setIncludeInSearch(boolean includeInSearch)
public boolean includeInSave()
public void setIncludeInSave(boolean includeInSave)
includeInSave
- true if the repository should be includedpublic java.lang.String toString()
toString
in class java.lang.Object