org.jasig.portal.channels.adminnav
Class XMLLinksHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.jasig.portal.channels.adminnav.XMLLinksHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

Deprecated. All IChannel implementations should be migrated to portlets

@Deprecated
public class XMLLinksHandler
extends DefaultHandler

Handler for receiving SAX events from parsing a set of links having the following structure.

  <links [bundleResolver="bundleBase"]>
   <link labelId="id-unique-within-resolver"
            channelFunctionalName="functional-name-of-channel">
    [<parameter name="some-Name" value="some-value" />
     <parameter ..../>
    ]
   <link...>...</link>
  </links>
 
If an instance of ILabelResolver is not passed into this class and there is no bundleResolver declared by the links element then an IllegalStateException will be thrown. Similarly, if a null ILinkRegistrar instance is passed in an IllegalStateException will be thrown.

Since:
2.6
Author:
mboyd@sungardsct.com

Constructor Summary
XMLLinksHandler()
          Deprecated. Default constructor which obtains an instance of ILinkRegistrar from AdminNavChannel's static getLinkRegistrar() method.
XMLLinksHandler(ILinkRegistrar registrar)
          Deprecated. Constructor accepting an instance of ILinkRegistrar into which all link definitions will be added.
XMLLinksHandler(ILinkRegistrar registrar, ILabelResolver resolver)
          Deprecated. Constructor accepting an instance of ILinkRegistrar into which all link definitions will be added.
 
Method Summary
 void endElement(String uri, String localName, String qName)
          Deprecated.  
 void startElement(String nsURI, String localName, String qName, Attributes atts)
          Deprecated.  
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLLinksHandler

public XMLLinksHandler()
Deprecated. 
Default constructor which obtains an instance of ILinkRegistrar from AdminNavChannel's static getLinkRegistrar() method.


XMLLinksHandler

public XMLLinksHandler(ILinkRegistrar registrar)
Deprecated. 
Constructor accepting an instance of ILinkRegistrar into which all link definitions will be added.


XMLLinksHandler

public XMLLinksHandler(ILinkRegistrar registrar,
                       ILabelResolver resolver)
Deprecated. 
Constructor accepting an instance of ILinkRegistrar into which all link definitions will be added. Also accepts an ILabelResolver instance which will be used to resolve labels for all links unless a bundleResolver is specified on the outermost links element.

Method Detail

startElement

public void startElement(String nsURI,
                         String localName,
                         String qName,
                         Attributes atts)
                  throws SAXException
Deprecated. 
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class DefaultHandler
Throws:
SAXException

endElement

public void endElement(String uri,
                       String localName,
                       String qName)
                throws SAXException
Deprecated. 
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class DefaultHandler
Throws:
SAXException


Copyright © 2010 Jasig. All Rights Reserved.