org.jasig.portal.car
Class DefaultChanPubInnerHandler

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

public class DefaultChanPubInnerHandler
extends DefaultHandler

Buffers a single channel definition located in a CAR channel-definition block and delegates to the chanpub ChannelPublisher to publish the channel. Also strips our groups and categories definitions since groups and categories can change from site to site. If not specified then ChannelPublisher will place in the "Auto-Published" category and grant access to admins. Then admins can determine in what category it should be placed and to whom it should be granted.

Version:
$Revision: 19776 $
Author:
Mark Boyd mark.boyd@engineer.com

Constructor Summary
DefaultChanPubInnerHandler(ParsingContext ctx)
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endElement(String namespaceURI, String localName, String qName)
           
 void startElement(String namespaceURI, String localName, String qName, Attributes atts)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
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

DefaultChanPubInnerHandler

public DefaultChanPubInnerHandler(ParsingContext ctx)
Method Detail

startElement

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

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws SAXException
Specified by:
characters in interface ContentHandler
Overrides:
characters in class DefaultHandler
Throws:
SAXException

endElement

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


Copyright © 2010 Jasig. All Rights Reserved.