Class StorageAccountImpl
- java.lang.Object
-
- org.duracloud.storage.domain.impl.StorageAccountImpl
-
- All Implemented Interfaces:
StorageAccount
public class StorageAccountImpl extends Object implements StorageAccount
Contains the information necessary to access a storage provider account.- Author:
- Bill Branan
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.duracloud.storage.domain.StorageAccount
StorageAccount.OPTS
-
-
Constructor Summary
Constructors Constructor Description StorageAccountImpl(String id, String username, String password, org.duracloud.storage.domain.StorageProviderType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetId()Map<String,String>getOptions()StringgetOwnerId()StringgetPassword()org.duracloud.storage.domain.StorageProviderTypegetType()StringgetUsername()inthashCode()booleanisPrimary()voidsetId(String id)voidsetOption(String key, String value)voidsetOwnerId(String ownerId)voidsetPassword(String password)voidsetPrimary(boolean primary)voidsetType(org.duracloud.storage.domain.StorageProviderType type)voidsetUsername(String username)StringtoString()
-
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getIdin interfaceStorageAccount- Returns:
- the id
-
setId
public void setId(String id)
- Specified by:
setIdin interfaceStorageAccount- Parameters:
id- the id to set
-
getOwnerId
public String getOwnerId()
- Specified by:
getOwnerIdin interfaceStorageAccount
-
setOwnerId
public void setOwnerId(String ownerId)
- Specified by:
setOwnerIdin interfaceStorageAccount
-
getUsername
public String getUsername()
- Specified by:
getUsernamein interfaceStorageAccount- Returns:
- the username
-
setUsername
public void setUsername(String username)
- Specified by:
setUsernamein interfaceStorageAccount- Parameters:
username- the username to set
-
getPassword
public String getPassword()
- Specified by:
getPasswordin interfaceStorageAccount- Returns:
- the password
-
setPassword
public void setPassword(String password)
- Specified by:
setPasswordin interfaceStorageAccount- Parameters:
password- the password to set
-
getType
public org.duracloud.storage.domain.StorageProviderType getType()
- Specified by:
getTypein interfaceStorageAccount- Returns:
- the type
-
setType
public void setType(org.duracloud.storage.domain.StorageProviderType type)
- Specified by:
setTypein interfaceStorageAccount- Parameters:
type- the type to set
-
isPrimary
public boolean isPrimary()
- Specified by:
isPrimaryin interfaceStorageAccount
-
setPrimary
public void setPrimary(boolean primary)
- Specified by:
setPrimaryin interfaceStorageAccount
-
getOptions
public Map<String,String> getOptions()
- Specified by:
getOptionsin interfaceStorageAccount
-
setOption
public void setOption(String key, String value)
- Specified by:
setOptionin interfaceStorageAccount
-
-