public class AuthorityGroupManager extends BaseTable implements IAuthorityGroupManager
Field | Type | Description |
---|---|---|
groupname | VARCHAR(32) | Primary Key |
description | VARCHAR(255) |
Modifier and Type | Class and Description |
---|---|
protected static class |
AuthorityGroupManager.AuthorityGroupDescription
This is the object description for an authority group object.
|
protected static class |
AuthorityGroupManager.AuthorityGroupExecutor
This is the executor object for locating authority group objects.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
_rcsid |
protected static java.lang.String |
descriptionField |
protected static java.lang.String |
nameField |
dbInterface, tableName
Constructor and Description |
---|
AuthorityGroupManager(IThreadContext threadContext,
IDBInterface database)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
IAuthorityGroup |
create()
Create a new authority group object.
|
void |
deinstall()
Uninstall the manager.
|
void |
delete(java.lang.String name)
Delete an authority group.
|
void |
exportConfiguration(java.io.OutputStream os)
Export configuration
|
IAuthorityGroup[] |
getAllGroups()
Obtain a list of the authority grouops, ordered by name.
|
protected static java.lang.String |
getAuthorityGroupKey(java.lang.String groupName)
Construct a key which represents an individual authority group.
|
protected void |
getAuthorityGroupsChunk(AuthorityGroup[] rval,
java.util.Map returnIndex,
java.util.ArrayList params)
Read a chunk of authority groups.
|
protected static java.lang.String |
getAuthorityGroupsKey()
Construct a key which represents the general list of repository connectors.
|
protected AuthorityGroup[] |
getAuthorityGroupsMultiple(java.lang.String[] groupNames)
Fetch multiple authority groups at a single time.
|
java.lang.String |
getGroupDescriptionColumn()
Get the authority connection description column.
|
java.lang.String |
getGroupNameColumn()
Get the authority group name column.
|
void |
importConfiguration(java.io.InputStream is)
Import configuration
|
void |
install()
Install the manager.
|
IAuthorityGroup |
load(java.lang.String name)
Load an authority group by name.
|
IAuthorityGroup[] |
loadMultiple(java.lang.String[] names)
Load multiple authority groups by name.
|
protected int |
maxClauseGetAuthorityGroupsChunk()
Find the maximum number of clauses for getAuthorityConnectionsChunk.
|
boolean |
save(IAuthorityGroup object)
Save an authority group 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, sleepFor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTableName
public static final java.lang.String _rcsid
protected static final java.lang.String nameField
protected static final java.lang.String descriptionField
public AuthorityGroupManager(IThreadContext threadContext, IDBInterface database) throws ManifoldCFException
threadContext
- is the thread context.ManifoldCFException
public void install() throws ManifoldCFException
install
in interface IAuthorityGroupManager
ManifoldCFException
public void deinstall() throws ManifoldCFException
deinstall
in interface IAuthorityGroupManager
ManifoldCFException
public void exportConfiguration(java.io.OutputStream os) throws java.io.IOException, ManifoldCFException
exportConfiguration
in interface IAuthorityGroupManager
java.io.IOException
ManifoldCFException
public void importConfiguration(java.io.InputStream is) throws java.io.IOException, ManifoldCFException
importConfiguration
in interface IAuthorityGroupManager
java.io.IOException
ManifoldCFException
public IAuthorityGroup[] getAllGroups() throws ManifoldCFException
getAllGroups
in interface IAuthorityGroupManager
ManifoldCFException
public IAuthorityGroup load(java.lang.String name) throws ManifoldCFException
load
in interface IAuthorityGroupManager
name
- is the name of the authority group.ManifoldCFException
public IAuthorityGroup[] loadMultiple(java.lang.String[] names) throws ManifoldCFException
loadMultiple
in interface IAuthorityGroupManager
names
- are the names to load.ManifoldCFException
public IAuthorityGroup create() throws ManifoldCFException
create
in interface IAuthorityGroupManager
ManifoldCFException
public boolean save(IAuthorityGroup object) throws ManifoldCFException
save
in interface IAuthorityGroupManager
object
- is the object to save.ManifoldCFException
public void delete(java.lang.String name) throws ManifoldCFException
delete
in interface IAuthorityGroupManager
name
- is the name of the group to delete. If the
name does not exist, no error is returned.ManifoldCFException
public java.lang.String getGroupNameColumn()
getGroupNameColumn
in interface IAuthorityGroupManager
public java.lang.String getGroupDescriptionColumn()
getGroupDescriptionColumn
in interface IAuthorityGroupManager
protected static java.lang.String getAuthorityGroupsKey()
protected static java.lang.String getAuthorityGroupKey(java.lang.String groupName)
groupName
- is the name of the group.protected AuthorityGroup[] getAuthorityGroupsMultiple(java.lang.String[] groupNames) throws ManifoldCFException
groupNames
- are a list of group names.ManifoldCFException
protected int maxClauseGetAuthorityGroupsChunk()
protected void getAuthorityGroupsChunk(AuthorityGroup[] 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