@AccessLevel(value=EXTERNAL) public interface OutcomePlanActionDAO extends curam.piwrapper.outcomeplan.impl.OutcomePlanActivityBaseDAO<OutcomePlanAction>, curam.util.persistence.CreatorDAO<java.lang.Long,OutcomePlanAction>
OutcomePlanAction
Modifier and Type | Method and Description |
---|---|
java.util.List<OutcomePlanAction> |
listActiveByNamePredefinedActionAndDateRange(OutcomePlanAction outcomePlanAction)
Returns a list of all active
OutcomePlanAction which have the same
name or predefined OutcomePlanActionAdmin , and have a date range
which overlaps with the given OutcomePlanAction . |
java.util.List<OutcomePlanAction> |
listActiveByNamePredefinedActionConcernRoleAndDateRange(OutcomePlanAction outcomePlanAction,
curam.participant.impl.ConcernRole concernRole)
Returns a list of all active
OutcomePlanAction which have the same
name or predefined OutcomePlanActionAdmin , are linked to the given
ConcernRole and have a date range which overlaps with the given
OutcomePlanAction . |
java.util.List<OutcomePlanAction> |
listActiveByOutcomePlan(OutcomePlan outcomePlan)
Returns a list of all active OutcomePlanAction based on the
given
OutcomePlan . |
java.util.List<OutcomePlanAction> |
listActiveByOwnerAndOutcomePlan(curam.piwrapper.user.impl.User owner,
OutcomePlan outcomePlan)
|
java.util.List<OutcomePlanAction> |
listActiveByResponsibilityAndOutcomePlan(curam.outcomeplanning.codetable.impl.OPACTIONRESPONSABILITYRELATEDTYPEEntry responsibilityRelatedType,
java.lang.String responsibilityRelatedID,
OutcomePlan outcomePlan)
Returns a list of all active OutcomePlanAction based on the
given
OPACTIONRESPONSABILITYRELATEDTYPEEntry , related ID and
OutcomePlan . |
java.util.List<OutcomePlanAction> |
listOpenByRelationshipRelatedIDAndType(java.lang.String responsibilityRelatedID,
curam.outcomeplanning.codetable.impl.OPACTIONRESPONSABILITYRELATEDTYPEEntry responsibilityRelatedType)
Returns a list of all open
OutcomePlanAction for a given
responsibility relatedID and relatedType. |
java.util.List<OutcomePlanAction> |
searchByCaseAndDateRange(long outcomePlanID,
curam.util.type.Date startDate,
curam.util.type.Date endDate)
Searches for
OutcomePlanActions by an outcome
plan case id and with following date logic:1. action start date is before the start date and action end date is null. |
java.util.List<OutcomePlanAction> |
searchByStatusAndDate(curam.outcomeplanning.codetable.impl.OPACTIONSTATUSEntry status,
curam.util.type.Date date)
Searches for
OutcomePlanActions by status that
have a start date before the date supplied and have an end after the date
supplied or have no end date specified. |
void |
startEffectiveActions(curam.util.type.Date effectiveDate)
Updates the status of actions to
OPACTIONSTATUSEntry.INPROGRESS
where the action status is OPACTIONSTATUSEntry.NOTSTARTED and the
start date is before the date supplied and there is either no end date or
an end date that is after the date supplied. |
java.util.List<OutcomePlanAction> listActiveByOutcomePlan(OutcomePlan outcomePlan)
OutcomePlan
.outcomePlan
- The outcome plan to search byjava.util.List<OutcomePlanAction> listActiveByOwnerAndOutcomePlan(curam.piwrapper.user.impl.User owner, OutcomePlan outcomePlan)
owner
- The owner to search byoutcomePlan
- The outcome plan to search byjava.util.List<OutcomePlanAction> listActiveByResponsibilityAndOutcomePlan(curam.outcomeplanning.codetable.impl.OPACTIONRESPONSABILITYRELATEDTYPEEntry responsibilityRelatedType, java.lang.String responsibilityRelatedID, OutcomePlan outcomePlan)
OPACTIONRESPONSABILITYRELATEDTYPEEntry
, related ID and
OutcomePlan
.responsibilityRelatedType
- The type of responsibility to search byresponsibilityRelatedID
- The unique identifier of the person who is responsible to search
byoutcomePlan
- The outcome plan to search byjava.util.List<OutcomePlanAction> listActiveByNamePredefinedActionAndDateRange(OutcomePlanAction outcomePlanAction)
OutcomePlanAction
which have the same
name or predefined OutcomePlanActionAdmin
, and have a date range
which overlaps with the given OutcomePlanAction
.outcomePlanAction
- The action to search byjava.util.List<OutcomePlanAction> listActiveByNamePredefinedActionConcernRoleAndDateRange(OutcomePlanAction outcomePlanAction, curam.participant.impl.ConcernRole concernRole)
OutcomePlanAction
which have the same
name or predefined OutcomePlanActionAdmin
, are linked to the given
ConcernRole
and have a date range which overlaps with the given
OutcomePlanAction
.outcomePlanAction
- The action to search byconcernRole
- The concern role to search by.java.util.List<OutcomePlanAction> listOpenByRelationshipRelatedIDAndType(java.lang.String responsibilityRelatedID, curam.outcomeplanning.codetable.impl.OPACTIONRESPONSABILITYRELATEDTYPEEntry responsibilityRelatedType)
OutcomePlanAction
for a given
responsibility relatedID and relatedType. Open is defined in this instance
as having a status of 'Not Started' and 'In Progress'.responsibilityRelatedType
- The type of responsibility to search by.responsibilityRelatedID
- The unique identifier of the person who is responsible to search
by.OutcomePlanAction
for a given
responsibility relatedID and relatedType. Open is defined in this
instance as having a status of 'Not Started' and 'In Progress'.java.util.List<OutcomePlanAction> searchByStatusAndDate(curam.outcomeplanning.codetable.impl.OPACTIONSTATUSEntry status, curam.util.type.Date date)
OutcomePlanActions
by status that
have a start date before the date supplied and have an end after the date
supplied or have no end date specified.status
- The status to use in the search.date
- The date to use as part of the search.void startEffectiveActions(curam.util.type.Date effectiveDate) throws curam.util.exception.AppException, curam.util.exception.InformationalException
OPACTIONSTATUSEntry.INPROGRESS
where the action status is OPACTIONSTATUSEntry.NOTSTARTED
and the
start date is before the date supplied and there is either no end date or
an end date that is after the date supplied. This is intended for use by
batch only.effectiveDate
- The effective date to usecuram.util.exception.AppException
- Generic Exception Signaturecuram.util.exception.InformationalException
- Generic Exception Signaturejava.util.List<OutcomePlanAction> searchByCaseAndDateRange(long outcomePlanID, curam.util.type.Date startDate, curam.util.type.Date endDate)
OutcomePlanActions
by an outcome
plan case id and with following date logic:outcomePlanID
- The outcome plan id to use in the search.startDate
- The start date to use as part of the search.endDate
- The end date to use as part of the search.