Class AuthorityConnection
- java.lang.Object
-
- org.apache.manifoldcf.authorities.authority.AuthorityConnection
-
- All Implemented Interfaces:
IAuthorityConnection
public class AuthorityConnection extends java.lang.Object implements IAuthorityConnection
This is the implementation of the authority connection interface, which describes a paper object to be manipulated in order to create, edit, or save an authority definition.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_rcsidprotected java.lang.StringauthDomainprotected java.lang.StringauthGroupprotected java.lang.StringclassNameprotected ConfigParamsconfigParamsprotected java.lang.Stringdescriptionprotected booleanisNewprotected intmaxCountprotected java.lang.Stringnameprotected java.lang.StringprerequisiteMapping
-
Constructor Summary
Constructors Constructor Description AuthorityConnection()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthorityConnectionduplicate()Clone this object.java.lang.StringgetAuthDomain()Get the authorization domain.java.lang.StringgetAuthGroup()Get the authorization group.java.lang.StringgetClassName()Get the class name.ConfigParamsgetConfigParams()Get the configuration parameters.java.lang.StringgetDescription()Get description.booleangetIsNew()Get 'isnew' condition.intgetMaxConnections()Get the maximum size of the connection pool.java.lang.StringgetName()Get name.java.lang.StringgetPrerequisiteMapping()Get the prerequisite mapper, if any.voidsetAuthDomain(java.lang.String domain)Set the authorization domain.voidsetAuthGroup(java.lang.String groupName)Set authorization group.voidsetClassName(java.lang.String className)Set the class name.voidsetDescription(java.lang.String description)Set description.voidsetIsNew(boolean isnew)Set 'isnew' condition.voidsetMaxConnections(int maxCount)Set the maximum size of the connection pool.voidsetName(java.lang.String name)Set name.voidsetPrerequisiteMapping(java.lang.String mapping)Set the prerequisite mapper, if any.
-
-
-
Field Detail
-
_rcsid
public static final java.lang.String _rcsid
- See Also:
- Constant Field Values
-
isNew
protected boolean isNew
-
name
protected java.lang.String name
-
description
protected java.lang.String description
-
className
protected java.lang.String className
-
configParams
protected ConfigParams configParams
-
maxCount
protected int maxCount
-
prerequisiteMapping
protected java.lang.String prerequisiteMapping
-
authDomain
protected java.lang.String authDomain
-
authGroup
protected java.lang.String authGroup
-
-
Method Detail
-
duplicate
public AuthorityConnection duplicate()
Clone this object.- Returns:
- the cloned object.
-
setIsNew
public void setIsNew(boolean isnew)
Set 'isnew' condition.- Specified by:
setIsNewin interfaceIAuthorityConnection- Parameters:
isnew- true if this is a new instance.
-
getIsNew
public boolean getIsNew()
Get 'isnew' condition.- Specified by:
getIsNewin interfaceIAuthorityConnection- Returns:
- true if this is a new connection, false otherwise.
-
setName
public void setName(java.lang.String name)
Set name.- Specified by:
setNamein interfaceIAuthorityConnection- Parameters:
name- is the name.
-
getName
public java.lang.String getName()
Get name.- Specified by:
getNamein interfaceIAuthorityConnection- Returns:
- the name
-
setDescription
public void setDescription(java.lang.String description)
Set description.- Specified by:
setDescriptionin interfaceIAuthorityConnection- Parameters:
description- is the description.
-
getDescription
public java.lang.String getDescription()
Get description.- Specified by:
getDescriptionin interfaceIAuthorityConnection- Returns:
- the description
-
setClassName
public void setClassName(java.lang.String className)
Set the class name.- Specified by:
setClassNamein interfaceIAuthorityConnection- Parameters:
className- is the class name.
-
getClassName
public java.lang.String getClassName()
Get the class name.- Specified by:
getClassNamein interfaceIAuthorityConnection- Returns:
- the class name
-
getConfigParams
public ConfigParams getConfigParams()
Get the configuration parameters.- Specified by:
getConfigParamsin interfaceIAuthorityConnection- Returns:
- the map. Can be modified.
-
setMaxConnections
public void setMaxConnections(int maxCount)
Set the maximum size of the connection pool.- Specified by:
setMaxConnectionsin interfaceIAuthorityConnection- Parameters:
maxCount- is the maximum connection count per JVM.
-
getMaxConnections
public int getMaxConnections()
Get the maximum size of the connection pool.- Specified by:
getMaxConnectionsin interfaceIAuthorityConnection- Returns:
- the maximum size.
-
setPrerequisiteMapping
public void setPrerequisiteMapping(java.lang.String mapping)
Set the prerequisite mapper, if any.- Specified by:
setPrerequisiteMappingin interfaceIAuthorityConnection- Parameters:
mapping- is the name of the mapping connection to use to get the input user name, or null.
-
getPrerequisiteMapping
public java.lang.String getPrerequisiteMapping()
Get the prerequisite mapper, if any.- Specified by:
getPrerequisiteMappingin interfaceIAuthorityConnection- Returns:
- the mapping connection name whose output should be used as the input user name.
-
setAuthDomain
public void setAuthDomain(java.lang.String domain)
Set the authorization domain.- Specified by:
setAuthDomainin interfaceIAuthorityConnection- Parameters:
domain- is the authorization domain.
-
getAuthDomain
public java.lang.String getAuthDomain()
Get the authorization domain.- Specified by:
getAuthDomainin interfaceIAuthorityConnection- Returns:
- the authorization domain.
-
setAuthGroup
public void setAuthGroup(java.lang.String groupName)
Set authorization group.- Specified by:
setAuthGroupin interfaceIAuthorityConnection- Parameters:
groupName- is the name of the group.
-
getAuthGroup
public java.lang.String getAuthGroup()
Get the authorization group.- Specified by:
getAuthGroupin interfaceIAuthorityConnection- Returns:
- the group.
-
-