Attribute processors

Attribute processors can be use to gather or update user attributes. The attribute processing is protocol specific, but its base functionality is part of the OpenASelect Server engine. This page describes how to create a new attribute processor.

Design

Attribute processing is implemented using a simplified Visitor design pattern. The user attributes are stored in an object which is dispatched to all configured attribute processors by the attribute gatherer. The attribute processors are the actual visitors and may add, update, or remove attributes.

Attribute processors comply to the following interface:

com.alfaariss.oa.engine.core.attribute.gather.processor.IProcessor

The main method specified by this interface is the process method. The attribute gatherer is implemented as a composite, which basically means that the attribute gatherer is an attribute processor itself. The following figure shows a basic attribute processor and the attribute gatherer:

Attribute processor class diagram

How to create an attribute processor

The best way to start developing an attribute processor is to take a look at the FileGatherer.

Attachments