com.opensymphony.user.provider.file
Class XMLAccessProvider

java.lang.Object
  extended bycom.opensymphony.user.provider.file.FileAccessProvider
      extended bycom.opensymphony.user.provider.file.XMLAccessProvider
All Implemented Interfaces:
AccessProvider, java.io.Serializable, UserProvider

public class XMLAccessProvider
extends FileAccessProvider

Following properties are required:

XML format example:
 <groups>
   <group id="myGroup">
     <user id="myUser"/>
     <user id="someOtherUser"/>
   </group>
   <group id="anEmptyGroup"/>
   <group id="foo">
     <user id="bar"/>
     <user id="baz"/>
   </group>
 </groups>
 

Author:
Dave Brondsema
See Also:
Serialized Form

Field Summary
protected static org.apache.commons.logging.Log log
           
 
Fields inherited from class com.opensymphony.user.provider.file.FileAccessProvider
groupCache
 
Constructor Summary
XMLAccessProvider()
           
 
Method Summary
 boolean init(java.util.Properties properties)
          Called by UserManager before any other method.
 
Methods inherited from class com.opensymphony.user.provider.file.FileAccessProvider
addToGroup, create, flushCaches, handles, inGroup, list, listGroupsContainingUser, listUsersInGroup, load, remove, removeFromGroup, store
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.commons.logging.Log log
Constructor Detail

XMLAccessProvider

public XMLAccessProvider()
Method Detail

init

public boolean init(java.util.Properties properties)
Description copied from interface: UserProvider
Called by UserManager before any other method. Allows for UserProvider specific initialization.

Specified by:
init in interface UserProvider
Overrides:
init in class FileAccessProvider

See www.opensymphony.com for more information.