org.jboss.seam.security.management.picketlink
Class JpaIdentityStoreSessionImpl

java.lang.Object
  extended by org.jboss.seam.security.management.picketlink.JpaIdentityStoreSessionImpl
All Implemented Interfaces:
org.picketlink.idm.spi.store.IdentityStoreSession

public class JpaIdentityStoreSessionImpl
extends Object
implements org.picketlink.idm.spi.store.IdentityStoreSession

JPA-specific implementation of IdentityStoreSession, based on an EntityManager.

Author:
Shane Bryzak

Constructor Summary
JpaIdentityStoreSessionImpl(javax.persistence.EntityManager em, javax.enterprise.event.Event<IdentityObjectCreatedEvent> identityObjectCreatedEvent)
           
 
Method Summary
 void clear()
           
 void close()
           
 void commitTransaction()
           
 javax.persistence.EntityManager getEntityManager()
           
 javax.enterprise.event.Event<IdentityObjectCreatedEvent> getIdentityObjectCreatedEvent()
           
 Object getSessionContext()
           
 boolean isOpen()
           
 boolean isTransactionActive()
           
 boolean isTransactionSupported()
           
 void rollbackTransaction()
           
 void save()
           
 void startTransaction()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JpaIdentityStoreSessionImpl

public JpaIdentityStoreSessionImpl(javax.persistence.EntityManager em,
                                   javax.enterprise.event.Event<IdentityObjectCreatedEvent> identityObjectCreatedEvent)
Method Detail

getEntityManager

public javax.persistence.EntityManager getEntityManager()

getIdentityObjectCreatedEvent

public javax.enterprise.event.Event<IdentityObjectCreatedEvent> getIdentityObjectCreatedEvent()

clear

public void clear()
           throws org.picketlink.idm.common.exception.IdentityException
Specified by:
clear in interface org.picketlink.idm.spi.store.IdentityStoreSession
Throws:
org.picketlink.idm.common.exception.IdentityException

close

public void close()
           throws org.picketlink.idm.common.exception.IdentityException
Specified by:
close in interface org.picketlink.idm.spi.store.IdentityStoreSession
Throws:
org.picketlink.idm.common.exception.IdentityException

commitTransaction

public void commitTransaction()
Specified by:
commitTransaction in interface org.picketlink.idm.spi.store.IdentityStoreSession

getSessionContext

public Object getSessionContext()
                         throws org.picketlink.idm.common.exception.IdentityException
Specified by:
getSessionContext in interface org.picketlink.idm.spi.store.IdentityStoreSession
Throws:
org.picketlink.idm.common.exception.IdentityException

isOpen

public boolean isOpen()
Specified by:
isOpen in interface org.picketlink.idm.spi.store.IdentityStoreSession

isTransactionActive

public boolean isTransactionActive()
Specified by:
isTransactionActive in interface org.picketlink.idm.spi.store.IdentityStoreSession

isTransactionSupported

public boolean isTransactionSupported()
Specified by:
isTransactionSupported in interface org.picketlink.idm.spi.store.IdentityStoreSession

rollbackTransaction

public void rollbackTransaction()
Specified by:
rollbackTransaction in interface org.picketlink.idm.spi.store.IdentityStoreSession

save

public void save()
          throws org.picketlink.idm.common.exception.IdentityException
Specified by:
save in interface org.picketlink.idm.spi.store.IdentityStoreSession
Throws:
org.picketlink.idm.common.exception.IdentityException

startTransaction

public void startTransaction()
Specified by:
startTransaction in interface org.picketlink.idm.spi.store.IdentityStoreSession


Copyright © 2011 Seam Framework. All Rights Reserved.