Class MappingConnection
- java.lang.Object
-
- org.apache.manifoldcf.authorities.mapping.MappingConnection
-
- All Implemented Interfaces:
IMappingConnection
public class MappingConnection extends java.lang.Object implements IMappingConnection
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
_rcsid
protected java.lang.String
className
protected ConfigParams
configParams
protected java.lang.String
description
protected boolean
isNew
protected int
maxCount
protected java.lang.String
name
protected java.lang.String
prerequisiteMapping
-
Constructor Summary
Constructors Constructor Description MappingConnection()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MappingConnection
duplicate()
Clone this object.java.lang.String
getClassName()
Get the class name.ConfigParams
getConfigParams()
Get the configuration parameters.java.lang.String
getDescription()
Get description.boolean
getIsNew()
Get 'isnew' condition.int
getMaxConnections()
Get the maximum size of the connection pool.java.lang.String
getName()
Get name.java.lang.String
getPrerequisiteMapping()
Get the prerequisite mapper, if any.void
setClassName(java.lang.String className)
Set the class name.void
setDescription(java.lang.String description)
Set description.void
setIsNew(boolean isnew)
Set 'isnew' condition.void
setMaxConnections(int maxCount)
Set the maximum size of the connection pool.void
setName(java.lang.String name)
Set name.void
setPrerequisiteMapping(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
-
-
Method Detail
-
duplicate
public MappingConnection duplicate()
Clone this object.- Returns:
- the cloned object.
-
setIsNew
public void setIsNew(boolean isnew)
Set 'isnew' condition.- Specified by:
setIsNew
in interfaceIMappingConnection
- Parameters:
isnew
- true if this is a new instance.
-
getIsNew
public boolean getIsNew()
Get 'isnew' condition.- Specified by:
getIsNew
in interfaceIMappingConnection
- Returns:
- true if this is a new connection, false otherwise.
-
setName
public void setName(java.lang.String name)
Set name.- Specified by:
setName
in interfaceIMappingConnection
- Parameters:
name
- is the name.
-
getName
public java.lang.String getName()
Get name.- Specified by:
getName
in interfaceIMappingConnection
- Returns:
- the name
-
setDescription
public void setDescription(java.lang.String description)
Set description.- Specified by:
setDescription
in interfaceIMappingConnection
- Parameters:
description
- is the description.
-
getDescription
public java.lang.String getDescription()
Get description.- Specified by:
getDescription
in interfaceIMappingConnection
- Returns:
- the description
-
setClassName
public void setClassName(java.lang.String className)
Set the class name.- Specified by:
setClassName
in interfaceIMappingConnection
- Parameters:
className
- is the class name.
-
getClassName
public java.lang.String getClassName()
Get the class name.- Specified by:
getClassName
in interfaceIMappingConnection
- Returns:
- the class name
-
getConfigParams
public ConfigParams getConfigParams()
Get the configuration parameters.- Specified by:
getConfigParams
in interfaceIMappingConnection
- Returns:
- the map. Can be modified.
-
setMaxConnections
public void setMaxConnections(int maxCount)
Set the maximum size of the connection pool.- Specified by:
setMaxConnections
in interfaceIMappingConnection
- Parameters:
maxCount
- is the maximum connection count per JVM.
-
getMaxConnections
public int getMaxConnections()
Get the maximum size of the connection pool.- Specified by:
getMaxConnections
in interfaceIMappingConnection
- Returns:
- the maximum size.
-
setPrerequisiteMapping
public void setPrerequisiteMapping(java.lang.String mapping)
Set the prerequisite mapper, if any.- Specified by:
setPrerequisiteMapping
in interfaceIMappingConnection
- 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:
getPrerequisiteMapping
in interfaceIMappingConnection
- Returns:
- the mapping connection name whose output should be used as the input user name.
-
-