public abstract class ProtocolActionServiceImplBase extends Object implements ProtocolActionService
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
actions |
protected static String |
AMEND |
protected org.kuali.rice.krad.service.BusinessObjectService |
businessObjectService |
protected DroolsRuleHandler |
canPerformRuleHandler |
protected static String |
DEFAULT_ORGANIZATION_UNIT |
protected FollowupActionService<?> |
followupActionService |
protected KraAuthorizationService |
kraAuthorizationService |
protected static String |
MODIFY_ANY_PROTOCOL |
protected static String |
NONE |
protected static String |
RENEW |
protected List<DroolsRuleHandler> |
rulesList |
protected UnitAuthorizationService |
unitAuthorizationService |
| Constructor and Description |
|---|
ProtocolActionServiceImplBase() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPerformAction(String actionTypeCode,
ProtocolBase protocol)
This method is to check whether 'actionTypeCode' can be performed based on protocol's status code or submission code or other
condition specified in rule.
|
protected abstract String[] |
getActionCodesArrayHook() |
List<String> |
getActionsAllowed(ProtocolBase protocol)
This method is to get a list of protocol actions that can be performed based on
this protocol's status or submission status and user's permission
|
DroolsRuleHandler |
getCanPerformRuleHandler()
Compile rules if rulehandler is not set.
|
protected abstract org.apache.commons.logging.Log |
getLOGHook() |
protected abstract ProtocolActionMappingBase |
getNewProtocolActionMappingInstanceHook(String actionTypeCode,
String submissionStatusCode,
String submissionTypeCode,
String protocolReviewTypeCode,
String protocolStatusCode,
String scheduleId,
Integer submissionNumber) |
protected abstract ProtocolActionUpdateMapping |
getNewProtocolActionUpdateMappingHook(String protocolActionTypeCode,
String submissionTypeCode,
String protocolStatusCode,
String specialCondition) |
protected abstract String |
getPerformActionFileNameHook() |
protected abstract int |
getPerformActionRuleIndexHook() |
protected abstract int |
getUpdateRuleIndexHook() |
protected String |
getUserIdentifier() |
protected abstract boolean |
hasPermissionLeadUnit(String actionTypeCode,
ProtocolBase protocol,
ActionRightMapping rightMapper) |
protected abstract boolean |
hasPermissionToSubmit(String actionTypeCode,
ProtocolBase protocol,
ActionRightMapping rightMapper) |
boolean |
isActionAllowed(String actionTypeCode,
ProtocolBase protocol)
This method is to check if this protocol action can be performed based on protocol status or submission status
and also check if the user is authorized to perform this action.
|
boolean |
isActionOpenForFollowup(String protocolActionTypeCode,
ProtocolBase protocol)
Determines whether the given action in the protocol should be opened, based on whether it is a followup action.
|
boolean |
isProtocolPersonnel(ProtocolBase protocol)
Determines whether the logged in user is ProtocolBase Personnel
|
protected void |
loadRules(List<String> ruleFiles) |
abstract void |
resetProtocolStatus(ProtocolActionBase protocolActionBo,
ProtocolBase protocol)
This method is to undo the protocol status or submission status update.
|
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService) |
void |
setFollowupActionService(FollowupActionService<?> followupActionService) |
void |
setKraAuthorizationService(KraAuthorizationService kraAuthorizationService) |
void |
setProtocolDao(ProtocolDao<? extends ProtocolBase> protocolDao) |
void |
setRuleFiles(List<String> ruleFiles)
This method sets the rule file.
|
void |
setUnitAuthorizationService(UnitAuthorizationService unitAuthorizationService) |
void |
updateProtocolStatus(ProtocolActionBase protocolActionBo,
ProtocolBase protocol)
This method is to update protocol status or submission status after the action is submitted.
|
protected static final String MODIFY_ANY_PROTOCOL
protected static final String DEFAULT_ORGANIZATION_UNIT
protected static final String AMEND
protected static final String RENEW
protected static final String NONE
protected org.kuali.rice.krad.service.BusinessObjectService businessObjectService
protected KraAuthorizationService kraAuthorizationService
protected UnitAuthorizationService unitAuthorizationService
protected FollowupActionService<?> followupActionService
protected DroolsRuleHandler canPerformRuleHandler
protected List<DroolsRuleHandler> rulesList
protected abstract String[] getActionCodesArrayHook()
public void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
public void setKraAuthorizationService(KraAuthorizationService kraAuthorizationService)
public void setUnitAuthorizationService(UnitAuthorizationService unitAuthorizationService)
public void setProtocolDao(ProtocolDao<? extends ProtocolBase> protocolDao)
public void setFollowupActionService(FollowupActionService<?> followupActionService)
public boolean isActionAllowed(String actionTypeCode, ProtocolBase protocol)
ProtocolActionServiceisActionAllowed in interface ProtocolActionServiceProtocolActionService.isActionAllowed(java.lang.String, org.kuali.kra.protocol.ProtocolBase)public List<String> getActionsAllowed(ProtocolBase protocol)
ProtocolActionServicegetActionsAllowed in interface ProtocolActionServiceProtocolActionService.getActionsAllowed(org.kuali.kra.protocol.ProtocolBase)protected abstract boolean hasPermissionLeadUnit(String actionTypeCode, ProtocolBase protocol, ActionRightMapping rightMapper)
protected abstract boolean hasPermissionToSubmit(String actionTypeCode, ProtocolBase protocol, ActionRightMapping rightMapper)
public boolean isProtocolPersonnel(ProtocolBase protocol)
ProtocolActionServiceisProtocolPersonnel in interface ProtocolActionServiceprotocol - The ProtocolBaseprotected String getUserIdentifier()
public boolean canPerformAction(String actionTypeCode, ProtocolBase protocol)
protected abstract org.apache.commons.logging.Log getLOGHook()
protected abstract int getPerformActionRuleIndexHook()
protected abstract ProtocolActionMappingBase getNewProtocolActionMappingInstanceHook(String actionTypeCode, String submissionStatusCode, String submissionTypeCode, String protocolReviewTypeCode, String protocolStatusCode, String scheduleId, Integer submissionNumber)
public void updateProtocolStatus(ProtocolActionBase protocolActionBo, ProtocolBase protocol)
ProtocolActionServiceprotected abstract ProtocolActionUpdateMapping getNewProtocolActionUpdateMappingHook(String protocolActionTypeCode, String submissionTypeCode, String protocolStatusCode, String specialCondition)
protected abstract int getUpdateRuleIndexHook()
public abstract void resetProtocolStatus(ProtocolActionBase protocolActionBo, ProtocolBase protocol)
ProtocolActionServiceresetProtocolStatus in interface ProtocolActionServicepublic boolean isActionOpenForFollowup(String protocolActionTypeCode, ProtocolBase protocol)
isActionOpenForFollowup in interface ProtocolActionServiceprotocolActionTypeCode - The code for the protocol actionprotocol - The ProtocolBaseorg.kuali.kra.protocol.actions.ProtocolActionFollowupService#isActionOpenForFollowup(java.lang.String, org.kuali.kra.protocol.ProtocolBase)public DroolsRuleHandler getCanPerformRuleHandler()
protected abstract String getPerformActionFileNameHook()
public void setRuleFiles(List<String> ruleFiles) throws IOException
ruleFiles - IOExceptionCopyright © 2013 The Kuali Foundation. All Rights Reserved.