public class StorageAccountsDocumentBinding extends Object
Constructor and Description |
---|
StorageAccountsDocumentBinding() |
Modifier and Type | Method and Description |
---|---|
org.jdom.Element |
createDocumentFrom(Collection<StorageAccount> accts,
boolean includeCredentials,
boolean includeOptions)
Converts the provided DuraStore acct configuration into an Xml element,
to be included in a larger Xml document (likely DuraStore config)
|
List<StorageAccount> |
createStorageAccountsFrom(org.jdom.Element accounts)
This method deserializes the provided xml into a durastore acct config object.
|
List<StorageAccount> |
createStorageAccountsFromXml(InputStream xml)
Creates storage accounts listing from XML which includes only the
storage accounts list (not the full DuraStore config.
|
String |
createXmlFrom(Collection<StorageAccount> accts,
boolean includeCredentials,
boolean includeOptions)
Converts the provided DuraStore acct configuration into a stand-alone
XML document.
|
public List<StorageAccount> createStorageAccountsFrom(org.jdom.Element accounts)
accounts
- public List<StorageAccount> createStorageAccountsFromXml(InputStream xml)
xml
- public org.jdom.Element createDocumentFrom(Collection<StorageAccount> accts, boolean includeCredentials, boolean includeOptions)
accts
- public String createXmlFrom(Collection<StorageAccount> accts, boolean includeCredentials, boolean includeOptions)
accts
- Copyright © 2009–2014 DuraSpace. All rights reserved.