Class PicketLinkIDMOrganizationServiceImpl

java.lang.Object
org.exoplatform.services.organization.BaseOrganizationService
org.exoplatform.services.organization.idm.PicketLinkIDMOrganizationServiceImpl
All Implemented Interfaces:
org.exoplatform.container.component.ComponentRequestLifecycle, org.exoplatform.services.organization.OrganizationService, org.picocontainer.Startable

public class PicketLinkIDMOrganizationServiceImpl extends org.exoplatform.services.organization.BaseOrganizationService implements org.picocontainer.Startable, org.exoplatform.container.component.ComponentRequestLifecycle
OrganizationService implementation using PicketLink
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class org.exoplatform.services.organization.BaseOrganizationService

    groupDAO_, listeners_, LOG, membershipDAO_, membershipTypeDAO_, userDAO_, userProfileDAO_

    Fields inherited from interface org.exoplatform.services.organization.OrganizationService

    EXTERNAL_STORE, INTERNAL_STORE, USER_AUTHENTICATED_EVENT
  • Constructor Summary

    Constructors
    Constructor
    Description
    PicketLinkIDMOrganizationServiceImpl(org.exoplatform.container.xml.InitParams params, PicketLinkIDMService idmService)
     
    PicketLinkIDMOrganizationServiceImpl(org.exoplatform.container.xml.InitParams params, PicketLinkIDMService idmService, org.exoplatform.services.organization.cache.OrganizationCacheHandler organizationCacheHandler)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addDecoratorPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
     
    void
     
    void
    endRequest(org.exoplatform.container.ExoContainer container)
     
    void
     
     
    final org.picketlink.idm.api.Group
     
    boolean
    isStarted(org.exoplatform.container.ExoContainer container)
     
    void
    Recover from an IDM error
    void
    Runs an action now and, when the thread holds an active IDM transaction, once more when the request ends that transaction: a cache eviction made before the commit lets another thread or node cache the committed state again, which the second run evicts.
    void
    setConfiguration(Config configuration)
     
    void
    setEnableCache(boolean enable)
     
    void
     
    void
    startRequest(org.exoplatform.container.ExoContainer container)
     
    void
     

    Methods inherited from class org.exoplatform.services.organization.BaseOrganizationService

    addListenerPlugin, getGroupHandler, getMembershipHandler, getMembershipTypeHandler, getUserHandler, getUserProfileHandler

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • PicketLinkIDMOrganizationServiceImpl

      public PicketLinkIDMOrganizationServiceImpl(org.exoplatform.container.xml.InitParams params, PicketLinkIDMService idmService, org.exoplatform.services.organization.cache.OrganizationCacheHandler organizationCacheHandler) throws Exception
      Throws:
      Exception
    • PicketLinkIDMOrganizationServiceImpl

      public PicketLinkIDMOrganizationServiceImpl(org.exoplatform.container.xml.InitParams params, PicketLinkIDMService idmService) throws Exception
      Throws:
      Exception
  • Method Details

    • getJBIDMGroup

      public final org.picketlink.idm.api.Group getJBIDMGroup(String groupId) throws Exception
      Throws:
      Exception
    • start

      public void start()
      Specified by:
      start in interface org.picocontainer.Startable
      Overrides:
      start in class org.exoplatform.services.organization.BaseOrganizationService
    • stop

      public void stop()
      Specified by:
      stop in interface org.picocontainer.Startable
    • startRequest

      public void startRequest(org.exoplatform.container.ExoContainer container)
      Specified by:
      startRequest in interface org.exoplatform.container.component.ComponentRequestLifecycle
      Overrides:
      startRequest in class org.exoplatform.services.organization.BaseOrganizationService
    • flush

      public void flush()
    • endRequest

      public void endRequest(org.exoplatform.container.ExoContainer container)
      Specified by:
      endRequest in interface org.exoplatform.container.component.ComponentRequestLifecycle
      Overrides:
      endRequest in class org.exoplatform.services.organization.BaseOrganizationService
    • runNowAndAfterTransaction

      public void runNowAndAfterTransaction(Runnable action)
      Runs an action now and, when the thread holds an active IDM transaction, once more when the request ends that transaction: a cache eviction made before the commit lets another thread or node cache the committed state again, which the second run evicts. A failure of either run is logged, never thrown: the write the action follows is already flushed, and its listeners must still run.
      Parameters:
      action - the action, which must be safe to run twice
    • isStarted

      public boolean isStarted(org.exoplatform.container.ExoContainer container)
      Specified by:
      isStarted in interface org.exoplatform.container.component.ComponentRequestLifecycle
    • recoverFromIDMError

      public void recoverFromIDMError()
      Recover from an IDM error
    • getConfiguration

      public Config getConfiguration()
    • clearCaches

      public void clearCaches()
    • setEnableCache

      public void setEnableCache(boolean enable)
    • setConfiguration

      public void setConfiguration(Config configuration)
    • addDecoratorPlugin

      public void addDecoratorPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
      Specified by:
      addDecoratorPlugin in interface org.exoplatform.services.organization.OrganizationService