Package org.kuali.rice.kim.api.cache
Class KimCacheUtils
java.lang.Object
org.kuali.rice.kim.api.cache.KimCacheUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisDynamicMembshipRoleByNamespaceAndName(String namespaceCode, String roleName) Used for a caching condition to determine if a role passed to a method is derived or not.static booleanisDynamicRoleMembership(List<String> roleIds) Used for a caching condition to determine if a role passed to a method is derived or not.static booleanisResponsibilityAssignedToDynamicRole(String namespaceCode, String responsibilityName) Used for a caching condition to determine if a responsibility is assigned to a derived role.static booleanisResponsibilityIdAssignedToDynamicRole(String responsibilityId) Used for a caching condition to determine if a responsibility is assigned to a derived role.static booleanisResponsibilityTemplateAssignedToDynamicRole(String namespaceCode, String responsibilityTemplateName) Used for a caching condition to determine if a responsibility template is assigned to a derived role.
-
Method Details
-
isDynamicRoleMembership
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 roleroleName- name of role- Returns:
- true if list contains role.
-
isResponsibilityIdAssignedToDynamicRole
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 responsibilityresponsibilityName- 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 permissionresponsibilityTemplateName- name of responsibility template- Returns:
- true if assigned to a derived role.
-