org.ow2.bonita.identity.impl
Class PersistentIdentityService

java.lang.Object
  extended by org.ow2.bonita.identity.impl.InMemoryIdentityService
      extended by org.ow2.bonita.identity.impl.PersistentIdentityService
All Implemented Interfaces:
IdentityServiceOp
Direct Known Subclasses:
PlainIdentityService, SerializedIdentityService, XMLIdentityService

public abstract class PersistentIdentityService
extends InMemoryIdentityService

Author:
"Pierre Vigneras"

Field Summary
protected  java.io.File file
           
 
Fields inherited from class org.ow2.bonita.identity.impl.InMemoryIdentityService
groupOps, next, ROOT_ID, users
 
Constructor Summary
PersistentIdentityService(java.io.File file, boolean create)
           
 
Method Summary
 void commit()
          Commit all modifications to the backing store.
protected abstract  void flush()
           
protected abstract  void sync()
           
 
Methods inherited from class org.ow2.bonita.identity.impl.InMemoryIdentityService
authenticateUser, createGroup, createGroup, createUser, deleteGroup, deleteUser, freshGroup, freshUser, getAllGroups, getAllUsers, getGroup, getUser, init, modifyGroup, modifyUser, setMembership, setMembership
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file

protected final java.io.File file
Constructor Detail

PersistentIdentityService

public PersistentIdentityService(java.io.File file,
                                 boolean create)
                          throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException
Method Detail

flush

protected abstract void flush()

sync

protected abstract void sync()

commit

public void commit()
            throws CommitException
Description copied from interface: IdentityServiceOp
Commit all modifications to the backing store.

Specified by:
commit in interface IdentityServiceOp
Overrides:
commit in class InMemoryIdentityService
Throws:
CommitException


Copyright © 2009 OW2 Consortium. All Rights Reserved.