Class L2CacheSupport

java.lang.Object
fr.becpg.repo.repository.L2CacheSupport

public class L2CacheSupport extends Object

L2CacheSupport class.

Version:
$Id: $Id
Author:
matthieu
  • Field Details

  • Constructor Details

    • L2CacheSupport

      public L2CacheSupport()
  • Method Details

    • getCurrentThreadCache

      public static <T> Map<org.alfresco.service.cmr.repository.NodeRef,RepositoryEntity> getCurrentThreadCache()

      getCurrentThreadCache.

      Type Parameters:
      T - a T class
      Returns:
      a Map object.
    • isCacheOnlyEnable

      public static boolean isCacheOnlyEnable()

      isCacheOnlyEnable.

      Returns:
      a boolean.
    • generateNodeRef

      public static org.alfresco.service.cmr.repository.NodeRef generateNodeRef()

      generateNodeRef.

      Returns:
      a NodeRef object.
    • isThreadCacheEnable

      public static boolean isThreadCacheEnable()

      isThreadCacheEnable.

      Returns:
      a boolean.
    • isThreadLockEnable

      public static boolean isThreadLockEnable()

      isThreadLockEnable.

      Returns:
      a boolean.
    • isSilentModeEnable

      public static boolean isSilentModeEnable()

      isSilentModeEnable.

      Returns:
      a boolean
    • doInCacheOnly

      public static void doInCacheOnly(L2CacheSupport.Action action)

      doInCacheContext.

      Parameters:
      action - a L2CacheSupport.Action object.
    • doInCacheContext

      public static void doInCacheContext(L2CacheSupport.Action action, boolean isCacheOnlyEnable, boolean isThreadLockEnable)

      doInCacheContext.

      Parameters:
      action - a L2CacheSupport.Action object.
      isCacheOnlyEnable - a boolean.
      isThreadLockEnable - a boolean.
    • doInCacheContext

      public static void doInCacheContext(L2CacheSupport.Action action, boolean isCacheOnlyEnable, boolean isThreadLockEnable, boolean isSilentModeEnable)

      doInCacheContext.

      Parameters:
      action - a L2CacheSupport.Action object
      isCacheOnlyEnable - a boolean
      isThreadLockEnable - a boolean
      isSilentModeEnable - a boolean