public class AuthorityConnectionManager extends BaseTable implements IAuthorityConnectionManager
| Field | Type | Description |
|---|---|---|
| authorityname | VARCHAR(32) | Primary Key |
| description | VARCHAR(255) | |
| classname | VARCHAR(255) | |
| maxcount | BIGINT | |
| configxml | LONGTEXT | |
| mappingname | VARCHAR(32) | |
| authdomainname | VARCHAR(255) | |
| groupname | VARCHAR(32) |
| Modifier and Type | Class and Description |
|---|---|
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.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_rcsid |
protected static java.lang.String |
authDomainField |
protected static java.lang.String |
authoritiesLock |
protected ICacheManager |
cacheManager |
protected static java.lang.String |
classNameField |
protected static java.lang.String |
configField |
protected static java.lang.String |
descriptionField |
protected static int |
FETCH_MAX |
protected static java.lang.String |
groupNameField |
protected ILockManager |
lockManager |
protected static java.lang.String |
mappingField |
protected static java.lang.String |
maxCountField |
protected static java.lang.String |
nameField |
protected IThreadContext |
threadContext |
dbInterface, tableName| Constructor and Description |
|---|
AuthorityConnectionManager(IThreadContext threadContext,
IDBInterface database)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
IAuthorityConnection |
create()
Create a new repository connection object.
|
void |
deinstall()
Uninstall the manager.
|
void |
delete(java.lang.String name)
Delete an authority connection.
|
void |
exportConfiguration(java.io.OutputStream os)
Export configuration
|
IAuthorityConnection[] |
getAllConnections()
Obtain a list of the authority 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.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.
|
IAuthorityConnection[] |
getDomainConnections(java.lang.String authDomain)
Obtain a list of the authority connections which correspond to an auth domain.
|
void |
importConfiguration(java.io.InputStream is)
Import configuration
|
void |
install()
Install the manager.
|
boolean |
isGroupReferenced(java.lang.String groupName)
Return true if the specified authority group name is referenced.
|
boolean |
isMappingReferenced(java.lang.String mappingName)
Return true if the specified mapping name is referenced.
|
IAuthorityConnection |
load(java.lang.String name)
Load a repository connection by name.
|
IAuthorityConnection[] |
loadMultiple(java.lang.String[] names)
Load multiple repository connections by name.
|
protected int |
loadMultipleInternal(IAuthorityConnection[] rval,
int outputIndex,
java.lang.String[] fetchNames,
int inputIndex,
int length) |
protected int |
maxClauseGetAuthorityConnectionsChunk()
Find the maximum number of clauses for getAuthorityConnectionsChunk.
|
boolean |
save(IAuthorityConnection object)
Save a repository connection object.
|
addTableIndex, analyzeTable, beginTransaction, buildConjunctionClause, constructCountClause, constructDistinctOnClause, constructDoubleCastClause, constructOffsetLimitClause, constructRegexpClause, constructSubstringClause, endTransaction, findConjunctionClauseMax, getDatabaseCacheKey, getDBInterface, getMaxInClause, getMaxOrClause, getSleepAmt, getTableIndexes, getTableName, getTableSchema, getTransactionID, getWindowedReportMaxRows, makeTableKey, noteModifications, performAddIndex, performAlter, performCommit, performCreate, performDelete, performDrop, performInsert, performModification, performQuery, performQuery, performRemoveIndex, performUpdate, prepareRowForSave, readRow, reindexTable, signalRollback, sleepForclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTableNamepublic 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 final java.lang.String mappingField
protected static final java.lang.String authDomainField
protected static final java.lang.String groupNameField
protected final ICacheManager cacheManager
protected final IThreadContext threadContext
protected final ILockManager lockManager
protected static final java.lang.String authoritiesLock
protected static final int FETCH_MAX
public AuthorityConnectionManager(IThreadContext threadContext, IDBInterface database) throws ManifoldCFException
threadContext - is the thread context.ManifoldCFExceptionpublic void install()
throws ManifoldCFException
install in interface IAuthorityConnectionManagerManifoldCFExceptionpublic void deinstall()
throws ManifoldCFException
deinstall in interface IAuthorityConnectionManagerManifoldCFExceptionpublic void exportConfiguration(java.io.OutputStream os)
throws java.io.IOException,
ManifoldCFException
exportConfiguration in interface IAuthorityConnectionManagerjava.io.IOExceptionManifoldCFExceptionpublic void importConfiguration(java.io.InputStream is)
throws java.io.IOException,
ManifoldCFException
importConfiguration in interface IAuthorityConnectionManagerjava.io.IOExceptionManifoldCFExceptionpublic boolean isGroupReferenced(java.lang.String groupName)
throws ManifoldCFException
isGroupReferenced in interface IAuthorityConnectionManagergroupName - is the authority group name.ManifoldCFExceptionpublic IAuthorityConnection[] getDomainConnections(java.lang.String authDomain) throws ManifoldCFException
getDomainConnections in interface IAuthorityConnectionManagerauthDomain - is the domain to get connections for.ManifoldCFExceptionpublic IAuthorityConnection[] getAllConnections() throws ManifoldCFException
getAllConnections in interface IAuthorityConnectionManagerManifoldCFExceptionpublic IAuthorityConnection load(java.lang.String name) throws ManifoldCFException
load in interface IAuthorityConnectionManagername - is the name of the repository connection.ManifoldCFExceptionpublic IAuthorityConnection[] loadMultiple(java.lang.String[] names) throws ManifoldCFException
loadMultiple in interface IAuthorityConnectionManagernames - are the names to load.ManifoldCFExceptionprotected int loadMultipleInternal(IAuthorityConnection[] rval, int outputIndex, java.lang.String[] fetchNames, int inputIndex, int length) throws ManifoldCFException
ManifoldCFExceptionpublic IAuthorityConnection create() throws ManifoldCFException
create in interface IAuthorityConnectionManagerManifoldCFExceptionpublic boolean save(IAuthorityConnection object) throws ManifoldCFException
save in interface IAuthorityConnectionManagerobject - is the object to save.ManifoldCFExceptionpublic 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 IAuthorityConnectionManagerpublic boolean isMappingReferenced(java.lang.String mappingName)
throws ManifoldCFException
isMappingReferenced in interface IAuthorityConnectionManagermappingName - is the mapping name.ManifoldCFExceptionprotected 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.ManifoldCFExceptionprotected int maxClauseGetAuthorityConnectionsChunk()
protected void getAuthorityConnectionsChunk(AuthorityConnection[] rval, java.util.Map returnIndex, 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.params - is the set of parameters.ManifoldCFException