public class CloudStorageItem
extends com.psddev.dari.util.AbstractStorageItem
StorageItem
stored in the cloud.
To use this class, it must be able to access the jclouds library. If you use Maven, you should add the following dependency:
<dependency> <groupId>org.jclouds</groupId> <artifactId>jclouds-all</artifactId> <version>1.6.0</version> </dependency>
Modifier and Type | Field and Description |
---|---|
static String |
CONTAINER_SETTING
Setting key for container.
|
static String |
CREDENTIAL_SETTING
Setting key for credential.
|
static String |
IDENTITY_SETTING
Setting key for identity.
|
static String |
PROVIDER_SETTING
Setting key for storage provider.
|
static String |
REGION_SETTING
Setting key for region.
|
Constructor and Description |
---|
CloudStorageItem() |
Modifier and Type | Method and Description |
---|---|
protected InputStream |
createData() |
String |
getContainer()
Returns the container.
|
String |
getCredential()
Returns the credential.
|
String |
getIdentity()
Returns the identity.
|
String |
getProvider()
Returns the storage provider.
|
String |
getRegion()
Returns the region.
|
void |
initialize(String settingsKey,
Map<String,Object> settings) |
boolean |
isInStorage() |
protected void |
saveData(File file) |
protected void |
saveData(InputStream dataInput) |
void |
setContainer(String newContainer)
Sets the container.
|
void |
setCredential(String newCredential)
Sets the credential.
|
void |
setIdentity(String newIdentity)
Sets the identity.
|
void |
setProvider(String newProvider)
Sets the storage provider.
|
void |
setRegion(String region)
Sets the region.
|
createPublicUrl, equals, getBaseUrl, getBaseUrls, getContentType, getData, getHashAlgorithm, getMetadata, getPath, getPublicUrl, getSecureBaseUrl, getSecureBaseUrls, getSecurePublicUrl, getStorage, getUrl, hashCode, registerListener, resetListeners, save, setBaseUrl, setBaseUrls, setContentType, setData, setHashAlgorithm, setMetadata, setPath, setSecureBaseUrl, setSecureBaseUrls, setStorage, toString
public static final String PROVIDER_SETTING
public static final String IDENTITY_SETTING
public static final String CREDENTIAL_SETTING
public static final String CONTAINER_SETTING
public static final String REGION_SETTING
public String getProvider()
public void setProvider(String newProvider)
public String getIdentity()
public void setIdentity(String newIdentity)
public String getCredential()
public void setCredential(String newCredential)
public String getContainer()
public void setContainer(String newContainer)
public String getRegion()
public void setRegion(String region)
public void initialize(String settingsKey, Map<String,Object> settings)
initialize
in interface com.psddev.dari.util.SettingsBackedObject
initialize
in class com.psddev.dari.util.AbstractStorageItem
protected InputStream createData() throws IOException
createData
in class com.psddev.dari.util.AbstractStorageItem
IOException
protected void saveData(File file) throws IOException
IOException
protected void saveData(InputStream dataInput) throws IOException
saveData
in class com.psddev.dari.util.AbstractStorageItem
IOException
public boolean isInStorage()
Copyright © 2018 PERFECT SENSE digital, LLC. All rights reserved.