|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.manifoldcf.core.database.BaseTable
org.apache.manifoldcf.authorities.authority.AuthorityConnectionManager
public class AuthorityConnectionManager
Implementation of the authority connection manager functionality.
| Nested Class Summary | |
|---|---|
protected static class |
AuthorityConnectionManager.AuthorityConnectionDescription
This is the object description for a repository connection object. |
protected static class |
AuthorityConnectionManager.AuthorityConnectionExecutor
This is the executor object for locating repository connection objects. |
| Field Summary | |
|---|---|
static java.lang.String |
_rcsid
|
protected static java.lang.String |
classNameField
|
protected static java.lang.String |
configField
|
protected static java.lang.String |
descriptionField
|
protected static java.lang.String |
maxCountField
|
protected static java.lang.String |
nameField
|
protected static java.util.Random |
random
|
| Fields inherited from class org.apache.manifoldcf.core.database.BaseTable |
|---|
dbInterface, tableName |
| Constructor Summary | |
|---|---|
AuthorityConnectionManager(IThreadContext threadContext,
IDBInterface database)
Constructor. |
|
| Method Summary | |
|---|---|
IAuthorityConnection |
create()
Create a new repository connection object. |
void |
deinstall()
Uninstall the manager. |
void |
delete(java.lang.String name)
Delete a repository connection. |
void |
exportConfiguration(java.io.OutputStream os)
Export configuration |
IAuthorityConnection[] |
getAllConnections()
Obtain a list of the repository connections, ordered by name. |
protected static java.lang.String |
getAuthorityConnectionKey(java.lang.String connectionName)
Construct a key which represents an individual repository connection. |
protected void |
getAuthorityConnectionsChunk(AuthorityConnection[] rval,
java.util.Map returnIndex,
java.lang.String idList,
java.util.ArrayList params)
Read a chunk of authority connections. |
protected static java.lang.String |
getAuthorityConnectionsKey()
Construct a key which represents the general list of repository connectors. |
protected AuthorityConnection[] |
getAuthorityConnectionsMultiple(java.lang.String[] connectionNames)
Fetch multiple repository connections at a single time. |
java.lang.String |
getAuthorityNameColumn()
Get the authority connection name column. |
void |
importConfiguration(java.io.InputStream is)
Import configuration |
void |
install()
Install the manager. |
IAuthorityConnection |
load(java.lang.String name)
Load a repository connection by name. |
IAuthorityConnection[] |
loadMultiple(java.lang.String[] names)
Load multiple repository connections by name. |
boolean |
save(IAuthorityConnection object)
Save a repository connection object. |
| Methods inherited from class org.apache.manifoldcf.core.database.BaseTable |
|---|
addTableIndex, analyzeTable, beginTransaction, constructDistinctOnClause, constructOffsetLimitClause, constructRegexpClause, constructSubstringClause, endTransaction, getDatabaseCacheKey, getDBInterface, getMaxInClause, getMaxOrClause, getTableIndexes, getTableName, getTableSchema, getTransactionID, makeTableKey, noteModifications, performAddIndex, performAlter, performCreate, performDelete, performDrop, performInsert, performLock, performModification, performQuery, performQuery, performRemoveIndex, performUpdate, prepareRowForSave, readRow, reindexTable, signalRollback |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.manifoldcf.authorities.interfaces.IAuthorityConnectionManager |
|---|
getTableName |
| Field Detail |
|---|
public static final java.lang.String _rcsid
protected static final java.lang.String nameField
protected static final java.lang.String descriptionField
protected static final java.lang.String classNameField
protected static final java.lang.String maxCountField
protected static final java.lang.String configField
protected static java.util.Random random
| Constructor Detail |
|---|
public AuthorityConnectionManager(IThreadContext threadContext,
IDBInterface database)
throws ManifoldCFException
threadContext - is the thread context.
ManifoldCFException| Method Detail |
|---|
public void install()
throws ManifoldCFException
install in interface IAuthorityConnectionManagerManifoldCFException
public void deinstall()
throws ManifoldCFException
deinstall in interface IAuthorityConnectionManagerManifoldCFException
public void exportConfiguration(java.io.OutputStream os)
throws java.io.IOException,
ManifoldCFException
exportConfiguration in interface IAuthorityConnectionManagerjava.io.IOException
ManifoldCFException
public void importConfiguration(java.io.InputStream is)
throws java.io.IOException,
ManifoldCFException
importConfiguration in interface IAuthorityConnectionManagerjava.io.IOException
ManifoldCFException
public IAuthorityConnection[] getAllConnections()
throws ManifoldCFException
getAllConnections in interface IAuthorityConnectionManagerManifoldCFException
public IAuthorityConnection load(java.lang.String name)
throws ManifoldCFException
load in interface IAuthorityConnectionManagername - is the name of the repository connection.
ManifoldCFException
public IAuthorityConnection[] loadMultiple(java.lang.String[] names)
throws ManifoldCFException
names - are the names to load.
ManifoldCFException
public IAuthorityConnection create()
throws ManifoldCFException
create in interface IAuthorityConnectionManagerManifoldCFException
public boolean save(IAuthorityConnection object)
throws ManifoldCFException
save in interface IAuthorityConnectionManagerobject - is the object to save.
ManifoldCFException
public void delete(java.lang.String name)
throws ManifoldCFException
delete in interface IAuthorityConnectionManagername - is the name of the connection to delete. If the
name does not exist, no error is returned.
ManifoldCFExceptionpublic java.lang.String getAuthorityNameColumn()
getAuthorityNameColumn in interface IAuthorityConnectionManagerprotected static java.lang.String getAuthorityConnectionsKey()
protected static java.lang.String getAuthorityConnectionKey(java.lang.String connectionName)
connectionName - is the name of the connector.
protected AuthorityConnection[] getAuthorityConnectionsMultiple(java.lang.String[] connectionNames)
throws ManifoldCFException
connectionNames - are a list of connection names.
ManifoldCFException
protected void getAuthorityConnectionsChunk(AuthorityConnection[] rval,
java.util.Map returnIndex,
java.lang.String idList,
java.util.ArrayList params)
throws ManifoldCFException
rval - is the place to put the read policies.returnIndex - is a map from the object id (resource id) and the rval index.idList - is the list of id's.params - is the set of parameters.
ManifoldCFException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||