Class BucketLoggingDialog

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class BucketLoggingDialog extends JDialog implements ActionListener
Dialog box for displaying and modifying the logging status of buckets.

The first time a bucket is selected its logging status is retrieved from S3 and the details are displayed, as well as being cached so further lookups aren't necessary. The logging status is modified by choosing/changing the target log bucket.

Author:
James Murty
See Also:
  • Constructor Details

  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Specified by:
      actionPerformed in interface ActionListener
    • showDialog

      public static void showDialog(Frame ownerFrame, S3Service s3Service, S3Bucket[] buckets, HyperlinkActivatedListener hyperlinkListener)
      Dialog box for displaying and modifying the logging status of buckets.
      Parameters:
      ownerFrame - the frame that will own the dialog.
      s3Service - an S3 Service that will be used to query and update the logging status of buckets. This service must be initialised with the necessary AWS credentials to perform the logging status change operations.
      buckets - the buckets in the user's S3 account.
      hyperlinkListener - the listener that will act on any hyperlink events triggered by the user clicking on HTTP links.
    • showDialog

      public static void showDialog(Frame ownerFrame, S3Service s3Service, String[] bucketNames, HyperlinkActivatedListener hyperlinkListener)
      Dialog box for displaying and modifying the logging status of buckets.
      Parameters:
      ownerFrame - the frame that will own the dialog.
      s3Service - an S3 Service that will be used to query and update the logging status of buckets. This service must be initialised with the necessary AWS credentials to perform the logging status change operations.
      bucketNames - the names of buckets in the user's S3 account.
      hyperlinkListener - the listener that will act on any hyperlink events triggered by the user clicking on HTTP links.