org.duraspace.fcrepo.cloudsync.service.rest
Class DuraCloudResource

java.lang.Object
  extended by org.duraspace.fcrepo.cloudsync.service.rest.DuraCloudResource

public class DuraCloudResource
extends Object


Field Summary
protected static String JSON
           
static String PROVIDERACCOUNTS_JSON
           
static String PROVIDERACCOUNTS_XML
           
protected  CloudSyncService service
           
static String SPACES_JSON
           
static String SPACES_XML
           
protected static String STATUS_200_OK
           
protected static String STATUS_201_CREATED
           
protected static String STATUS_204_NO_CONTENT
           
protected static String TEXT
           
protected static String XML
           
 
Constructor Summary
DuraCloudResource(CloudSyncService service)
           
 
Method Summary
 List<ProviderAccount> listProviderAccounts(String url, String username, String password)
           
 List<Space> listSpaces(String url, String username, String password, String providerAccountId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROVIDERACCOUNTS_JSON

public static final String PROVIDERACCOUNTS_JSON
See Also:
Constant Field Values

PROVIDERACCOUNTS_XML

public static final String PROVIDERACCOUNTS_XML
See Also:
Constant Field Values

SPACES_JSON

public static final String SPACES_JSON
See Also:
Constant Field Values

SPACES_XML

public static final String SPACES_XML
See Also:
Constant Field Values

JSON

protected static final String JSON
See Also:
Constant Field Values

TEXT

protected static final String TEXT
See Also:
Constant Field Values

XML

protected static final String XML
See Also:
Constant Field Values

STATUS_200_OK

protected static final String STATUS_200_OK
See Also:
Constant Field Values

STATUS_201_CREATED

protected static final String STATUS_201_CREATED
See Also:
Constant Field Values

STATUS_204_NO_CONTENT

protected static final String STATUS_204_NO_CONTENT
See Also:
Constant Field Values

service

protected final CloudSyncService service
Constructor Detail

DuraCloudResource

public DuraCloudResource(CloudSyncService service)
Method Detail

listProviderAccounts

public List<ProviderAccount> listProviderAccounts(String url,
                                                  String username,
                                                  String password)

listSpaces

public List<Space> listSpaces(String url,
                              String username,
                              String password,
                              String providerAccountId)


Copyright © 2012 DuraSpace. All Rights Reserved.