org.duracloud.storage.xml.impl
Class StorageAccountProviderSimpleBindingImpl

java.lang.Object
  extended by org.duracloud.storage.xml.impl.StorageAccountProviderSimpleBindingImpl
All Implemented Interfaces:
StorageAccountProviderBinding

public class StorageAccountProviderSimpleBindingImpl
extends java.lang.Object
implements StorageAccountProviderBinding

This class provides a simple xml binding for storage accounts.

Author:
Andrew Woods Date: 5/9/11

Constructor Summary
StorageAccountProviderSimpleBindingImpl()
           
 
Method Summary
 StorageAccount getAccountFromXml(org.jdom.Element xml)
          This method builds a StorageAccount object from the arg xml.
protected  java.lang.String getAccountId(org.jdom.Element xml)
           
protected  Credential getCredential(org.jdom.Element xml)
           
 org.jdom.Element getElementFrom(StorageAccount acct, boolean includeCredentials)
          This method builds an xml element from the arg StorageAccount.
protected  boolean getIsPrimary(org.jdom.Element xml)
           
protected  StorageProviderType getStorageProviderType(org.jdom.Element xml)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StorageAccountProviderSimpleBindingImpl

public StorageAccountProviderSimpleBindingImpl()
Method Detail

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 StorageProviderType getStorageProviderType(org.jdom.Element xml)

getAccountId

protected java.lang.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)
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
Returns:
xml element


Copyright © 2009-2011 DuraSpace. All Rights Reserved.