Class CacheableGroupHandlerImpl

All Implemented Interfaces:
org.exoplatform.services.organization.GroupHandler

public class CacheableGroupHandlerImpl extends GroupDAOImpl
  • Field Details

    • disableCacheInThread

      protected final ThreadLocal<Boolean> disableCacheInThread
      Used to avoid this problem 1/ Delete from cache 2/ super.delete 2.1 trigger preDelete listeners: the listener.findEntity THEN cache is populated again 2.2 delete from Store 2.3 trigger postDelete listeners THEN Error: when listener a listener calls findUserById, the entity is returned from cache
  • Constructor Details

  • Method Details

    • addChild

      public void addChild(org.exoplatform.services.organization.Group parent, org.exoplatform.services.organization.Group child, boolean broadcast) throws Exception
      Specified by:
      addChild in interface org.exoplatform.services.organization.GroupHandler
      Overrides:
      addChild in class GroupDAOImpl
      Throws:
      Exception
    • findGroupById

      public org.exoplatform.services.organization.Group findGroupById(String groupId) throws Exception
      Specified by:
      findGroupById in interface org.exoplatform.services.organization.GroupHandler
      Overrides:
      findGroupById in class GroupDAOImpl
      Throws:
      Exception
    • findGroupByMembership

      public Collection<org.exoplatform.services.organization.Group> findGroupByMembership(String userName, String membershipType) throws Exception
      Specified by:
      findGroupByMembership in interface org.exoplatform.services.organization.GroupHandler
      Overrides:
      findGroupByMembership in class GroupDAOImpl
      Throws:
      Exception
    • resolveGroupByMembership

      public Collection<org.exoplatform.services.organization.Group> resolveGroupByMembership(String userName, String membershipType) throws Exception
      Specified by:
      resolveGroupByMembership in interface org.exoplatform.services.organization.GroupHandler
      Overrides:
      resolveGroupByMembership in class GroupDAOImpl
      Throws:
      Exception
    • findGroups

      public Collection<org.exoplatform.services.organization.Group> findGroups(org.exoplatform.services.organization.Group parent) throws Exception
      Specified by:
      findGroups in interface org.exoplatform.services.organization.GroupHandler
      Overrides:
      findGroups in class GroupDAOImpl
      Throws:
      Exception
    • findGroupsOfUser

      public Collection<org.exoplatform.services.organization.Group> findGroupsOfUser(String user) throws Exception
      Specified by:
      findGroupsOfUser in interface org.exoplatform.services.organization.GroupHandler
      Overrides:
      findGroupsOfUser in class GroupDAOImpl
      Throws:
      Exception
    • getAllGroups

      public Collection<org.exoplatform.services.organization.Group> getAllGroups() throws Exception
      Specified by:
      getAllGroups in interface org.exoplatform.services.organization.GroupHandler
      Overrides:
      getAllGroups in class GroupDAOImpl
      Throws:
      Exception
    • removeGroup

      public org.exoplatform.services.organization.Group removeGroup(org.exoplatform.services.organization.Group group, boolean broadcast) throws Exception
      Specified by:
      removeGroup in interface org.exoplatform.services.organization.GroupHandler
      Overrides:
      removeGroup in class GroupDAOImpl
      Throws:
      Exception
    • getGroupId

      public String getGroupId(org.picketlink.idm.api.Group jbidGroup, List<org.picketlink.idm.api.Group> processed) throws Exception
      Calculates group id by checking all parents up to the root group or group type mapping from the configuration.
      Overrides:
      getGroupId in class GroupDAOImpl
      Parameters:
      jbidGroup -
      processed -
      Returns:
      Throws:
      Exception
    • saveGroup

      public void saveGroup(org.exoplatform.services.organization.Group group, boolean broadcast) throws Exception
      Specified by:
      saveGroup in interface org.exoplatform.services.organization.GroupHandler
      Overrides:
      saveGroup in class GroupDAOImpl
      Throws:
      Exception
    • moveGroup

      public void moveGroup(org.exoplatform.services.organization.Group parentOriginGroup, org.exoplatform.services.organization.Group parentTargetGroup, org.exoplatform.services.organization.Group groupToMove) throws Exception
      Specified by:
      moveGroup in interface org.exoplatform.services.organization.GroupHandler
      Overrides:
      moveGroup in class GroupDAOImpl
      Throws:
      Exception
    • clearCache

      public void clearCache()
    • disableCache

      public void disableCache()
    • enableCache

      public void enableCache()