edu.wisc.trace.uch.resource.uploadmanager.resserver
Class ResServerUploadManager
java.lang.Object
edu.wisc.trace.uch.resource.uploadmanager.resserver.ResServerUploadManager
public class ResServerUploadManager
- extends Object
Provide Method to Upload Resources to Resource Server.
- Version:
- $Revision: 1.1 $
- Author:
- Parikshit Thakur & Team, Trace R&D Center
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResServerUploadManager
public ResServerUploadManager(String resServerUrl,
String userName,
String password)
- Store Resource Server URI, UserName and Password for further upload Request.
- Parameters:
resServerUrl - a String value of Resource Server URIuserName - a String value of Resource Server UserNamepassword - a String value of Resource Server Password
uploadResource
public Map<String,String> uploadResource(Map<String,List<String>> props,
List<String> owners,
List<String> groups,
Map<String,List<String>> rights,
String resourceUri)
- Upload the specified Resource to the Resource Server and prepare a Map containing Status Code and Resource Name and return it.
- Parameters:
props - an Object of Map<String, List<String>>owners - an Object of List<String>groups - an Object of List<String>rights - an Object of Map<String, List<String>>resourceUri - a String value of Resource URI
- Returns:
- an Object of Map<String, String>
Copyright © 2006-2008 Trace R&D Center, University of Wisconsin-Madison. All Rights Reserved.