public abstract class NarrativeAuthorizer extends TaskAuthorizerImpl
kcPersonService, kraWorkflowService| Constructor and Description |
|---|
NarrativeAuthorizer() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
hasNarrativeRight(String userId,
Narrative narrative,
NarrativeRight narrativeRight)
Does the user have the given narrative right for the given narrative?
|
protected boolean |
hasProposalPermission(String userId,
ProposalDevelopmentDocument doc,
String permissionName)
Does the given user has the permission for this proposal development document?
|
abstract boolean |
isAuthorized(String userId,
NarrativeTask task) |
boolean |
isAuthorized(String userId,
Task task)
Is the user authorized to execute the given task?
|
boolean |
isRequiresWritableDoc() |
void |
setKraAuthorizationService(KraAuthorizationService kraAuthorizationService)
Set the Kra Authorization Service.
|
void |
setRequiresWritableDoc(boolean requiresWritableDoc) |
getTaskName, hasUnitPermission, hasUnitPermission, setKcPersonService, setKraWorkflowService, setTaskName, setUnitAuthorizationServicepublic boolean isAuthorized(String userId, Task task)
TaskAuthorizertask - the taskpublic abstract boolean isAuthorized(String userId, NarrativeTask task)
public final void setKraAuthorizationService(KraAuthorizationService kraAuthorizationService)
kraAuthorizationService - the Kra Authorization Serviceprotected final boolean hasProposalPermission(String userId, ProposalDevelopmentDocument doc, String permissionName)
username - the unique username of the userdoc - the proposal development documentpermissionName - the name of the permissionprotected final boolean hasNarrativeRight(String userId, Narrative narrative, NarrativeRight narrativeRight)
username - the username of the usernarrative - the narrativenarrativeRight - the narrative right we are looking forpublic boolean isRequiresWritableDoc()
public void setRequiresWritableDoc(boolean requiresWritableDoc)
Copyright © 2013 The Kuali Foundation. All Rights Reserved.