|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.service.impl.DataObjectAuthorizationServiceImpl
public class DataObjectAuthorizationServiceImpl
Implementation of DataObjectAuthorizationService
that uses the
configured AttributeSecurity
for a field to determine authorization
checks that need to be performed
Constructor Summary | |
---|---|
DataObjectAuthorizationServiceImpl()
|
Method Summary | |
---|---|
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 DocumentHelperService |
getDocumentHelperService()
|
void |
setDataDictionaryService(DataDictionaryService dataDictionaryService)
|
void |
setDocumentHelperService(DocumentHelperService documentHelperService)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataObjectAuthorizationServiceImpl()
Method Detail |
---|
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 class
attributeValueNeedsToBeEncryptedOnFormsAndLinks(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 action
canCreate(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 action
canMaintain(java.lang.Object, org.kuali.rice.kim.api.identity.Person, java.lang.String)
protected DataDictionaryService getDataDictionaryService()
public void setDataDictionaryService(DataDictionaryService dataDictionaryService)
protected DocumentHelperService getDocumentHelperService()
public void setDocumentHelperService(DocumentHelperService documentHelperService)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |