org.kuali.rice.kim.impl.permission
Class PermissionServiceBase

java.lang.Object
  extended by org.kuali.rice.kim.impl.permission.PermissionServiceBase

public class PermissionServiceBase
extends Object

This is a description of what this class does - jjhanso don't forget to fill this in.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
private  BusinessObjectService businessObjectService
           
private static long CACHE_MAX_AGE_SECONDS
           
private  RiceCacheAdministrator cacheAdministrator
           
protected static String DEFAULT_PERMISSION_TYPE_SERVICE
           
protected static String PERMISSION_IMPL_CACHE_GROUP
           
protected static String PERMISSION_IMPL_CACHE_PREFIX
           
protected static String PERMISSION_IMPL_ID_CACHE_PREFIX
           
protected static String PERMISSION_IMPL_NAME_CACHE_PREFIX
           
private  Map<List<KimPermissionInfo>,MaxAgeSoftReference<List<String>>> permissionToRoleCache
           
private  Map<String,KimPermissionTypeService> permissionTypeServiceByNameCache
           
private  SequenceAccessorService sequenceAccessorService
           
 
Constructor Summary
PermissionServiceBase()
           
 
Method Summary
protected  void addRolesForPermissionsToCache(List<KimPermissionInfo> key, List<String> roleIds)
           
 void flushPermissionImplCache()
           
protected  BusinessObjectService getBusinessObjectService()
           
protected  RiceCacheAdministrator getCacheAdministrator()
           
protected  String getNewAttributeDataId()
           
protected  String getPermissionImplByIdCacheKey(String permissionId)
           
protected  String getPermissionImplByNameCacheKey(String namespaceCode, String permissionName)
           
protected  String getPermissionImplByTemplateNameCacheKey(String namespaceCode, String permissionTemplateName)
           
protected  Map<String,KimPermissionTypeService> getPermissionTypeServiceByNameCache()
           
protected  List<String> getRolesForPermissionsFromCache(List<KimPermissionInfo> key)
           
protected  SequenceAccessorService getSequenceAccessorService()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PERMISSION_IMPL_CACHE_PREFIX

protected static final String PERMISSION_IMPL_CACHE_PREFIX
See Also:
Constant Field Values

PERMISSION_IMPL_NAME_CACHE_PREFIX

protected static final String PERMISSION_IMPL_NAME_CACHE_PREFIX
See Also:
Constant Field Values

PERMISSION_IMPL_ID_CACHE_PREFIX

protected static final String PERMISSION_IMPL_ID_CACHE_PREFIX
See Also:
Constant Field Values

PERMISSION_IMPL_CACHE_GROUP

protected static final String PERMISSION_IMPL_CACHE_GROUP
See Also:
Constant Field Values

DEFAULT_PERMISSION_TYPE_SERVICE

protected static final String DEFAULT_PERMISSION_TYPE_SERVICE
See Also:
Constant Field Values

businessObjectService

private BusinessObjectService businessObjectService

sequenceAccessorService

private SequenceAccessorService sequenceAccessorService

cacheAdministrator

private RiceCacheAdministrator cacheAdministrator

permissionToRoleCache

private Map<List<KimPermissionInfo>,MaxAgeSoftReference<List<String>>> permissionToRoleCache

permissionTypeServiceByNameCache

private Map<String,KimPermissionTypeService> permissionTypeServiceByNameCache

CACHE_MAX_AGE_SECONDS

private static final long CACHE_MAX_AGE_SECONDS
See Also:
Constant Field Values
Constructor Detail

PermissionServiceBase

public PermissionServiceBase()
Method Detail

getBusinessObjectService

protected BusinessObjectService getBusinessObjectService()

flushPermissionImplCache

public void flushPermissionImplCache()

getPermissionTypeServiceByNameCache

protected Map<String,KimPermissionTypeService> getPermissionTypeServiceByNameCache()
Returns:
the permissionTypeServiceByNameCache

addRolesForPermissionsToCache

protected void addRolesForPermissionsToCache(List<KimPermissionInfo> key,
                                             List<String> roleIds)

getRolesForPermissionsFromCache

protected List<String> getRolesForPermissionsFromCache(List<KimPermissionInfo> key)

getPermissionImplByTemplateNameCacheKey

protected String getPermissionImplByTemplateNameCacheKey(String namespaceCode,
                                                         String permissionTemplateName)

getPermissionImplByNameCacheKey

protected String getPermissionImplByNameCacheKey(String namespaceCode,
                                                 String permissionName)

getPermissionImplByIdCacheKey

protected String getPermissionImplByIdCacheKey(String permissionId)

getNewAttributeDataId

protected String getNewAttributeDataId()

getSequenceAccessorService

protected SequenceAccessorService getSequenceAccessorService()

getCacheAdministrator

protected RiceCacheAdministrator getCacheAdministrator()


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.