Class PublishManager

All Implemented Interfaces:
ActionListener, EventListener, IdvConstants

public class PublishManager extends IdvManager
This manages the nascent publishing facility within the IDV. This whole framework needs to be thought out a bit more but for now we have on instance of a publisher: InfoceteraBlogger that knows how to post articles and files to an infocetera web log server.
Author:
IDV development team
  • Field Details

  • Constructor Details

    • PublishManager

      public PublishManager(IntegratedDataViewer idv)
      Create me with the IDV
      Parameters:
      idv - The IDV
  • Method Details

    • initMenu

      public void initMenu(JMenu menu)
      _more_
      Parameters:
      menu - _more_
    • getSelector

      public JComboBox getSelector(String fixedId)
      _more_
      Parameters:
      fixedId - _more_
      Returns:
      _more_
    • makeSelector

      public JComboBox makeSelector()
      _more_
      Returns:
      _more_
    • publishContent

      public void publishContent(String file, ViewManager fromViewmanager, JComboBox box)
      _more_
      Parameters:
      file - _more_
      fromViewmanager - _more_
      box - _more_
    • publishFile

      public String publishFile(String file)
      Publish a file directly. This is used by the ISL publish routines"
      Parameters:
      file - THe file to publish
      Returns:
      The URL to the published file
    • publishIslImage

      public void publishIslImage(ImageGenerator imageGenerator, Element tag, Image image)
      _more_
      Parameters:
      imageGenerator - _more_
      tag - _more_
      image - _more_
    • makeMenu

      public void makeMenu(JMenu menu)
      _more_
      Parameters:
      menu - _more_
    • configurePublisher

      public void configurePublisher(IdvPublisher publisher)
      _more_
      Parameters:
      publisher - _more_
    • deletePublisher

      public void deletePublisher(IdvPublisher publisher)
      _more_
      Parameters:
      publisher - _more_
    • newPublisher

      public void newPublisher()
      _more_
    • isPublishingEnabled

      public boolean isPublishingEnabled()
      Do we have any publishers
      Returns:
      Can we publish any content
    • publishCheck

      public boolean publishCheck()
      If publishing is not enabled then show a user message and return false
      Returns:
      Is publishing enabled
    • getPublisher

      public IdvPublisher getPublisher()
      Gets a publisher.
      Returns:
      The first publisher in the list of publishers (for now)
    • publishObject

      public void publishObject(String desc, Object object)
      This xml encoders the given object as a xidv bundle file and publishes it with the given description
      Parameters:
      desc - The description
      object - The object to encode and publish
    • publishXml

      public void publishXml(String desc, Element root)
      Publish the xml
      Parameters:
      desc - The description
      root - The xml root to publish
    • publishXml

      public void publishXml(String desc, Element root, String fileExt)
      Publish the xml
      Parameters:
      desc - The description
      root - The xml root to publish
      fileExt - The file extension
    • publishMessage

      public void publishMessage()
      Publish a message
    • publishMessage

      public void publishMessage(String properties)
      Publish a message with the given properties(?)
      Parameters:
      properties - The properties
    • publishState

      public void publishState()
      Publish the idv bundle
    • publishState

      public void publishState(String properties)
      Publish the idv bundle
      Parameters:
      properties - The properties
    • doPublish

      public void doPublish(String title, String filePath)
      Publish the file
      Parameters:
      title - Title to use
      filePath - The file
    • doPublish

      public void doPublish(String title, String filePath, String properties)
      Publish the file
      Parameters:
      title - Title to use
      filePath - The file
      properties - The properties
    • initPublisher

      public void initPublisher()
      Initialize me
    • getPublisherTypes

      public static List<TwoFacedObject> getPublisherTypes(IntegratedDataViewer idv, Element root)
      Process the given xml, instantiating a list of IdvPublishers
      Parameters:
      idv - The idv
      root - Root of the publishers.xml file
      Returns:
      List of publishers
    • getPublishers

      public List getPublishers()
      Get the list of Publishers
      Returns:
      The publishers