public class DataObjectAuthorizationServiceImpl extends Object implements DataObjectAuthorizationService
DataObjectAuthorizationService
that uses the
configured AttributeSecurity
for a field to determine authorization
checks that need to be performedConstructor and Description |
---|
DataObjectAuthorizationServiceImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
attributeValueNeedsToBeEncryptedOnFormsAndLinks(Class<?> dataObjectClass,
String attributeName)
Indicates whether the given attribute of the given data object class has any
security defined (such as read-only, masked, ...) and therefore data for the
attribute should be securely passed
|
boolean |
canCreate(Class<?> dataObjectClass,
Person user,
String docTypeName)
Indicates whether the given user has permission to create records of the given data
object class with the given document type
|
boolean |
canMaintain(Object dataObject,
Person user,
String docTypeName)
Indicates whether the given user has permission to maintain (edit/delete) the
give data object instance with the given document type
|
protected DataDictionaryService |
getDataDictionaryService() |
protected DocumentDictionaryService |
getDocumentDictionaryService() |
void |
setDataDictionaryService(DataDictionaryService dataDictionaryService) |
void |
setDocumentDictionaryService(DocumentDictionaryService documentDictionaryService) |
public DataObjectAuthorizationServiceImpl()
public boolean attributeValueNeedsToBeEncryptedOnFormsAndLinks(Class<?> dataObjectClass, String attributeName)
DataObjectAuthorizationService
attributeValueNeedsToBeEncryptedOnFormsAndLinks
in interface DataObjectAuthorizationService
dataObjectClass
- - class that contains the attributeattributeName
- - name of the attribute (property) within the classattributeValueNeedsToBeEncryptedOnFormsAndLinks(java.lang.Class<?>, java.lang.String)
public boolean canCreate(Class<?> dataObjectClass, Person user, String docTypeName)
DataObjectAuthorizationService
canCreate
in interface DataObjectAuthorizationService
dataObjectClass
- - class of data object to check authorization foruser
- - person requesting actiondocTypeName
- - name of the document type that provides the actioncanCreate(java.lang.Class<?>, org.kuali.rice.kim.api.identity.Person, java.lang.String)
public boolean canMaintain(Object dataObject, Person user, String docTypeName)
DataObjectAuthorizationService
canMaintain
in interface DataObjectAuthorizationService
dataObject
- - data object instance to check authorization foruser
- - person requesting actiondocTypeName
- - name of the document type that provides the actioncanMaintain(java.lang.Object, org.kuali.rice.kim.api.identity.Person, java.lang.String)
protected DataDictionaryService getDataDictionaryService()
public void setDataDictionaryService(DataDictionaryService dataDictionaryService)
protected DocumentDictionaryService getDocumentDictionaryService()
public void setDocumentDictionaryService(DocumentDictionaryService documentDictionaryService)
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.