@AccessLevel(value=EXTERNAL) public interface CaseUserRoleDAO extends curam.util.persistence.ReaderDAO<java.lang.Long,CaseUserRole>
curam.core.intf.CaseUserRole
entity.Modifier and Type | Method and Description |
---|---|
java.util.List<CaseUserRole> |
listActiveByCase(CaseHeader caseHeader)
Retrieves an immutable list of active
CaseUserRole records for a
case. |
java.util.List<CaseUserRole> |
listActiveByUser(User user)
Retrieves an immutable list of active
CaseUserRole records for a
user. |
java.util.List<CaseUserRole> |
listByCase(CaseHeader caseHeader)
Retrieves an immutable list of all
CaseUserRole records for a case. |
java.util.List<User> |
listDistinctUsersWithActiveRoleOnCase(CaseHeader caseHeader)
Returns an immutable list of
User records, of all the users who
have at least one active case user role on the given case. |
CaseUserRole |
readByUserCaseAndType(User user,
CaseHeader caseHeader,
curam.codetable.impl.CASEUSERROLETYPEEntry type)
Returns a
CaseUserRole record for the specified username, or null
if one is not found. |
java.util.List<User> listDistinctUsersWithActiveRoleOnCase(CaseHeader caseHeader) throws curam.util.exception.InformationalException, curam.util.exception.AppException
User
records, of all the users who
have at least one active case user role on the given case.caseHeader
- object instance of the case header we are searching for roles on.curam.util.exception.AppException
- Generic Exception Signaturecuram.util.exception.InformationalException
- Generic Exception SignatureCaseUserRole readByUserCaseAndType(User user, CaseHeader caseHeader, curam.codetable.impl.CASEUSERROLETYPEEntry type) throws curam.util.exception.AppException, curam.util.exception.InformationalException
CaseUserRole
record for the specified username, or null
if one is not found.user
- the user to use in the read.caseHeader
- case header instance to search on.type
- code for the type of case user role.CaseUserRole
record, or null
if one is not found.curam.util.exception.InformationalException
- Generic Exception Signaturecuram.util.exception.AppException
- Generic Exception Signaturejava.util.List<CaseUserRole> listActiveByUser(User user)
CaseUserRole
records for a
user. This can be used to list all the roles that a user has on cases.user
- The user to use in the search.java.util.List<CaseUserRole> listActiveByCase(CaseHeader caseHeader)
CaseUserRole
records for a
case. This can be used to list all the active roles on a case.caseHeader
- The caseHeader to use in the search.java.util.List<CaseUserRole> listByCase(CaseHeader caseHeader)
CaseUserRole
records for a case.
This can be used to list all the roles on a case.caseHeader
- The caseHeader to use in the search.