Logo Search packages:      
Sourcecode: jets3t version File versions  Download package

org::jets3t::apps::cockpitlite::CockpitLite Class Reference

Inheritance diagram for org::jets3t::apps::cockpitlite::CockpitLite:

org::jets3t::service::multithread::S3ServiceEventListener org::jets3t::gui::HyperlinkActivatedListener

List of all members.


Detailed Description

CockpitLite is a graphical Java application for viewing and managing the contents of an Amazon S3 account, where the S3 account is not owned by the application's user directly but is made available by a service provider. The service provider uses the Gatekeeper application to mediate the user's access to the S3 account, authorizing each of the user's interactions before it can be executed.

CockpitLite Guide.

This is the CockpitLite application class; it may be run as a stand-alone application or as an Applet.

Author:
jmurty

Definition at line 160 of file CockpitLite.java.


Public Member Functions

void actionPerformed (ActionEvent event)
 CockpitLite (JFrame ownerFrame, Properties standAloneArgumentProperties) throws S3ServiceException
 CockpitLite ()
void followHyperlink (URL url, String target)
Credentials getCredentials (AuthScheme authscheme, String host, int port, boolean proxy) throws CredentialsNotAvailableException
void init ()
void s3ServiceEventPerformed (UpdateACLEvent event)
void s3ServiceEventPerformed (LookupACLEvent event)
void s3ServiceEventPerformed (GetObjectHeadsEvent event)
void s3ServiceEventPerformed (DeleteObjectsEvent event)
void s3ServiceEventPerformed (CreateObjectsEvent event)
void s3ServiceEventPerformed (CopyObjectsEvent event)
void s3ServiceEventPerformed (CreateBucketsEvent event)
void s3ServiceEventPerformed (final GetObjectHeadsEvent event)
void s3ServiceEventPerformed (final DeleteObjectsEvent event)
void s3ServiceEventPerformed (final CreateObjectsEvent event)
void s3ServiceEventPerformed (DownloadObjectsEvent event)
void s3ServiceEventPerformed (final UpdateACLEvent event)
void s3ServiceEventPerformed (final LookupACLEvent event)
void s3ServiceEventPerformed (DeleteVersionedObjectsEvent event)
void s3ServiceEventPerformed (ListObjectsEvent event)
void s3ServiceEventPerformed (GetObjectsEvent event)
void valueChanged (ListSelectionEvent e)

Static Public Member Functions

static String getAclDescription (AccessControlList acl)
static void main (String args[]) throws Exception

Static Public Attributes

static final String APPLICATION_DESCRIPTION = "Cockpit Lite/0.7.3"
static final String APPLICATION_TITLE = "JetS3t Cockpit Lite"
static final int HTTP_CONNECTION_TIMEOUT = 60000
static final int MAX_CONNECTION_RETRIES = 5
static final int SOCKET_CONNECTION_TIMEOUT = 60000

Protected Member Functions

void startProgressPanel (Object operationId, String statusMessage, int maxCount, CancelEventTrigger cancelEventTrigger)
void stopProgressPanel (Object operationId)
void updateProgressPanel (Object operationId, final String statusMessage, final int currentCount)

Private Member Functions

void compareRemoteAndLocalFiles (final Map localFilesMap, final Map s3ObjectsMap, final boolean upload)
void deleteSelectedObjects ()
void downloadSelectedObjects () throws IOException
String formatBytesProgressWatcherDetails (BytesProgressWatcher watcher, boolean includeBytes)
String formatTransferDetails (ThreadWatcher watcher)
void generatePublicGetUrl ()
S3Object[] getSelectedObjects ()
void initDropTarget (JComponent[] dropTargetComponents)
void initGui ()
boolean isObjectFilteringActive ()
void listObjectProperties ()
void listObjects ()
void lookupObjectsAccessControlLists (final S3Object[] objects)
void objectSelectedAction ()
void performFilesUpload (FileComparerResults comparisonResults, Map uploadingFilesMap)
void performObjectsDownload (FileComparerResults comparisonResults, Map s3DownloadObjectsMap)
void prepareForFilesUpload (File[] uploadFiles)
void prepareForObjectsDownload ()
SignatureRequest[] requestSignedRequests (String operationType, S3Object[] objects)
void retrieveObjectsDetails (final S3Object[] candidateObjects)
void showObjectPopupMenu (JComponent invoker, int xPos, int yPos)
void startProgressDialog (final String statusMessage, final String detailsText, final int minTaskValue, final int maxTaskValue, final String cancelButtonText, final CancelEventTrigger cancelEventListener)
void stopProgressDialog ()
void updateObjectsAccessControlLists (final S3Object[] objectsToUpdate, final AccessControlList acl)
void updateObjectsSummary ()
void updateProgressDialog (final String statusMessage, final String detailsText, final int progressValue)

Private Attributes

final ByteFormatter byteFormatter = new ByteFormatter()
final ByteFormatter byteFormatterTerse = new ByteFormatter("G","M","K","B",1)
Jets3tProperties cockpitLiteProperties = null
JMenuItem deleteObjectMenuItem = null
File downloadDirectory = null
JMenuItem downloadObjectMenuItem = null
Map downloadObjectsToFileMap = null
File fileChoosersLastUploadDirectory = null
Map filesAlreadyInDownloadDirectoryMap = null
Map filesForUploadMap = null
JCheckBox filterObjectsCheckBox = null
JPanel filterObjectsPanel = null
JTextField filterObjectsPrefix = null
JMenuItem generatePublicGetUrl = null
GatekeeperClientUtils gkClient = null
final GuiUtils guiUtils = new GuiUtils()
final Insets insetsDefault = new Insets(5, 7, 5, 7)
final Insets insetsZero = new Insets(0, 0, 0, 0)
boolean isDownloadingObjects = false
boolean isRunningAsApplet = false
boolean isStandAloneApplication = false
boolean isUploadingFiles = false
boolean isViewingObjectProperties = false
Object lock = new Object()
JButton loginButton = null
JPanel loginPanel = null
JPopupMenu objectActionMenu = null
JLabel objectsHeadingLabel = null
JLabel objectsSummaryLabel = null
JTable objectsTable = null
JScrollPane objectsTableSP = null
CLObjectTableModel objectTableModel = null
TableSorter objectTableModelSorter = null
Frame ownerFrame = null
ProgressDialog progressDialog = null
JPanel progressNotificationPanel = null
Map progressPanelMap = new HashMap()
JMenuItem refreshObjectMenuItem = null
Map s3DownloadObjectsMap = null
Map s3ExistingObjectsMap = null
S3ServiceMulti s3ServiceMulti = null
SkinsFactory skinsFactory = null
JPanel stackPanel = null
CardLayout stackPanelCardLayout = null
Properties standAloneArgumentProperties = null
final TimeFormatter timeFormatterTerse = new TimeFormatter("h","h","m","m","s","s")
final SimpleDateFormat timeSDF = new SimpleDateFormat("HH:mm:ss")
JMenuItem togglePublicMenuItem = null
JMenuItem uploadFilesMenuItem = null
String userBucketName = null
boolean userCanACL = false
boolean userCanDelete = false
boolean userCanDownload = false
boolean userCanUpload = false
UserInputFields userInputFields = null
String userPath = ""
String userVanityHost = null
JMenuItem viewObjectPropertiesMenuItem = null
final SimpleDateFormat yearAndTimeSDF = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")

Static Private Attributes

static final String ACL_PRIVATE_DESCRIPTION = "Private"
static final String ACL_PUBLIC_DESCRIPTION = "Public"
static final String ACL_UNKNOWN_DESCRIPTION = "?"
static final String DOWNLOAD_ALL_FILES = "Download all files"
static final String DOWNLOAD_NEW_AND_CHANGED_FILES = "Download new and changed file(s)"
static final String DOWNLOAD_NEW_FILES_ONLY = "Only download new file(s)"
static final Log log = LogFactory.getLog(CockpitLite.class)
static final String PROPERTIES_FILENAME = "cockpitlite.properties"
static final long serialVersionUID = 1809061443801912000L
static final String UPLOAD_ALL_FILES = "Upload all files"
static final String UPLOAD_NEW_AND_CHANGED_FILES = "Upload new and changed file(s)"
static final String UPLOAD_NEW_FILES_ONLY = "Only upload new file(s)"

Classes

class  ContextMenuListener

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index