28.5. CRSS Broker Component Construction

The CRSSBroker is responsible for all the business logic. It receives requests from a SecurityBroker object. The CRSSBroker assumes that if it receives a request, the user has been authenticated and has permissions. Following receipt of the request, the CRSSBroker performs the following actions:

  1. Validates the XML incoming document, using its associated schema.

  2. Extracts the action requested from the incoming message.

  3. Applies whatever business rules are required, using the CRSSCalendar component if necessary.

  4. Retrieves data using XML template-based queries.

  5. Returns the completed XML document to the UIBroker.

The code for each action is quite similar. The differences are at the database tier. Let’s look at retrieving ...

Get XML Schema Complete Reference, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.