org.jasig.portal.tools.chanpub
Interface IChannelPublisher

All Known Implementing Classes:
ChannelPublisher

public interface IChannelPublisher

Version:
$Revision: 19776 $
Author:
Eric Dalquist

Method Summary
 File[] parseCommandLine(String[] args)
           
 IChannelDefinition publishChannel(File filename)
          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)
          Publishes the channel represented by the XML accessed via the passed in InputStream object and returns the resultant ChannelDefinition object.
 void setOverride(boolean b)
           
 

Method Detail

publishChannel

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

Parameters:
filename - the name of a file containing the channel XML definition
Returns:
org.jasig.portal.ChannelDefinition the published channel definition
Throws:
Exception

publishChannel

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

Parameters:
is - and InputStream containing the channel XML definition
Returns:
org.jasig.portal.ChannelDefinition the published channel definition
Throws:
Exception

setOverride

void setOverride(boolean b)

parseCommandLine

File[] parseCommandLine(String[] args)
                        throws org.apache.commons.cli.ParseException
Throws:
org.apache.commons.cli.ParseException


Copyright © 2010 Jasig. All Rights Reserved.