Class AccessControlDialog

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

public class AccessControlDialog extends JDialog implements ActionListener
Dialog for managing S3 access control settings for buckets and objects.

All S3 group types are supported:

  • Canonical Users
  • Groups: All Users, Authenticated Users, and Amazon S3 Log Writers
  • Users identified by Email address

The following access permissions are supported:

  • READ
  • WRITE
  • READ_ACP
  • WRITE_ACP
  • FULL_CONTROL
Author:
James Murty
See Also:
  • Method Details

    • getUpdatedAccessControlList

      public AccessControlList getUpdatedAccessControlList()
      Returns:
      the ACL settings as set by the user in the dialog.
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Event handler for this dialog.
      Specified by:
      actionPerformed in interface ActionListener
    • showDialog

      public static AccessControlList showDialog(Frame owner, BaseStorageItem[] s3Items, AccessControlList accessControlList, HyperlinkActivatedListener hyperlinkListener)
      Displays the dialog box and waits until the user applies their changes or cancels the dialog.

      If the user elects to apply their changes, this method returns the updated ACL information. If the user cancels the dialog, this method returns null.

      Parameters:
      owner - the Frame within which this dialog will be displayed and centered
      s3Items - an array of S3Bucket or S3Objects to which ACL change will be applied
      accessControlList - the original ACL settings for the S3Bucket or S3Objects provided
      Returns:
      the update ACL settings if the user applies changes, null if the dialog is cancelled.
    • main

      public static void main(String[] args) throws Exception
      Creates stand-alone dialog box for testing only.
      Parameters:
      args -
      Throws:
      Exception