Comp-file-management portlet is implemented using the JSR0168 specification, and allows a user to list/browse files on a source and/or destination resource. Also it provides features to upload, and download user's files. User can transfer files between remote resources. Users upload local file to the remote resource as well.
Currently, major gridFTP functionality is implemented by access to the gridFTP APIs. To modify the classes to use COG Abstraction APIs, some of the classes from the grid port package and comp-file-management portlet are re-written.
*All of the added classes are packaged under .utils because of the confliction between the package names.
Added/Modified Classes
1. edu.tacc.gridport.portlets.interactive.utils.FileListingManager
Origin: GridPort
New Package: edu.tacc.gridport.portlets.interactive.utils
Modified Methods:
FileListingBean executeFileListing(ActionRequest req, ActionResponse res, FileListingBean currentListing)
ArrayList constructFileBeans(Collection files, String currentDir)
ArrayList constructFileBeans(FileInfo[] files, String currentDir)
Added Methods:
FileResource getConnect(GSSCredential proxy, String host, String port,String purpose, boolean remotePassive,String provider)
FileResource getConnect(PortalRequest request, String host, String port,String purpose, boolean remotePassive, String provider)
String getUpperDirectory(String currentDirectory)
String getPortalUsername(PortletRequest request)
void putIntoSession(PortletRequest request, String name, Object obj)
String constructPermissionString(Permissions user, Permissions group, Permissions all, boolean dir)
2. edu.tacc.gridport.portlets.interactive.utils.FileUploadManager
Origin: Grid Port
New Package: edu.tacc.gridport.portlets.interactive.utils
Modified Methods:
void uploadFileToRemote(ActionRequest req)
3.edu.tacc.gridport.portlets.interactive.helpers.FileTransfer
Origin: edu.tacc.gridport.portlets.interactive.helpers (comp-file-management portlet)
New Package: no change
Added Methods:
void fileUploadFromUserMachine(String toHost, String localFileFullName, String remoteFileFullName, GSSCredential credential)
Modified Methods:
void thirdPartyTransfer(String fromHost, String fromFileFullName,String toHost, String toFileFullName, GSSCredential credential)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment