|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.core.partition.AbstractPartition
com.ca.jcs.BaseConnector
com.ca.jcs.meta.MetaConnector
com.ca.jcs.sdk.SDKMetaConnector
public class SDKMetaConnector
This sample connector uses flat files as its target managed endpoint system.
All accounts and groups for the directory are stored as files under the
filesystem directory specified by ${eTSDKPath}\SDK\<SDK Directory Name>", where ${eTSDKPath}
is the value of this LDAP attribute and specifies a path local to the machine running the JCS. Account objects
are stored in files with the extension ".sdk", and group in files with the extension
".grp".
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.ca.jcs.meta.MetaConnector |
|---|
MetaConnector.FilterAware, MetaConnector.SearchFinishedException |
| Field Summary | |
|---|---|
static String |
BASE_OUT_DIRECTORY
|
static String |
CONN_FILE_PREFIX
|
| Fields inherited from interface com.ca.jcs.Connector |
|---|
STATE_DELETING |
| Fields inherited from interface org.apache.directory.server.core.partition.Partition |
|---|
ALIAS_ATTRIBUTE, ALIAS_OBJECT |
| Constructor Summary | |
|---|---|
SDKMetaConnector(ConnectorType type,
String name,
Logger log,
ConnectorConfig config)
have to implement this constructor signiture, otherwise JCS will fail to load. |
|
| Method Summary | |
|---|---|
void |
activate()
This sample creates the base output directory here. |
AttributeStyleOpProcessor |
createAttributeStyleOpProcessor()
Must implement this method to create a attribute style processor so JCS can delegate LDAP operations to it. |
ConnectionManager |
createConnectionManager()
Create a connection manager, which is a concept expected to be supported by the vast majority of connectors. |
void |
deactivate()
This sample does not need to do much here, noting that super.deactivate()
handles cleaning up the connection pool. |
Collection<? extends MetaConnector.FilterAware> |
getFilterAwareness()
Override in a connector to flag whether connector fully implements search filter support. |
boolean |
isBehaviourImperfectFilter()
|
boolean |
isBehaviourSearchObjAsLookup()
Behavioural method which should be overridden by derived classes if they want object-scope searches to be treated as lookup()s on the object referred to
by the baseName. |
boolean |
isBehaviourSearchSingleClass()
If a derived connector's implementational approach requires that it's OpProcessor.doSearch(com.ca.jcs.ObjectInfo, com.ca.jcs.filter.FilterInfo, java.util.Map
method is called is only called for a single objectclass at a time, then they should
override this method to return true. |
| Methods inherited from class org.apache.directory.server.core.partition.AbstractPartition |
|---|
destroy, doDestroy, getConfiguration, getFactoryConfiguration, getSuffix, hasEntry, init, isInitialized, lookup, modify, sync |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.ca.jcs.PartitionOps |
|---|
lookup, modify, sync |
| Methods inherited from interface org.apache.directory.server.core.partition.Partition |
|---|
destroy, getSuffix, hasEntry, init, isInitialized, lookup, modify, sync |
| Field Detail |
|---|
public static final String BASE_OUT_DIRECTORY
public static final String CONN_FILE_PREFIX
| Constructor Detail |
|---|
public SDKMetaConnector(ConnectorType type,
String name,
Logger log,
ConnectorConfig config)
| Method Detail |
|---|
public boolean isBehaviourSearchObjAsLookup()
BaseConnectorlookup()s on the object referred to
by the baseName.
isBehaviourSearchObjAsLookup in class BaseConnectorpublic boolean isBehaviourImperfectFilter()
public boolean isBehaviourSearchSingleClass()
BaseConnectorOpProcessor.doSearch(com.ca.jcs.ObjectInfo, com.ca.jcs.filter.FilterInfo, java.util.Map, javax.naming.directory.SearchControls)
method is called is only called for a single objectclass at a time, then they should
override this method to return true. This will cause the framework, for example, to decompose a
subtree search with a filter like (objectclass=*) into a separate
doSearch() call for each defined objectclass.
isBehaviourSearchSingleClass in class BaseConnector
public final void activate()
throws NamingException
BaseConnector.getAttributes() to get the directory
attributes. Note that there is no need to check that attributes marked as "isRequired" in the
metadata are defined here; they are guaranteed to be because the framework applies validation
and conversion before this method is called.
activate in interface Activatableactivate in interface Connectoractivate in class MetaConnectorNamingException
public final void deactivate()
throws NamingException
super.deactivate()
handles cleaning up the connection pool.
deactivate in interface Activatabledeactivate in interface Connectordeactivate in class MetaConnectorNamingExceptionpublic ConnectionManager createConnectionManager()
BaseConnectorLdapOperationNotSupportedException exception when called.Note that this method is defined to make the contract explicit for connector developers and for internal use with in the connector and its op processors, rather then to be called by components external to the connector. Default 'base' implementation below uses 'connectionManagerClass' spring property from connector.xml to locate the nominated connection manager (pooling) class and load/instantiate it for subsequent use. Specific connector implementations can override this and perform their own connection manager creation.
createConnectionManager in interface ConnectorcreateConnectionManager in class BaseConnectorpublic AttributeStyleOpProcessor createAttributeStyleOpProcessor()
public Collection<? extends MetaConnector.FilterAware> getFilterAwareness()
MetaConnector
getFilterAwareness in class MetaConnector
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||