public abstract class CoiDisclosureAuthorizer extends TaskAuthorizerImpl
kcPersonService, kraWorkflowService| Constructor and Description |
|---|
CoiDisclosureAuthorizer() |
| Modifier and Type | Method and Description |
|---|---|
protected CoiDisclosureService |
getCoiDisclosureService() |
protected boolean |
hasPermission(String userId,
CoiDisclosure coiDisclosure,
String permissionName)
Does the given user has the permission for this CoiDisclosure?
|
abstract boolean |
isAuthorized(String userId,
CoiDisclosureTask task)
Is the user authorized to execute the given CoiDisclosure task
|
boolean |
isAuthorized(String userId,
Task task)
Is the user authorized to execute the given task?
|
protected boolean |
isDisclosureEditable(CoiDisclosure coiDisclosure)
This method checks various aspects of the disclosure and its documents to verify that it is indeed editable.
|
protected boolean |
isDocumentViewOnly(CoiDisclosure coiDisclosure) |
protected boolean |
isEditableByAdminReviewer(CoiDisclosure coiDisclosure) |
protected boolean |
isPessimisticLocked(org.kuali.rice.krad.document.Document document) |
void |
setCoiDisclosureService(CoiDisclosureService coiDisclosureService) |
void |
setKraAuthorizationService(KraAuthorizationService kraAuthorizationService)
Set the Kra Authorization Service.
|
getTaskName, hasUnitPermission, hasUnitPermission, setKcPersonService, setKraWorkflowService, setTaskName, setUnitAuthorizationServicepublic final boolean isAuthorized(String userId, Task task)
TaskAuthorizertask - the taskTaskAuthorizer.isAuthorized(java.lang.String, org.kuali.kra.authorization.Task)public abstract boolean isAuthorized(String userId, CoiDisclosureTask task)
userId - the user's unique userIdtask - the coiDisclosure taskpublic void setKraAuthorizationService(KraAuthorizationService kraAuthorizationService)
kraAuthorizationService - protected final boolean hasPermission(String userId, CoiDisclosure coiDisclosure, String permissionName)
userId - the unique userId of the usercoiDisclosure - the coiDisclosurepermissionName - the name of the permissionprotected boolean isPessimisticLocked(org.kuali.rice.krad.document.Document document)
protected CoiDisclosureService getCoiDisclosureService()
public void setCoiDisclosureService(CoiDisclosureService coiDisclosureService)
protected boolean isDisclosureEditable(CoiDisclosure coiDisclosure)
coiDisclosure - protected boolean isEditableByAdminReviewer(CoiDisclosure coiDisclosure)
protected boolean isDocumentViewOnly(CoiDisclosure coiDisclosure)
Copyright © 2013 The Kuali Foundation. All Rights Reserved.