org.duracloud.security.xml
Class SecurityUsersDocumentBinding

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

public class SecurityUsersDocumentBinding
extends 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 String createDocumentFrom(Collection<SecurityUserBean> users)
          This method serializes the arg SecurityUserBean list into an xml document.
static List<SecurityUserBean> createSecurityUsersFrom(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 List<SecurityUserBean> createSecurityUsersFrom(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 String createDocumentFrom(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-2012 DuraSpace. All Rights Reserved.