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 Details

    • StorageAccountProviderSimpleBindingImpl

      public StorageAccountProviderSimpleBindingImpl()
  • Method Details

    • getAccountFromXml

      public StorageAccount getAccountFromXml(org.jdom.Element xml)
      Description copied from interface: StorageAccountProviderBinding
      This method builds a StorageAccount object from the arg xml.
      Specified by:
      getAccountFromXml in interface StorageAccountProviderBinding
      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: StorageAccountProviderBinding
      This method builds an xml element from the arg StorageAccount.
      Specified by:
      getElementFrom in interface StorageAccountProviderBinding
      Parameters:
      acct - from whence xml will be built
      includeCredentials - flag indicating inclusion of credentials in xml
      includeHiddenOptions - flag indicating inclusion of hidden options in xml
      Returns:
      xml element