org.duracloud.security.xml
Class SecurityUsersDocumentBinding

java.lang.Object
  extended by org.duracloud.security.xml.SecurityUsersDocumentBinding

public class SecurityUsersDocumentBinding
extends java.lang.Object

This class is a helper utility for binding SecurityUserBean objects to a SecurityUsers xml document.

Author:
Andrew Woods Date: Apr 15, 2010

Constructor Summary
SecurityUsersDocumentBinding()
           
 
Method Summary
static java.lang.String createDocumentFrom(java.util.Collection<SecurityUserBean> users)
          This method serializes the arg SecurityUserBean list into an xml document.
static java.util.List<SecurityUserBean> createSecurityUsersFrom(java.io.InputStream xml)
          This method binds a SecurityUserBean list to the content of the arg xml.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityUsersDocumentBinding

public SecurityUsersDocumentBinding()
Method Detail

createSecurityUsersFrom

public static java.util.List<SecurityUserBean> createSecurityUsersFrom(java.io.InputStream xml)
This method binds a SecurityUserBean list to the content of the arg xml.

Parameters:
xml - document to be bound to SecurityUserBean list
Returns:
SecurityUserBean list

createDocumentFrom

public static java.lang.String createDocumentFrom(java.util.Collection<SecurityUserBean> users)
This method serializes the arg SecurityUserBean list into an xml document.

Parameters:
users - SecurityUserBean list to be serialized
Returns:
SecurityUsers xml document


Copyright © 2009-2011 DuraSpace. All Rights Reserved.