|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.tools.chanpub.ChannelPublisher
@Deprecated public class ChannelPublisher
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)
| 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 |
|---|
public static void main(String[] args)
throws Exception
args -
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.
public File[] parseCommandLine(String[] args)
throws org.apache.commons.cli.ParseException
parseCommandLine in interface IChannelPublisherorg.apache.commons.cli.ParseException
public IChannelDefinition publishChannel(File filename)
throws Exception
publishChannel in interface IChannelPublisherfilename - the name of a file containing the channel XML definition
Exception
public IChannelDefinition publishChannel(InputStream is)
throws Exception
publishChannel in interface IChannelPublisheris - and InputStream containing the channel XML definition
Exceptionpublic void setOverride(boolean b)
setOverride in interface IChannelPublisher
public static IChannelPublisher getCommandLineInstance()
throws Exception
Exception
public static IChannelPublisher getChannelArchiveInstance()
throws Exception
Exception
public void warning(SAXParseException arg0)
throws SAXException
warning in interface ErrorHandlerSAXException
public void error(SAXParseException arg0)
throws SAXException
error in interface ErrorHandlerSAXException
public void fatalError(SAXParseException arg0)
throws SAXException
fatalError in interface ErrorHandlerSAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||