Class ExoRepositoryIdentityStoreSessionImpl

java.lang.Object
org.gatein.portal.idm.impl.repository.ExoRepositoryIdentityStoreSessionImpl
All Implemented Interfaces:
org.picketlink.idm.spi.store.IdentityStoreSession

public class ExoRepositoryIdentityStoreSessionImpl extends Object implements org.picketlink.idm.spi.store.IdentityStoreSession
This class is used by external store API to store opened sessions (DB and/or LDAP) in to close them at the end of transactions
  • Field Details

    • identityStoreSessionMappings

      protected final Map<String,org.picketlink.idm.spi.store.IdentityStoreSession> identityStoreSessionMappings
    • sessionOptions

      protected final Map<String,Object> sessionOptions
  • Constructor Details

    • ExoRepositoryIdentityStoreSessionImpl

      public ExoRepositoryIdentityStoreSessionImpl(Map<String,org.picketlink.idm.spi.store.IdentityStoreSession> identityStoreSessionMappings, Map<String,Object> sessionOptions)
  • Method Details

    • getIdentityStoreSessionMappings

      public Map<String,org.picketlink.idm.spi.store.IdentityStoreSession> getIdentityStoreSessionMappings()
    • getSessionOptions

      public Map<String,Object> getSessionOptions()
    • addIdentityStoreSessionMapping

      public void addIdentityStoreSessionMapping(String id, org.picketlink.idm.spi.store.IdentityStoreSession identityStoreSession)
    • removeIdentityStoreSessionMapping

      public void removeIdentityStoreSessionMapping(String id)
    • 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
    • getIdentityStoreSession

      public org.picketlink.idm.spi.store.IdentityStoreSession getIdentityStoreSession(String storeId)
    • 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
    • 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
    • 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
    • isOpen

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

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

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

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

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

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