Class KimCacheUtils

java.lang.Object
org.kuali.rice.kim.api.cache.KimCacheUtils

public final class KimCacheUtils extends Object
  • Method Details

    • isDynamicRoleMembership

      public static boolean isDynamicRoleMembership(List<String> roleIds)
      Used for a caching condition to determine if a role passed to a method is derived or not.
      Parameters:
      roleIds - list of role id values
      Returns:
      true if list contains a derived role.
    • isDynamicMembshipRoleByNamespaceAndName

      public static boolean isDynamicMembshipRoleByNamespaceAndName(String namespaceCode, String roleName)
      Used for a caching condition to determine if a role passed to a method is derived or not.
      Parameters:
      namespaceCode - namespaceCode of role
      roleName - name of role
      Returns:
      true if list contains role.
    • isResponsibilityIdAssignedToDynamicRole

      public static boolean isResponsibilityIdAssignedToDynamicRole(String responsibilityId)
      Used for a caching condition to determine if a responsibility is assigned to a derived role.
      Parameters:
      responsibilityId - id of responsibility
      Returns:
      true if assigned to a derived role.
    • isResponsibilityAssignedToDynamicRole

      public static boolean isResponsibilityAssignedToDynamicRole(String namespaceCode, String responsibilityName)
      Used for a caching condition to determine if a responsibility is assigned to a derived role.
      Parameters:
      namespaceCode - namespaceCode of responsibility
      responsibilityName - name of responsibility
      Returns:
      true if assigned to a derived role.
    • isResponsibilityTemplateAssignedToDynamicRole

      public static boolean isResponsibilityTemplateAssignedToDynamicRole(String namespaceCode, String responsibilityTemplateName)
      Used for a caching condition to determine if a responsibility template is assigned to a derived role.
      Parameters:
      namespaceCode - namespaceCode of permission
      responsibilityTemplateName - name of responsibility template
      Returns:
      true if assigned to a derived role.