org.kuali.rice.kim.api.cache
Class KimCacheUtils

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

public final class KimCacheUtils
extends Object


Method Summary
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.
static boolean isDynamicRoleMembership(List<String> roleIds)
          Used for a caching condition to determine if a role passed to a method is derived or not.
static boolean isResponsibilityAssignedToDynamicRole(String namespaceCode, String responsibilityName)
          Used for a caching condition to determine if a responsibility is assigned to a derived role.
static boolean isResponsibilityIdAssignedToDynamicRole(String responsibilityId)
          Used for a caching condition to determine if a responsibility is assigned to a derived role.
static boolean isResponsibilityTemplateAssignedToDynamicRole(String namespaceCode, String responsibilityTemplateName)
          Used for a caching condition to determine if a responsibility template is assigned to a derived role.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.