com.edustructures.sifworks
Interface Provisioner

All Known Subinterfaces:
Zone

public interface Provisioner

Provisioner is a common interface implemented by the Agent, Zone, and Topic classes. It provides common APIs for setting Subscribers, Publisher, and QueryResults handlers


Method Summary
 void setPublisher(Publisher publisher)
          Register a Publisher message handler to process SIF_Request messages for all object types.
 void setPublisher(Publisher publisher, ElementDef objectType, PublishingOptions options)
          Register a Publisher message handler with this zone to process SIF_Requests for the specified object type.
 void setQueryResults(QueryResults queryResults)
          Register a QueryResults message handler with this zone to process SIF_Response messages for all object types.
 void setQueryResults(QueryResults queryResults, ElementDef objectType, QueryResultsOptions options)
          Register a QueryResults object with this zone for the specified SIF object type.
 void setReportPublisher(ReportPublisher publisher, ReportPublishingOptions options)
          Register a ReportPublisher message handler to respond to SIF_Requests for SIF_ReportObject objects.
 void setSubscriber(Subscriber subscriber, ElementDef objectType, SubscriptionOptions options)
          Register a Subscriber message handler with this zone to process SIF_Event messages for the specified object type.
 

Method Detail

setPublisher

void setPublisher(Publisher publisher)
                  throws ADKException
Register a Publisher message handler to process SIF_Request messages for all object types.

Parameters:
publisher - An object that implements the Publisher interface to respond to SIF_Request queries received by the agent. This object will be called whenever a SIF_Request is received and no other object in the message dispatching chain has processed the message.
Throws:
ADKException

setPublisher

void setPublisher(Publisher publisher,
                  ElementDef objectType,
                  PublishingOptions options)
                  throws ADKException
Register a Publisher message handler with this zone to process SIF_Requests for the specified object type. This method may be called repeatedly for each SIF Data Object type the agent will publish on this zone.

Parameters:
publisher - An object that implements the Publisher interface to respond to SIF_Request queries received by the agent, where the SIF object type referenced by the request matches the specified objectType. This Publisher will be called whenever a SIF_Request is received on this zone and no other object in the message dispatching chain has processed the message.
objectType - An ElementDef constant from the SIFDTD class that identifies a SIF Data Object type. E.g. SIFDTD.STUDENTPERSONAL
options - Specify options about which SIF Contexts to join and whether SIF_Provide messagees will be sent when the agent is running in SIF 1.5r1 or lower
Throws:
ADKException

setReportPublisher

void setReportPublisher(ReportPublisher publisher,
                        ReportPublishingOptions options)
                        throws ADKException
Register a ReportPublisher message handler to respond to SIF_Requests for SIF_ReportObject objects. ReportPublisher is implemented by Vertical Reporting applications that publish report data via the SIF_ReportObject object introduced in SIF 1.5.

Parameters:
publisher - An object that implements the Publisher interface to respond to SIF_Request queries received by the agent. This object will be called whenever a SIF_Request is received and no other object in the message dispatching chain has processed the message.
options - Specify which contexts to join as a provider and whether to send a SIF_Provide message when the agent is running in SIF 1.5r1 or lower
Throws:
ADKException

setSubscriber

void setSubscriber(Subscriber subscriber,
                   ElementDef objectType,
                   SubscriptionOptions options)
                   throws ADKException
Register a Subscriber message handler with this zone to process SIF_Event messages for the specified object type. This method may be called repeatedly for each SIF Data Object type the agent subscribes to on this zone.

Parameters:
subscriber - An object that implements the Subscriber interface to respond to SIF_Event notifications received by the agent, where the SIF object type referenced by the request matches the specified objectType. This Subscriber will be called whenever a SIF_Event is received on this zone and no other object in the message dispatching chain has processed the message.
objectType - A constant from the SIFDTD class that identifies a SIF Data Object type.
options - Specify which contexts to join and whether SIF_Subscribe messages will be sent when the agent is running in SIF 1.5r1 or lower
Throws:
ADKException

setQueryResults

void setQueryResults(QueryResults queryResults)
                     throws ADKException
Register a QueryResults message handler with this zone to process SIF_Response messages for all object types.

Parameters:
queryResults - An object that implements the QueryResults interface to respond to SIF_Response query results received by the agent. This object will be called whenever a SIF_Response is received and no other object in the message dispatching chain has processed the message.
Throws:
ADKException

setQueryResults

void setQueryResults(QueryResults queryResults,
                     ElementDef objectType,
                     QueryResultsOptions options)
                     throws ADKException
Register a QueryResults object with this zone for the specified SIF object type.

Parameters:
queryResults - An object that implements the QueryResults interface to respond to SIF_Response query results received by the agent, where the SIF object type referenced by the request matches the specified objectType. This QueryResults object will be called whenever a SIF_Response is received on this zone and no other object in the message dispatching chain has processed the message.
objectType - A constant from the SIFDTD class that identifies a SIF Data Object type.
options - Specify which contexts to join
Throws:
ADKException


Copyright © 2001-2007 Edustructures LLC. All Rights Reserved. SIFWorks® and ADK® are registered trademarks of Edustructures LLC. SIF™ and Schools Interoperability Framework are trademarks of the Schools Interoperability Framework Association.