public final class Storage
extends ServiceProxy
| Constructor and Description |
|---|
Storage() |
| Modifier and Type | Method and Description |
|---|---|
StorageCollection |
getStorageCollection(java.lang.String id)
Fetch a StorageCollection from the Storage service.
|
StorageCollection |
getStorageCollectionForUserId(java.lang.String id,
java.lang.String userId)
Fetch the StorageCollection which is owned by a different user specified with userId here.
|
public StorageCollection getStorageCollection(java.lang.String id) throws ServiceProxyException
id - case-sensitive ID of the storage collection defined in the Storage serviceStorageCollection, null if the storage collection does not existServiceProxyExceptionpublic StorageCollection getStorageCollectionForUserId(java.lang.String id, java.lang.String userId) throws ServiceProxyException
id - case-sensitive ID of the storage collection defined in the Storage serviceuserId - case-sensitive user ID of the user who owns a share of the objects in the collectionStorageCollection, null if the storage collection does not existServiceProxyException