OracleAS Syndication Services API Reference
10g (9.0.4)

Part No. B10399-01

oracle.syndicate.client.impl.state.xml
Class XMLSyndicateClientStateHandler

java.lang.Object
  |
  +--oracle.syndicate.client.impl.state.xml.XMLSyndicateClientStateHandler
All Implemented Interfaces:
oracle.syndicate.client.exmsgs.SyndicateClientExceptionConstants, SyndicateClientStateHandler

public class XMLSyndicateClientStateHandler
extends java.lang.Object
implements SyndicateClientStateHandler, oracle.syndicate.client.exmsgs.SyndicateClientExceptionConstants

Implements the SyndicateClientStateHandler storing the SyndicateClient into an local XML file.

Since:
release specific (what release of product did this appear in)

Fields inherited from interface oracle.syndicate.client.exmsgs.SyndicateClientExceptionConstants
DAV_PKG_HANDLER_BADROOT, DAV_PKG_HANDLER_CANNOT_CONNECT, DAV_PKG_HANDLER_UNABLE_CLOSE_ITEM, DAV_PKG_HANDLER_UNABLE_CREATE_ITEM, DAV_PKG_HANDLER_UNABLE_DELETE_ITEM, DAV_PKG_HANDLER_UNABLE_FLUSH_ITEM, DAV_SYND_CLIENT_INV_URL, FILE_PKG_HANDLER_BADROOT, FILE_PKG_HANDLER_UNABLE_CLOSE_ITEM, FILE_PKG_HANDLER_UNABLE_CREATE_ITEM, FILE_PKG_HANDLER_UNABLE_FLUSH_ITEM, PORTAL_CANNOT_READ_DAV, PORTAL_ERR_GETTING_CONN, PORTAL_SH_CANNOT_CREATE_SBT, PORTAL_SH_CANNOT_FIND_CHANNEL, PORTAL_SH_CANNOT_FIND_REPORT, PORTAL_SH_CANNOT_FIND_SBB, PORTAL_SH_CANNOT_FIND_SBT, PORTAL_SH_DUPLICATE_SUBSCRIBER, PORTAL_SH_DUPLICATE_SUBSCRIPTION, PORTAL_SH_ERR_GETTING_REPORT, PORTAL_SH_ERR_JNDI_LOOKUP, PORTAL_SH_ERR_REP_BUSY, PORTAL_SH_ERR_SBT_BAD_SBBID, PORTAL_SH_ERR_SBT_BUSY, PORTAL_SH_INVALID_ID_FORMAT, PORTAL_SRH_CANNOT_FIND_CHID, PORTAL_SRH_CANNOT_FIND_CONN, PORTAL_SRH_CANNOT_FIND_DAVURL, STATE_HANDLER_CANNOT_REMOVE_SBB, STATE_HANDLER_UNAVAILABLE, SYND_CLIENT_CANNOT_LOAD, SYND_CLIENT_NO_PROPERTY, UDDI_ADMIN_ONLY_ACTION, UNEXPECTED_INTERNAL_EXCEPTION, XML_ICE_SH_DUPLICATE_SUBSCRIBER, XML_ICE_SH_DUPLICATE_SUBSCRIPTION, XML_ICE_SH_FILE_CANNOTCREATE, XML_ICE_SH_FILE_CANNOTPARSE, XML_ICE_SH_FILE_CANNOTREAD, XML_ICE_SH_FILE_ERRORWRITE, XML_ICE_SH_FILE_ISDIRECTORY, XML_PARSER_CONFIGURATION

 

Method Summary
 SyndicateSubscriber addSubscriber(java.lang.String id, java.lang.String name)
          Create a new SyndicateSubscriber given the ID and Name.
 SyndicateSubscription addSubscription(java.lang.String subscriberID, java.lang.String subscriptionID)
          Adds a new SyndicateSubscription to the state storage
 SyndicateSubscriber getSubscriber(java.lang.String subscriberID)
          Returns a SyndicateSubscriber instance given its ID
 java.util.List getSubscribers()
          Returns the list of SyndicateSubscriber IDs.
 SyndicateSubscription getSubscription(java.lang.String subscriberID, java.lang.String subscriptionID)
          Returns a SyndicateSubscription give its ID
 java.util.List getSubscriptions(java.lang.String subscriberID)
          Returns List of all SyndicateSubscription IDs of a given subscriber
static XMLSyndicateClientStateHandler newInstance(java.lang.String fileLoc)
          Creates a new XMLSyndicateClientStateHandler which will use the supplied file to persit its state on.
 void removeSubscriber(java.lang.String subscriberID)
          Removes a SyndicateSubscriber from the state storage given its ID
 void removeSubscription(java.lang.String subscriberID, java.lang.String subscriptionID)
          Removes a SyndicateSubscription from te state storage given its ID

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

newInstance

public static XMLSyndicateClientStateHandler newInstance(java.lang.String fileLoc)
                                                  throws SyndicateClientException
Creates a new XMLSyndicateClientStateHandler which will use the supplied file to persit its state on. The File has to be readable and writable.

addSubscriber

public SyndicateSubscriber addSubscriber(java.lang.String id,
                                         java.lang.String name)
                                  throws SyndicateClientException
Create a new SyndicateSubscriber given the ID and Name. It will be added to the state storage
Specified by:
addSubscriber in interface SyndicateClientStateHandler

removeSubscriber

public void removeSubscriber(java.lang.String subscriberID)
                      throws SyndicateClientException
Removes a SyndicateSubscriber from the state storage given its ID
Specified by:
removeSubscriber in interface SyndicateClientStateHandler

getSubscriber

public SyndicateSubscriber getSubscriber(java.lang.String subscriberID)
Returns a SyndicateSubscriber instance given its ID
Specified by:
getSubscriber in interface SyndicateClientStateHandler

getSubscribers

public java.util.List getSubscribers()
Returns the list of SyndicateSubscriber IDs.
Specified by:
getSubscribers in interface SyndicateClientStateHandler

addSubscription

public SyndicateSubscription addSubscription(java.lang.String subscriberID,
                                             java.lang.String subscriptionID)
                                      throws SyndicateClientException
Adds a new SyndicateSubscription to the state storage
Specified by:
addSubscription in interface SyndicateClientStateHandler

removeSubscription

public void removeSubscription(java.lang.String subscriberID,
                               java.lang.String subscriptionID)
                        throws SyndicateClientException
Removes a SyndicateSubscription from te state storage given its ID
Specified by:
removeSubscription in interface SyndicateClientStateHandler

getSubscription

public SyndicateSubscription getSubscription(java.lang.String subscriberID,
                                             java.lang.String subscriptionID)
Returns a SyndicateSubscription give its ID
Specified by:
getSubscription in interface SyndicateClientStateHandler

getSubscriptions

public java.util.List getSubscriptions(java.lang.String subscriberID)
Returns List of all SyndicateSubscription IDs of a given subscriber
Specified by:
getSubscriptions in interface SyndicateClientStateHandler

Copyright © 2001, 2003, Oracle. All rights reserved.

Copyright © 2001, 2003, Oracle. All rights reserved.