|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.bo.authorization.BusinessObjectAuthorizerBase
public class BusinessObjectAuthorizerBase
Constructor Summary | |
---|---|
BusinessObjectAuthorizerBase()
|
Method Summary | |
---|---|
protected void |
addPermissionDetails(Object primaryDataObjectOrDocument,
Map<String,String> attributes)
Override this method to populate the permission details from the primary business object or document. |
protected void |
addRoleQualification(Object primaryDataObjectOrDocument,
Map<String,String> attributes)
Override this method to populate the role qualifier attributes from the primary business object or document. |
Map<String,String> |
getCollectionItemPermissionDetails(BusinessObject collectionItemBusinessObject)
|
Map<String,String> |
getCollectionItemRoleQualifications(BusinessObject collectionItemBusinessObject)
|
protected static DataDictionaryService |
getDataDictionaryService()
|
protected static KualiModuleService |
getKualiModuleService()
|
protected Map<String,String> |
getPermissionDetailValues(Object dataObject)
Returns a permission details map based off data from the primary business object or the document. |
protected static PermissionService |
getPermissionService()
|
protected static PersonService |
getPersonService()
|
protected Map<String,String> |
getRoleQualification(BusinessObject primaryBusinessObjectOrDocument)
Returns a role qualification map based off data from the primary business object or the document. |
protected Map<String,String> |
getRoleQualification(Object primaryDataObjectOrDocument,
String principalId)
|
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)
|
boolean |
isAuthorizedByTemplate(Object dataObject,
String namespaceCode,
String permissionTemplateName,
String principalId,
Map<String,String> collectionOrFieldLevelPermissionDetails,
Map<String,String> collectionOrFieldLevelRoleQualification)
|
protected boolean |
permissionExistsByTemplate(BusinessObject businessObject,
String namespaceCode,
String permissionTemplateName)
|
protected boolean |
permissionExistsByTemplate(BusinessObject businessObject,
String namespaceCode,
String permissionTemplateName,
Map<String,String> permissionDetails)
|
protected boolean |
permissionExistsByTemplate(String namespaceCode,
String permissionTemplateName,
Map<String,String> permissionDetails)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BusinessObjectAuthorizerBase()
Method Detail |
---|
protected void addRoleQualification(Object primaryDataObjectOrDocument, Map<String,String> attributes)
primaryBusinessObjectOrDocument
- the primary business object (i.e. the main BO instance behind
the lookup result row or inquiry) or the documentattributes
- role qualifiers will be added to this mapprotected void addPermissionDetails(Object primaryDataObjectOrDocument, Map<String,String> attributes)
primaryBusinessObjectOrDocument
- the primary business object (i.e. the main BO instance behind
the lookup result row or inquiry) or the documentattributes
- permission details will be added to this mapprotected final boolean permissionExistsByTemplate(BusinessObject businessObject, String namespaceCode, String permissionTemplateName)
protected final boolean permissionExistsByTemplate(String namespaceCode, String permissionTemplateName, Map<String,String> permissionDetails)
protected final boolean permissionExistsByTemplate(BusinessObject businessObject, String namespaceCode, String permissionTemplateName, Map<String,String> permissionDetails)
public final boolean isAuthorized(BusinessObject businessObject, String namespaceCode, String permissionName, String principalId)
isAuthorized
in interface BusinessObjectAuthorizer
public final boolean isAuthorizedByTemplate(BusinessObject dataObject, String namespaceCode, String permissionTemplateName, String principalId)
isAuthorizedByTemplate
in interface BusinessObjectAuthorizer
public final boolean isAuthorized(BusinessObject businessObject, String namespaceCode, String permissionName, String principalId, Map<String,String> collectionOrFieldLevelPermissionDetails, Map<String,String> collectionOrFieldLevelRoleQualification)
isAuthorized
in interface BusinessObjectAuthorizer
public final boolean isAuthorizedByTemplate(Object dataObject, String namespaceCode, String permissionTemplateName, String principalId, Map<String,String> collectionOrFieldLevelPermissionDetails, Map<String,String> collectionOrFieldLevelRoleQualification)
isAuthorizedByTemplate
in interface BusinessObjectAuthorizer
protected final Map<String,String> getRoleQualification(BusinessObject primaryBusinessObjectOrDocument)
primaryBusinessObjectOrDocument
- the primary business object (i.e. the main BO instance behind
the lookup result row or inquiry) or the document
protected final Map<String,String> getRoleQualification(Object primaryDataObjectOrDocument, String principalId)
public Map<String,String> getCollectionItemPermissionDetails(BusinessObject collectionItemBusinessObject)
getCollectionItemPermissionDetails
in interface BusinessObjectAuthorizer
BusinessObjectAuthorizer.getCollectionItemPermissionDetails(org.kuali.rice.krad.bo.BusinessObject)
public Map<String,String> getCollectionItemRoleQualifications(BusinessObject collectionItemBusinessObject)
getCollectionItemRoleQualifications
in interface BusinessObjectAuthorizer
BusinessObjectAuthorizer.getCollectionItemRoleQualifications(org.kuali.rice.krad.bo.BusinessObject)
protected final Map<String,String> getPermissionDetailValues(Object dataObject)
primaryBusinessObjectOrDocument
- the primary business object (i.e. the main BO instance behind
the lookup result row or inquiry) or the document
protected static final PermissionService getPermissionService()
protected static final PersonService getPersonService()
protected static final KualiModuleService getKualiModuleService()
protected static final DataDictionaryService getDataDictionaryService()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |