|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ca.jcs.processor.AbstractBaseProcessor
com.ca.jcs.processor.AbstractAttributeStyleOpProcessor
public abstract class AbstractAttributeStyleOpProcessor
Base class for attribute-style processors, that mandates a standardized constructor for maximum consistency. Provides the service of automatically initializing its proxiedSelf member, which should be used when OpBindings are supported, and may need to be triggered for calls that the attribute style processor makes to it's own methods. This member is automatically assigned to "this" when no such OpBindings are active due to the current metadata.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.ca.jcs.processor.OpProcessor |
|---|
OpProcessor.MethodName |
| Field Summary | |
|---|---|
protected AttributeStyleOpProcessor |
proxiedSelf
Set to "this" unless OpBindings are active in which case assigned to an OpBindings-aware proxy. |
| Fields inherited from class com.ca.jcs.processor.AbstractBaseProcessor |
|---|
ldapExceptionPrefix, log |
| Constructor Summary | |
|---|---|
AbstractAttributeStyleOpProcessor(BaseConnector connector)
Hang on to some important contextual values. |
|
| Method Summary | |
|---|---|
void |
activate()
Sets proxiedSelf to OpBindings-aware proxy if any OpBindings are configured, otherwise left assigned to "this". |
void |
deactivate()
We also define this for symmetry as activate() is defined. |
Attribute |
doLookupExpensiveStub(ObjectInfo objInfo,
String attrId)
Default implementation is to simply do a lookup for attrId, but derived classes may be able to more efficiently find out if the attribute is set or not. |
boolean |
isPostQueryPocessingActive()
Defaults to true. |
void |
processPostQueryAttributes(ObjectInfo objInfo,
Attributes attrs)
Called after attributes have been collected after a doLookUp or for each result returned by a doSearch. |
void |
processPostQuerySearchResult(ObjectInfo objInfo,
Set<String> requestedConnAttrIds,
Attributes attrs,
SearchResult sr)
Called after LDAP search result returned by a doSearch is finalized (note that PostQueryAttributesProcessor.processPostQueryAttributes(ObjectInfo, Attributes) will
have already been called) to allow specialized processing. |
void |
setPostQueryPocessingActive(boolean postQueryPocessingActive)
|
| Methods inherited from class com.ca.jcs.processor.AbstractBaseProcessor |
|---|
getBaseConnector, makeNamingException |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.ca.jcs.processor.AttributeStyleOpProcessor |
|---|
getMetaData, setMetaData |
| Methods inherited from interface com.ca.jcs.processor.OpProcessor |
|---|
doAdd, doDelete, doLookUp, doModify, doModifyRn, doMove, doSearch |
| Field Detail |
|---|
@NotNull protected AttributeStyleOpProcessor proxiedSelf
| Constructor Detail |
|---|
public AbstractAttributeStyleOpProcessor(BaseConnector connector)
connector - Parent baseConnector.| Method Detail |
|---|
public void activate()
throws NamingException
activate in interface Activatableactivate in interface AttributeStyleOpProcessorNamingException
public void deactivate()
throws NamingException
deactivate in interface Activatabledeactivate in interface AttributeStyleOpProcessorNamingException
public Attribute doLookupExpensiveStub(ObjectInfo objInfo,
String attrId)
throws NamingException
doLookupExpensiveStub in interface AttributeStyleOpProcessorobjInfo - Object for which attribute should be looked up.attrId - Id for expensive attribute.
NamingExceptionValidationLazyAttributesProxypublic boolean isPostQueryPocessingActive()
isPostQueryPocessingActive in interface PostQueryAttributesProcessorpublic void setPostQueryPocessingActive(boolean postQueryPocessingActive)
setPostQueryPocessingActive in interface PostQueryAttributesProcessor
public void processPostQueryAttributes(ObjectInfo objInfo,
Attributes attrs)
throws NamingException
PostQueryAttributesProcessor
processPostQueryAttributes in interface PostQueryAttributesProcessorobjInfo - Information about object for which attrs were retrieved.attrs - Connector-speak attributes.
NamingException - If thrown then doLookUp will fail or search result
will be skipped.
public void processPostQuerySearchResult(ObjectInfo objInfo,
Set<String> requestedConnAttrIds,
Attributes attrs,
SearchResult sr)
throws NamingException
PostQueryAttributesProcessorPostQueryAttributesProcessor.processPostQueryAttributes(ObjectInfo, Attributes) will
have already been called) to allow specialized processing.
processPostQuerySearchResult in interface PostQueryAttributesProcessorobjInfo - Information about object for which attrs were retrieved.requestedConnAttrIds - Attributes requested by the top-level search
which generated this SearchResult.attrs - Connector-speak attributes.sr - Search result in LDAP-speak that will be returned to the client
after any manipulations done by this method.
NamingException - If thrown then doLookUp will fail or search result
will be skipped.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||