Dialog for choosing the destination bucket for an Object copy operation, and
specifying how the copy will be performed. The dialog includes options for
renaming object keys during the copy, and for indicating that the copy will
actually be a Move operation - in which case the original objects should be
deleted after the copy has completed successfully.

renameObjectKey

Return the renamed key for an object based on the current renaming pattern.
This method calculates values for the {key}, {count}, {path}, {filename},
{basename} and {ext} variables from the original key name, and returns the
destination key name when these values are substituted into the current pattern.

The substitution variables supported by this method are:

{key} - the original object key

{count} - an offset value for this object (one greater than the offset
value provided to this method)

{path} - the path portion of the key name, up to the last occurence of
a slash (/) character. If the key contains no slash characters, this variable
will be an empty string.

{filename} - the filename portion of the key name, everything after the
last slash (/) character. If the key contains no slash characters, this variable
will be the original key name.

{ext} - the extension portion of a filename, if any.

{basename} - the file's base name, excluding the extension.

Parameters:

key - the original name of an S3 object.

offset - the offset for the current object in a set of objects, eg this is the
ith object in the list. This information is necessary to enable the
{count}

Returns:

the renamed object key generated by the renaming pattern.

refreshNamesPreviewTable

protected void refreshNamesPreviewTable()

Refreshes the preview table to display the target keys that will be
generated by the proposed renaming pattern.

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)

Event handler for this dialog.

Specified by:

actionPerformed in interface java.awt.event.ActionListener

isCopyActionApproved

public boolean isCopyActionApproved()

Returns:

true if the user accepted the copy/move operation, false if the user
cancelled the dialog.

isMoveOptionSelected

public boolean isMoveOptionSelected()

Returns:

true if the user selected the Move option to indicate that objects should
be moved, rather than merely copied.

isCopyOriginalAccessControlLists

public boolean isCopyOriginalAccessControlLists()

Returns:

true if the use wishes to have the ACL settings of their source objects
retained after the copy.

getSourceObjectKeys

public java.lang.String[] getSourceObjectKeys()

Returns:

the original key names of the S3 objects that should be copied or moved
when this dialog is accepted.