Class AuthorizationDomainManager
- java.lang.Object
-
- org.apache.manifoldcf.core.database.BaseTable
-
- org.apache.manifoldcf.authorities.authdomains.AuthorizationDomainManager
-
- All Implemented Interfaces:
IAuthorizationDomainManager
public class AuthorizationDomainManager extends BaseTable implements IAuthorizationDomainManager
This is the implementation of that authority connector manager.
authdomainsField Type Description description VARCHAR(255) domainname VARCHAR(255) Primary Key
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_rcsidprotected static java.lang.StringdescriptionFieldprotected static java.lang.StringdomainNameFieldprotected IThreadContextthreadContext-
Fields inherited from class org.apache.manifoldcf.core.database.BaseTable
dbInterface, tableName
-
-
Constructor Summary
Constructors Constructor Description AuthorizationDomainManager(IThreadContext threadContext, IDBInterface database)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeinstall()Uninstall.protected java.lang.StringgetCacheKey()Get the cache key for the connector manager table.java.lang.StringgetDescription(java.lang.String domainName)Get a description given a domain name.IResultSetgetDomains()Get ordered list of domains.voidinstall()Install or upgrade.voidregisterDomain(java.lang.String description, java.lang.String domainName)Register a new domain.voidunregisterDomain(java.lang.String domainName)Unregister a domain.-
Methods inherited from class org.apache.manifoldcf.core.database.BaseTable
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, sleepFor
-
-
-
-
Field Detail
-
_rcsid
public static final java.lang.String _rcsid
- See Also:
- Constant Field Values
-
descriptionField
protected static final java.lang.String descriptionField
- See Also:
- Constant Field Values
-
domainNameField
protected static final java.lang.String domainNameField
- See Also:
- Constant Field Values
-
threadContext
protected final IThreadContext threadContext
-
-
Constructor Detail
-
AuthorizationDomainManager
public AuthorizationDomainManager(IThreadContext threadContext, IDBInterface database) throws ManifoldCFException
Constructor.- Parameters:
threadContext- is the thread context.database- is the database handle.- Throws:
ManifoldCFException
-
-
Method Detail
-
install
public void install() throws ManifoldCFExceptionInstall or upgrade.- Specified by:
installin interfaceIAuthorizationDomainManager- Throws:
ManifoldCFException
-
deinstall
public void deinstall() throws ManifoldCFExceptionUninstall.- Specified by:
deinstallin interfaceIAuthorizationDomainManager- Throws:
ManifoldCFException
-
registerDomain
public void registerDomain(java.lang.String description, java.lang.String domainName) throws ManifoldCFExceptionRegister a new domain.- Specified by:
registerDomainin interfaceIAuthorizationDomainManager- Parameters:
description- is the description to use in the UI.domainName- is the internal domain name used by the authority service.- Throws:
ManifoldCFException
-
unregisterDomain
public void unregisterDomain(java.lang.String domainName) throws ManifoldCFExceptionUnregister a domain. This may fail if any authority connections refer to the domain.- Specified by:
unregisterDomainin interfaceIAuthorizationDomainManager- Parameters:
domainName- is the internal domain name to unregister.- Throws:
ManifoldCFException
-
getDomains
public IResultSet getDomains() throws ManifoldCFException
Get ordered list of domains.- Specified by:
getDomainsin interfaceIAuthorizationDomainManager- Returns:
- a resultset with the columns "description" and "domainname". These will be ordered by description.
- Throws:
ManifoldCFException
-
getDescription
public java.lang.String getDescription(java.lang.String domainName) throws ManifoldCFExceptionGet a description given a domain name.- Specified by:
getDescriptionin interfaceIAuthorizationDomainManager- Parameters:
domainName- is the domain name.- Returns:
- the description, or null if the domain is not registered.
- Throws:
ManifoldCFException
-
getCacheKey
protected java.lang.String getCacheKey()
Get the cache key for the connector manager table.- Returns:
- the cache key
-
-