org.kuali.rice.kns.bo.authorization
Class BusinessObjectAuthorizerBase
java.lang.Object
org.kuali.rice.krad.bo.DataObjectAuthorizerBase
org.kuali.rice.kns.bo.authorization.BusinessObjectAuthorizerBase
- All Implemented Interfaces:
- Serializable, BusinessObjectAuthorizer, DataObjectAuthorizer
- Direct Known Subclasses:
- DocumentAuthorizerBase, InquiryAuthorizerBase
public class BusinessObjectAuthorizerBase
- extends DataObjectAuthorizerBase
- implements BusinessObjectAuthorizer
- See Also:
- Serialized Form
Method Summary |
Map<String,String> |
getCollectionItemPermissionDetails(BusinessObject collectionItemBusinessObject)
|
Map<String,String> |
getCollectionItemRoleQualifications(BusinessObject collectionItemBusinessObject)
|
protected static DataDictionaryService |
getDataDictionaryService()
|
protected static KualiModuleService |
getKualiModuleService()
|
protected Map<String,String> |
getRoleQualification(BusinessObject primaryBusinessObjectOrDocument)
Returns a role qualification map based off data from the primary business
object or the document. |
boolean |
isAuthorized(BusinessObject businessObject,
String namespaceCode,
String permissionName,
String principalId)
|
boolean |
isAuthorized(BusinessObject businessObject,
String namespaceCode,
String permissionName,
String principalId,
Map<String,String> collectionOrFieldLevelPermissionDetails,
Map<String,String> collectionOrFieldLevelRoleQualification)
|
boolean |
isAuthorizedByTemplate(BusinessObject dataObject,
String namespaceCode,
String permissionTemplateName,
String principalId)
|
protected boolean |
permissionExistsByTemplate(BusinessObject businessObject,
String namespaceCode,
String permissionTemplateName)
|
protected boolean |
permissionExistsByTemplate(BusinessObject businessObject,
String namespaceCode,
String permissionTemplateName,
Map<String,String> permissionDetails)
|
Methods inherited from class org.kuali.rice.krad.bo.DataObjectAuthorizerBase |
addPermissionDetails, addRoleQualification, getPermissionDetailValues, getPermissionService, getPersonService, getRoleQualification, isAuthorized, isAuthorized, isAuthorizedByTemplate, isAuthorizedByTemplate, permissionExistsByTemplate, permissionExistsByTemplate, permissionExistsByTemplate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BusinessObjectAuthorizerBase
public BusinessObjectAuthorizerBase()
permissionExistsByTemplate
protected final boolean permissionExistsByTemplate(BusinessObject businessObject,
String namespaceCode,
String permissionTemplateName)
permissionExistsByTemplate
protected final boolean permissionExistsByTemplate(BusinessObject businessObject,
String namespaceCode,
String permissionTemplateName,
Map<String,String> permissionDetails)
isAuthorized
public final boolean isAuthorized(BusinessObject businessObject,
String namespaceCode,
String permissionName,
String principalId)
- Specified by:
isAuthorized
in interface BusinessObjectAuthorizer
isAuthorizedByTemplate
public final boolean isAuthorizedByTemplate(BusinessObject dataObject,
String namespaceCode,
String permissionTemplateName,
String principalId)
- Specified by:
isAuthorizedByTemplate
in interface BusinessObjectAuthorizer
isAuthorized
public final boolean isAuthorized(BusinessObject businessObject,
String namespaceCode,
String permissionName,
String principalId,
Map<String,String> collectionOrFieldLevelPermissionDetails,
Map<String,String> collectionOrFieldLevelRoleQualification)
- Specified by:
isAuthorized
in interface BusinessObjectAuthorizer
getRoleQualification
protected final Map<String,String> getRoleQualification(BusinessObject primaryBusinessObjectOrDocument)
- Returns a role qualification map based off data from the primary business
object or the document. DO NOT MODIFY THE MAP RETURNED BY THIS METHOD
- Parameters:
primaryBusinessObjectOrDocument
- the primary business object (i.e. the main BO instance behind
the lookup result row or inquiry) or the document
- Returns:
- a Map containing role qualifications
getCollectionItemPermissionDetails
public Map<String,String> getCollectionItemPermissionDetails(BusinessObject collectionItemBusinessObject)
- Specified by:
getCollectionItemPermissionDetails
in interface BusinessObjectAuthorizer
- See Also:
BusinessObjectAuthorizer.getCollectionItemPermissionDetails(org.kuali.rice.krad.bo.BusinessObject)
getCollectionItemRoleQualifications
public Map<String,String> getCollectionItemRoleQualifications(BusinessObject collectionItemBusinessObject)
- Specified by:
getCollectionItemRoleQualifications
in interface BusinessObjectAuthorizer
- See Also:
BusinessObjectAuthorizer.getCollectionItemRoleQualifications(org.kuali.rice.krad.bo.BusinessObject)
getKualiModuleService
protected static KualiModuleService getKualiModuleService()
getDataDictionaryService
protected static DataDictionaryService getDataDictionaryService()
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.