Package org.duracloud.storage.xml.impl
Class StorageAccountProviderSimpleBindingImpl
- java.lang.Object
-
- org.duracloud.storage.xml.impl.StorageAccountProviderSimpleBindingImpl
-
- All Implemented Interfaces:
StorageAccountProviderBinding
public class StorageAccountProviderSimpleBindingImpl extends Object implements StorageAccountProviderBinding
This class provides a simple xml binding for storage accounts.- Author:
- Andrew Woods Date: 5/9/11
-
-
Constructor Summary
Constructors Constructor Description StorageAccountProviderSimpleBindingImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StorageAccountgetAccountFromXml(org.jdom.Element xml)This method builds a StorageAccount object from the arg xml.protected StringgetAccountId(org.jdom.Element xml)protected CredentialgetCredential(org.jdom.Element xml)org.jdom.ElementgetElementFrom(StorageAccount acct, boolean includeCredentials, boolean includeHiddenOptions)This method builds an xml element from the arg StorageAccount.protected booleangetIsPrimary(org.jdom.Element xml)protected org.duracloud.storage.domain.StorageProviderTypegetStorageProviderType(org.jdom.Element xml)
-
-
-
Method Detail
-
getAccountFromXml
public StorageAccount getAccountFromXml(org.jdom.Element xml)
Description copied from interface:StorageAccountProviderBindingThis method builds a StorageAccount object from the arg xml.- Specified by:
getAccountFromXmlin interfaceStorageAccountProviderBinding- Parameters:
xml- serialization of StorageAccount- Returns:
- StorageAccount
-
getStorageProviderType
protected org.duracloud.storage.domain.StorageProviderType getStorageProviderType(org.jdom.Element xml)
-
getAccountId
protected String getAccountId(org.jdom.Element xml)
-
getIsPrimary
protected boolean getIsPrimary(org.jdom.Element xml)
-
getCredential
protected Credential getCredential(org.jdom.Element xml)
-
getElementFrom
public org.jdom.Element getElementFrom(StorageAccount acct, boolean includeCredentials, boolean includeHiddenOptions)
Description copied from interface:StorageAccountProviderBindingThis method builds an xml element from the arg StorageAccount.- Specified by:
getElementFromin interfaceStorageAccountProviderBinding- Parameters:
acct- from whence xml will be builtincludeCredentials- flag indicating inclusion of credentials in xmlincludeHiddenOptions- flag indicating inclusion of hidden options in xml- Returns:
- xml element
-
-