|
||||||||||
| 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.stub.StubMetaConnector
public class StubMetaConnector
Stub metaconnector useful in method-style and scripting-style opbindings demonstrations. For
production will most probably need to be extended so a ConnectionManager implementation
can be coded. This connector is usually configured
using a StubMetaConnectorConfig instance so that any values configured will override the default behaviours
in BaseConnector (normally connectors statically define these behavioural parameters as
part of their implementation, but this class is used more flexibly).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.ca.jcs.meta.MetaConnector |
|---|
MetaConnector.FilterAware, MetaConnector.SearchFinishedException |
| Field Summary |
|---|
| 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 | |
|---|---|
StubMetaConnector(ConnectorType type,
String name,
Logger log,
ConnectorConfig config)
have to implement this constructor signiture, otherwise JCS will fail to load. |
|
| Method Summary | |
|---|---|
AttributeStyleOpProcessor |
createAttributeStyleOpProcessor()
Returns a StubAttributeStyleOpProcessor instance. |
ConnectionManager |
createConnectionManager()
Creates connector's custom connection pooling class. |
HashSet<OpProcessor.MethodName> |
getAutoDirectAssocExlusions()
Used by connectors for which BaseConnector.isAutoDirectAssocRequired()
returns true, where updates of associations after Delete / Rename or other
operations are not required due to clean-up performed by the native system
or because of special processing needs. |
StubMetaConnectorConfig |
getStubMetaConnectorConfig()
|
boolean |
isAutoDirectAssocRequired()
Defaults to BaseConnector.isIndirectAssociations()==Boolean.FALSE. |
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. |
boolean |
isHiddenLdapBaseDn()
|
Boolean |
isIndirectAssociations()
Never returns null, defaults to false unless overridden by stubMetaConnectorConfig. |
boolean |
isObjectClassRequired()
True if connector need the "objectClass" attribute passed through to them when a) updating a child object or b) in search filters, otherwise false if this information is known contextually and this attribute should not be passed through. |
| 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 |
| Constructor Detail |
|---|
public StubMetaConnector(ConnectorType type,
String name,
Logger log,
ConnectorConfig config)
| Method Detail |
|---|
public StubMetaConnectorConfig getStubMetaConnectorConfig()
public ConnectionManager createConnectionManager()
throws NamingException
createConnectionManager in interface ConnectorcreateConnectionManager in class BaseConnectorNamingExceptioncom.ca.jcs.StubMetaConnectionPoolpublic AttributeStyleOpProcessor createAttributeStyleOpProcessor()
StubAttributeStyleOpProcessor instance.
public boolean isBehaviourSearchObjAsLookup()
BaseConnectorlookup()s on the object referred to
by the baseName.
isBehaviourSearchObjAsLookup in class BaseConnectorpublic 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 BaseConnectorpublic boolean isObjectClassRequired()
!isBehaviourSearchSingleClass().
isObjectClassRequired in class BaseConnectorpublic boolean isHiddenLdapBaseDn()
isHiddenLdapBaseDn in class BaseConnectorMetaConnector.CONN_BASE_DN_ATTR should be hidden in DNs (distinguished
names) returned by the managed system, and not expected to be present in LDAP
DNs passed in. By default it is false so that LDAP DNs can be persistently stored
and then later used against the same managed system, even if a different connector
base DN is used to access it.public Boolean isIndirectAssociations()
isIndirectAssociations in class BaseConnectorAssociationpublic boolean isAutoDirectAssocRequired()
BaseConnectorBaseConnector.isIndirectAssociations()==Boolean.FALSE.
Derived connectors for which this condition is true, but which
want to handle reverse virtual associations
directly rather then relying on generic logic in
AssocAttributeOpProcessorProxy
should override to return false.
isAutoDirectAssocRequired in class BaseConnectorAssocAttributeOpProcessorProxy.BaseConnector.getAutoDirectAssocExlusions()public HashSet<OpProcessor.MethodName> getAutoDirectAssocExlusions()
BaseConnectorBaseConnector.isAutoDirectAssocRequired()
returns true, where updates of associations after Delete / Rename or other
operations are not required due to clean-up performed by the native system
or because of special processing needs. When exclusions are put into effect due
to this method's return value, the concrete connector itself needs to take over responsibility
for any splitting and processing of association values required.
Some example exclusions are the AS4 endpoint which looks after the membership association
itself when accounts or groups are deleted, as does the LND endpoint which cleans up
natively after deletes and renames (the latter of which take an unknowable
amount of time to be approved).
getAutoDirectAssocExlusions in class BaseConnectorBaseConnector.isAutoDirectAssocRequired()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||