org.jasig.portal.tools.chanpub
Class ChannelPublisher

java.lang.Object
  extended by org.jasig.portal.tools.chanpub.ChannelPublisher
All Implemented Interfaces:
IChannelPublisher, ErrorHandler

Deprecated. The Cernunnos import scripts should be used instead of this class

@Deprecated
public class ChannelPublisher
extends Object
implements ErrorHandler, IChannelPublisher

This is a Channel Publisher tool to install uPortal channels from outside of the portal or from within a channel archive. Currently configured to be executed via Jakarta Ant or via a channel-definition block within a CAR deployment descriptor. Sample of command line arguments: ant publish -Dchannel=all (this will publish all channels that have a corresponding xml file) ant publish -Dchannel=webmail.xml (this will publish the specified channels)

Version:
$Revision: 21632 $
Author:
Freddy Lopez, flopez@unicon.net, Ken Weiner, kweiner@unicon.net, Mark Boyd, mboyd@sct.com

Method Summary
 void error(SAXParseException arg0)
          Deprecated.  
 void fatalError(SAXParseException arg0)
          Deprecated.  
static IChannelPublisher getChannelArchiveInstance()
          Deprecated.  
static IChannelPublisher getCommandLineInstance()
          Deprecated.  
static void main(String[] args)
          Deprecated.  
 File[] parseCommandLine(String[] args)
          Deprecated.  
 IChannelDefinition publishChannel(File filename)
          Deprecated. Publishes the channel represented by the XML located in the file represented by the passed in filename and returns the resultant ChannelDefinition object.
 IChannelDefinition publishChannel(InputStream is)
          Deprecated. Publishes the channel represented by the XML accessed via the passed in InputStream object and returns the resultant ChannelDefinition object.
 void setOverride(boolean b)
          Deprecated.  
 void warning(SAXParseException arg0)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(String[] args)
                 throws Exception
Deprecated. 
Parameters:
args -
Throws:
Exception - We let Exceptions bubble up so that ant will know that the publishing failed and can report the error message and stack trace to the user.

parseCommandLine

public File[] parseCommandLine(String[] args)
                        throws org.apache.commons.cli.ParseException
Deprecated. 
Specified by:
parseCommandLine in interface IChannelPublisher
Throws:
org.apache.commons.cli.ParseException

publishChannel

public IChannelDefinition publishChannel(File filename)
                                  throws Exception
Deprecated. 
Publishes the channel represented by the XML located in the file represented by the passed in filename and returns the resultant ChannelDefinition object.

Specified by:
publishChannel in interface IChannelPublisher
Parameters:
filename - the name of a file containing the channel XML definition
Returns:
org.jasig.portal.ChannelDefinition the published channel definition
Throws:
Exception

publishChannel

public IChannelDefinition publishChannel(InputStream is)
                                  throws Exception
Deprecated. 
Publishes the channel represented by the XML accessed via the passed in InputStream object and returns the resultant ChannelDefinition object.

Specified by:
publishChannel in interface IChannelPublisher
Parameters:
is - and InputStream containing the channel XML definition
Returns:
org.jasig.portal.ChannelDefinition the published channel definition
Throws:
Exception

setOverride

public void setOverride(boolean b)
Deprecated. 
Specified by:
setOverride in interface IChannelPublisher

getCommandLineInstance

public static IChannelPublisher getCommandLineInstance()
                                                throws Exception
Deprecated. 
Throws:
Exception

getChannelArchiveInstance

public static IChannelPublisher getChannelArchiveInstance()
                                                   throws Exception
Deprecated. 
Throws:
Exception

warning

public void warning(SAXParseException arg0)
             throws SAXException
Deprecated. 
Specified by:
warning in interface ErrorHandler
Throws:
SAXException

error

public void error(SAXParseException arg0)
           throws SAXException
Deprecated. 
Specified by:
error in interface ErrorHandler
Throws:
SAXException

fatalError

public void fatalError(SAXParseException arg0)
                throws SAXException
Deprecated. 
Specified by:
fatalError in interface ErrorHandler
Throws:
SAXException


Copyright © 2010 Jasig. All Rights Reserved.