@AccessLevel(value=EXTERNAL) @Implementable public abstract class ContextCaseHandler extends java.lang.Object implements IContextCaseHandler, curam.contextviewer.configuration.casehandler.impl.IContextCaseHandlerProvider
Constructor and Description |
---|
ContextCaseHandler()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkCaseParticipantRole(java.lang.String caseParticipantRole)
This method checks if the CCV client has an acceptable case participant
role on the case in question.
|
boolean |
checkCaseStatus(java.lang.String caseStatus)
This method checks if the case in question is of an acceptable status,
based on the status configurations for that case type.
|
boolean |
checkType(java.lang.String caseID)
This method checks if the case in question is of an acceptable type, based
on the configurations for that case type.
|
boolean |
displayCase(java.lang.String caseStatus,
java.lang.String caseID,
java.lang.String caseParticipantRole)
Parent method called by CCV to determine if a case is eligible for display.
|
abstract java.lang.String |
getCaseName(java.lang.String caseID)
Retrieves the case name for a given case type / case.
|
IContextCaseHandler |
getInstance() |
abstract java.lang.String |
getShowAllCaseParticipantRoles()
Retrieves a configuration property that denotes if cases where the claimant
is of any case participant role is to be displayed.
|
protected abstract java.lang.String |
getShowAllStatuses()
Retrieves a configuration property that denotes if cases of all statuses
are to be displayed in the CCV, for a given case type.
|
protected abstract java.lang.String |
getShowAllTypes()
Retrieves a configuration property that denotes if cases of all' types' are
to be displayed in the CCV, for a given case type.
|
protected abstract java.util.ArrayList<java.lang.String> |
listAcceptableCaseParticipantRoles()
Retrieves a list of acceptable case participant roles for a given case
type.
|
protected abstract java.util.ArrayList<java.lang.String> |
listAcceptableCaseStatuses()
This method retrieves a list of the acceptable case statuses for a given
case type.
|
protected abstract java.util.ArrayList<java.lang.String> |
listAcceptableTypes()
This method retrieves a list of the acceptable 'case types' for a given
case type.
|
protected abstract java.lang.String |
readType(java.lang.String caseID)
Reads a 'case type' for a given case type.
|
public boolean displayCase(java.lang.String caseStatus, java.lang.String caseID, java.lang.String caseParticipantRole) throws curam.util.exception.AppException, curam.util.exception.InformationalException
displayCase
in interface IContextCaseHandler
caseStatus
- The status of the casecaseID
- The ID of the casecaseParticipantRole
- The case participant rolecuram.util.exception.AppException
curam.util.exception.InformationalException
public boolean checkCaseStatus(java.lang.String caseStatus)
checkCaseStatus
in interface IContextCaseHandler
caseStatus
- The status of the casepublic boolean checkType(java.lang.String caseID) throws curam.util.exception.AppException, curam.util.exception.InformationalException
checkType
in interface IContextCaseHandler
caseID
- The ID of the casecuram.util.exception.AppException
curam.util.exception.InformationalException
public boolean checkCaseParticipantRole(java.lang.String caseParticipantRole)
checkCaseParticipantRole
in interface IContextCaseHandler
caseParticipantRole
- CCV clients case participant roleprotected abstract java.util.ArrayList<java.lang.String> listAcceptableCaseStatuses()
protected abstract java.util.ArrayList<java.lang.String> listAcceptableTypes()
protected abstract java.lang.String getShowAllStatuses()
protected abstract java.lang.String getShowAllTypes()
protected abstract java.lang.String readType(java.lang.String caseID) throws curam.util.exception.AppException, curam.util.exception.InformationalException
caseID
- the case to read the type forcuram.util.exception.AppException
curam.util.exception.InformationalException
public abstract java.lang.String getCaseName(java.lang.String caseID) throws curam.util.exception.AppException, curam.util.exception.InformationalException
getCaseName
in interface IContextCaseHandler
caseID
- The case IDcuram.util.exception.AppException
curam.util.exception.InformationalException
public abstract java.lang.String getShowAllCaseParticipantRoles()
getShowAllCaseParticipantRoles
in interface IContextCaseHandler
protected abstract java.util.ArrayList<java.lang.String> listAcceptableCaseParticipantRoles()
public IContextCaseHandler getInstance()
getInstance
in interface curam.contextviewer.configuration.casehandler.impl.IContextCaseHandlerProvider