public class LprServiceImpl extends Object implements LprService
Constructor and Description |
---|
LprServiceImpl() |
Modifier and Type | Method and Description |
---|---|
LprInfo |
createLpr(String personId,
String luiId,
String lprTypeKey,
LprInfo lprInfo,
ContextInfo context)
Creates relation between the specified Person and LUI
|
List<BulkStatusInfo> |
createLprsForLui(String luiId,
String lprTypeKey,
List<LprInfo> lprInfos,
ContextInfo contextInfo)
Creates multiple LPRs for one specified LUI.
|
List<BulkStatusInfo> |
createLprsForPerson(String personId,
String lprTypeKey,
List<LprInfo> lprInfos,
ContextInfo contextInfo)
Creates multiple LPRs for one specified person.
|
LprTransactionInfo |
createLprTransaction(String lprTransactionType,
LprTransactionInfo lprTransactionInfo,
ContextInfo context)
This method creates a LPR transaction of the specified type
Validates the transaction generates a unique id for the request and
persists it in the back-end.
|
LprTransactionInfo |
createLprTransactionFromExisting(String lprTransactionId,
ContextInfo context)
Creates a new Lpr Transaction from an existing LPR transaction
Copies the transaction's Items as well.
|
StatusInfo |
deleteLpr(String lprId,
ContextInfo context)
Deletes relation between the specified Person and LUI
|
StatusInfo |
deleteLprTransaction(String lprTransactionId,
ContextInfo context)
Deletes an lpr Transaction based on Id.
|
LprInfo |
getLpr(String lprId,
ContextInfo context)
Retrieves the Relation for the specified LUI Person Relation id
|
LprDao |
getLprDao() |
List<LprInfo> |
getLprsByIds(List<String> luiPersonRelationIds,
ContextInfo context)
Retrieves the Relation for the specified list of LUI Person Relation Ids
|
List<LprInfo> |
getLprsByLui(String luiId,
ContextInfo context)
Retrieves LUI Person Relation for a specified LUI
Example Use Case: Can be used to get all the people and their relationships to a particular
course offering.
|
List<LprInfo> |
getLprsByLuiAndType(String luiId,
String lprTypeKey,
ContextInfo context)
Retrieves LUI Person Relation for a particular type and specified LUI
Example: Can be used to get all the people with a particular relationship to a
specified course offering.
|
List<LprInfo> |
getLprsByLuis(List<String> luiIds,
ContextInfo contextInfo)
Retrieves LUI Person Relations for a list of Lui ids
Example Use Case: Can be used to get all the people and their relationships to a particular
list of course offering's.
|
List<LprInfo> |
getLprsByPerson(String personId,
ContextInfo context)
Retrieves LUI Person Relations for Person
Example Use Case: Can be used to get all the course registrations for a person for as long as
they have been at the school, but please note it could include student registrations
in things that are not courses OR student's acting as teaching assistants
to courses.
|
List<LprInfo> |
getLprsByPersonAndLui(String personId,
String luiId,
ContextInfo context)
Retrieves Person Relation for person and LUI
Example Use Case: Can be used to get course registrations for a person in a particular course.
|
List<LprInfo> |
getLprsByPersonAndLuiType(String personId,
String luiTypeKey,
ContextInfo context)
Gets the LPRs for a person and the type Lui.
|
List<LprInfo> |
getLprsByPersonAndTypeForAtp(String personId,
String atpId,
String typeKey,
ContextInfo context)
Retrieves a list of LPRs for a person and particular ATP by the type of
LPR.
|
List<LprInfo> |
getLprsByPersonForAtp(String personId,
String atpId,
ContextInfo context)
Retrieves a list of LPRs by person and ATP
Example Use Case: Can be used to get a list of registrations or instructor assignments for a person and a term
Note: the ATP is not stored on the LPR but on the Lui so the ATP specified is used
to select or filter the Lui ids that can appear on the LPRs that are returned.
|
List<LprInfo> |
getLprsByPersonForAtpAndLuiType(String personId,
String atpId,
String luiTypeKey,
ContextInfo context)
Gets the the LPRs for a person and atp and Lui type.
|
LprTransactionInfo |
getLprTransaction(String lprTransactionId,
ContextInfo context)
Retrieves the LPR Transactions based on it's identifier.
|
LprTransactionDao |
getLprTransactionDao() |
LprTransactionItemDao |
getLprTransactionItemDao() |
List<LprTransactionItemInfo> |
getLprTransactionItemsByLui(String luiId,
ContextInfo contextInfo)
Retrieves LPR Transaction Items based on an item with the specified LUI.
|
List<LprTransactionItemInfo> |
getLprTransactionItemsByPersonAndLui(String personId,
String luiId,
ContextInfo contextInfo)
Retrieves LPR Transactions with an item by Person and LUI
Selects all transactions that have at least one item that matches the specified
person and either the existing or new lui.
|
List<LprTransactionItemInfo> |
getLprTransactionItemsByResultingLpr(String lprId,
ContextInfo context)
Retrieves LPR Transaction Items based on the resulting LPR.
|
List<LprTransactionInfo> |
getLprTransactionsByIds(List<String> lprIds,
ContextInfo context)
Get lpr transactions for the specified list of transaction ids.
|
List<String> |
getLuiIdsByPersonAndTypeAndState(String personId,
String luiPersonRelationType,
String relationState,
ContextInfo context)
Retrieves the LUI Ids for Person, type and state.
|
List<String> |
getPersonIdsByLuiAndTypeAndState(String luiId,
String luiPersonRelationType,
String relationState,
ContextInfo context)
Retrieves Person Ids related to the specified LUI, type and state
This would allow you to get a list of people who are active (state) students (type=registration)
for a particular course (luiId)
Example Use Case: get all students in a course.
|
List<LprTransactionInfo> |
getUnsubmittedLprTransactionsByRequestingPersonAndAtp(String requestingPersonId,
String atpId,
ContextInfo contextInfo)
Retrieves transactions for the requesting person and the ATP.
|
LprTransactionInfo |
processLprTransaction(String lprTransactionId,
ContextInfo context)
Submits a LPR transaction - validates the input and based on the type of
transaction creates, updates, cancels or removes LPRs.
|
List<String> |
searchForLprIds(QueryByCriteria criteria,
ContextInfo context)
Searches details of LUI Person Relation Ids
|
List<LprInfo> |
searchForLprs(QueryByCriteria criteria,
ContextInfo context)
Searches details of LUI Person Relation by search criteria
|
List<String> |
searchForLprTransactionIds(QueryByCriteria criteria,
ContextInfo context)
Search for matching LPR transactions returning their ids
|
List<LprTransactionInfo> |
searchForLprTransactions(QueryByCriteria criteria,
ContextInfo context)
search for matching LPR transactions
|
void |
setLprDao(LprDao lprDao) |
void |
setLprTransactionDao(LprTransactionDao lprTransactionDao) |
void |
setLprTransactionItemDao(LprTransactionItemDao lprTransactionItemDao) |
LprInfo |
updateLpr(String lprId,
LprInfo lprInfo,
ContextInfo contextInfo)
Update relations between Person and LUI
|
LprTransactionInfo |
updateLprTransaction(String lprTransactionId,
LprTransactionInfo lprTransactionInfo,
ContextInfo context)
This method updates an LPR Transaction and all of it's items.
|
List<ValidationResultInfo> |
validateLpr(String validationType,
String luiId,
String personId,
String lprTypeKey,
LprInfo lprInfo,
ContextInfo contextInfo)
Validates the particular relation in a state for a Person and LUI
|
List<ValidationResultInfo> |
validateLprTransaction(String validationType,
String lprTransactionType,
LprTransactionInfo lprTransactionInfo,
ContextInfo contextInfo)
Validates the specific Lpr provided.
|
List<ValidationResultInfo> |
verifyLprTransaction(String lprTransactionId,
ContextInfo contextInfo)
Validate the LPR Transaction
|
public LprServiceImpl()
public LprTransactionDao getLprTransactionDao()
public void setLprTransactionDao(LprTransactionDao lprTransactionDao)
public LprTransactionItemDao getLprTransactionItemDao()
public void setLprTransactionItemDao(LprTransactionItemDao lprTransactionItemDao)
@Transactional(readOnly=true) public List<LprInfo> getLprsByLui(String luiId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
LprService
getLprsByLui
in interface LprService
luiId
- Identifier for LUIcontext
- Context information containing the principalId and locale
information about the caller of service operationDoesNotExistException
- luiId not foundInvalidParameterException
- invalid luiIdMissingParameterException
- missing luiIdOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failurepublic List<LprInfo> getLprsByLuis(List<String> luiIds, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
LprService
getLprsByLuis
in interface LprService
luiIds
- Identifiers for LUI's that we want to load the related LPR'scontextInfo
- Context information containing the principalId and locale
information about the caller of service operationDoesNotExistException
- one or more of the provided luiId's are not foundInvalidParameterException
- invalid luiIds or contextInfoMissingParameterException
- one or more missing parameters.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure@Transactional public List<BulkStatusInfo> createLprsForPerson(String personId, String lprTypeKey, List<LprInfo> lprInfos, ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException
LprService
createLprsForPerson
in interface LprService
personId
- Identifier for PersonlprTypeKey
- Type of LUI Person relationlprInfos
- List of Information required to create the LUI
Person relationcontextInfo
- Context information containing the principalId and locale
information about the caller of service operationDataValidationErrorException
- if luiPersonsRelationInfo is not
validDoesNotExistException
- personId, lprTypeKey does not existInvalidParameterException
- invalid personId, lprTypeKey, lprInfoMissingParameterException
- missing personId, lprTypeKey, lprInfoOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureReadOnlyException
- attempt to update a read only attribute@Transactional(readOnly=true) public LprInfo getLpr(String lprId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
LprService
getLpr
in interface LprService
lprId
- Identifier for the LUI Person Relationcontext
- Context information containing the principalId and locale
information about the caller of service operationDoesNotExistException
- lprId not foundInvalidParameterException
- invalid lprIdMissingParameterException
- missing lprIdOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure@Transactional(readOnly=true) public List<LprInfo> getLprsByIds(List<String> luiPersonRelationIds, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
LprService
getLprsByIds
in interface LprService
luiPersonRelationIds
- List of identifiers for LUI Person
Relationscontext
- Context information containing the principalId and locale
information about the caller of service operationDoesNotExistException
- One or more lprIds not foundInvalidParameterException
- One or more invalid
lprIdsMissingParameterException
- missing lprIdsOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failurepublic List<String> getLuiIdsByPersonAndTypeAndState(String personId, String luiPersonRelationType, String relationState, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
LprService
getLuiIdsByPersonAndTypeAndState
in interface LprService
personId
- Identifier for the PersonluiPersonRelationType
- Type of LUI Person RelationrelationState
- Relation Statecontext
- Context information containing the principalId and locale
information about the caller of service operationDoesNotExistException
- personId, lprTypeKey,
relationState, person to LUI relationship not foundInvalidParameterException
- invalid personId,
lprTypeKey, relationStateMissingParameterException
- missing personId,
lprTypeKey, relationStateOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure@Transactional(readOnly=true) public List<String> getPersonIdsByLuiAndTypeAndState(String luiId, String luiPersonRelationType, String relationState, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
LprService
getPersonIdsByLuiAndTypeAndState
in interface LprService
luiId
- Identifier for the LUIluiPersonRelationType
- Type of LUI Person RelationrelationState
- Relation Statecontext
- Context information containing the principalId and locale
information about the caller of service operationDoesNotExistException
- luiId, lprTypeKey,
relationState, LUI to person relationship not foundInvalidParameterException
- invalid luiId,
lprTypeKey, relationStateMissingParameterException
- missing luiId,
lprTypeKey, relationStateOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure@Transactional(readOnly=true) public List<LprInfo> getLprsByPersonAndLui(String personId, String luiId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
LprService
getLprsByPersonAndLui
in interface LprService
personId
- Identifier for personluiId
- Identifier for LUIcontext
- Context information containing the principalId and locale
information about the caller of service operationDoesNotExistException
- personId, luiId not foundInvalidParameterException
- invalid personId, luiIdMissingParameterException
- missing personId, luiIdOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure@Transactional(readOnly=true) public List<LprInfo> getLprsByPerson(String personId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
LprService
getLprsByPerson
in interface LprService
personId
- Identifier for personcontext
- Context information containing the principalId and locale
information about the caller of service operationDoesNotExistException
- personId not foundInvalidParameterException
- invalid personIdMissingParameterException
- missing personIdOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failurepublic List<String> searchForLprIds(QueryByCriteria criteria, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
LprService
searchForLprIds
in interface LprService
criteria
- Criteria to be used for retrieval of multiple LUI Person
Relation identifierscontext
- Context information containing the principalId and locale
information about the caller of service operationInvalidParameterException
- invalid relation criteriaMissingParameterException
- missing relation criteriaOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure@Transactional public LprInfo createLpr(String personId, String luiId, String lprTypeKey, LprInfo lprInfo, ContextInfo context) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException
LprService
createLpr
in interface LprService
personId
- Person IdentifierluiId
- LUI IdentifierlprTypeKey
- Type of LUI to Person RelationlprInfo
- Information required to create the LUI
Person relationcontext
- Context information containing the principalId and locale
information about the caller of service operationDataValidationErrorException
- if lprInfo is not
validDoesNotExistException
- personId, luiId, relationState,
lprTypeKey does not existInvalidParameterException
- invalid personId, luiId, relationState,
lprTypeKey, lprInfoMissingParameterException
- missing personId, luiId, relationState,
lprTypeKey, lprInfoOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureReadOnlyException
- attempt to update a read only attribute@Transactional public LprInfo updateLpr(String lprId, LprInfo lprInfo, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, ReadOnlyException, OperationFailedException, PermissionDeniedException
LprService
updateLpr
in interface LprService
lprId
- Identifier for the LUI Person RelationlprInfo
- Changed information about the LUI Person
RelationcontextInfo
- Context information containing the principalId and locale
information about the caller of service operationDoesNotExistException
- lprId does not existInvalidParameterException
- invalid lprId,
lprInfoMissingParameterException
- missing lprId,
lprInfoReadOnlyException
- attempt to update a read only attributeOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure@Transactional public StatusInfo deleteLpr(String lprId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
LprService
deleteLpr
in interface LprService
lprId
- Identifier for the LUI Person Relationcontext
- Context information containing the principalId and locale
information about the caller of service operationDoesNotExistException
- lprId does not existInvalidParameterException
- invalid lprIdMissingParameterException
- missing lprIdOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failurepublic List<LprInfo> searchForLprs(QueryByCriteria criteria, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
LprService
searchForLprs
in interface LprService
criteria
- Criteria to be used for retrieval of multiple LUI Person
Relation identifierscontext
- Context information containing the principalId and locale
information about the caller of service operationInvalidParameterException
- invalid relation criteriaMissingParameterException
- missing relation criteriaOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure@Transactional(readOnly=true) public LprTransactionInfo getLprTransaction(String lprTransactionId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
LprService
getLprTransaction
in interface LprService
lprTransactionId
- The transaction identifiercontext
- the contextual informationDoesNotExistException
- lprTransactionId doesn't existInvalidParameterException
- Invalid lprTransactionIdMissingParameterException
- Missing lprTransactionIdOperationFailedException
- Unable to complete requestPermissionDeniedException
- Authorization failure@Transactional public StatusInfo deleteLprTransaction(String lprTransactionId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
LprService
deleteLprTransaction
in interface LprService
lprTransactionId
- LPR Transaction identifiercontext
- the context infoDoesNotExistException
- lprTransactionId doesn't existInvalidParameterException
- Invalid lprTransactionIdMissingParameterException
- Missing lprTransactionIdOperationFailedException
- Unable to complete requestPermissionDeniedException
- Authorization failurepublic List<LprInfo> getLprsByPersonForAtp(String personId, String atpId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
LprService
getLprsByPersonForAtp
in interface LprService
personId
- the person idatpId
- the id of the academic time periodcontext
- Context information containing the principalId and locale
information about the caller of service operationDoesNotExistException
- luiId not foundInvalidParameterException
- invalid luiIdMissingParameterException
- missing luiIdOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure@Transactional public LprTransactionInfo createLprTransaction(String lprTransactionType, LprTransactionInfo lprTransactionInfo, ContextInfo context) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
LprService
createLprTransaction
in interface LprService
lprTransactionType
- LPR transaction typelprTransactionInfo
- LPR transaction infocontext
- context infoDataValidationErrorException
- if LprTransactionInfo fields are not
validDoesNotExistException
- LUI or Person doesn't existInvalidParameterException
- Invalid lprTransactionType, lprTransactionMissingParameterException
- Missing fields on LprTransactionInfoOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure@Transactional public LprTransactionInfo createLprTransactionFromExisting(String lprTransactionId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
LprService
createLprTransactionFromExisting
in interface LprService
lprTransactionId
- LprTransaction identifiercontext
- the context informationDoesNotExistException
- lprTransactionId doesn't existInvalidParameterException
- Invalid lprTransactionIdMissingParameterException
- Missing lprTransactionIdOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure@Transactional public LprTransactionInfo processLprTransaction(String lprTransactionId, ContextInfo context) throws AlreadyExistsException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
LprService
processLprTransaction
in interface LprService
lprTransactionId
- the id for the LPR transactionAlreadyExistsException
- LPR is already presentDoesNotExistException
- lprTransactionId doesn't existInvalidParameterException
- Invalid lprTransactionIdMissingParameterException
- Missing lprTransactionIdOperationFailedException
- Unable to complete requestPermissionDeniedException
- Authorization failurepublic List<LprTransactionInfo> getLprTransactionsByIds(List<String> lprIds, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
LprService
getLprTransactionsByIds
in interface LprService
lprIds
- the ids of the lpr transactionscontext
- the context informationDoesNotExistException
- personId or luiId doesn't existInvalidParameterException
- Invalid personId or luiIdMissingParameterException
- Missing personId or luiIdOperationFailedException
- Unable to complete requestPermissionDeniedException
- Authorization failure@Transactional(readOnly=true) public List<LprTransactionItemInfo> getLprTransactionItemsByResultingLpr(String lprId, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
LprService
getLprTransactionItemsByResultingLpr
in interface LprService
lprId
- The resulting lprcontext
- the context infoInvalidParameterException
- Invalid personIdMissingParameterException
- Missing personIdOperationFailedException
- Unable to complete requestPermissionDeniedException
- Authorization failure@Transactional public LprTransactionInfo updateLprTransaction(String lprTransactionId, LprTransactionInfo lprTransactionInfo, ContextInfo context) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
LprService
updateLprTransaction
in interface LprService
lprTransactionId
- The transaction identifierlprTransactionInfo
- The updated Lpr TransactionDataValidationErrorException
- LprTransactionInfo is not validDoesNotExistException
- lprTransactionId doesn't existInvalidParameterException
- Invalid lprTransactionId or
lprTransactionInfoMissingParameterException
- Missing lprTransactionId or
lprTransactionInfoOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failurepublic List<LprTransactionInfo> searchForLprTransactions(QueryByCriteria criteria, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
LprService
searchForLprTransactions
in interface LprService
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
public List<String> searchForLprTransactionIds(QueryByCriteria criteria, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
LprService
searchForLprTransactionIds
in interface LprService
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
@Transactional(readOnly=true) public List<LprInfo> getLprsByPersonAndTypeForAtp(String personId, String atpId, String typeKey, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
LprService
getLprsByPersonAndTypeForAtp
in interface LprService
personId
- the person idatpId
- the id of the academic time periodtypeKey
- LUI person relation type keycontext
- Context information containing the principalId and locale
information about the caller of service operationDoesNotExistException
- luiId not foundInvalidParameterException
- invalid luiIdMissingParameterException
- missing luiIdOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure@Transactional(readOnly=true) public List<LprInfo> getLprsByPersonForAtpAndLuiType(String personId, String atpId, String luiTypeKey, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
LprService
getLprsByPersonForAtpAndLuiType
in interface LprService
personId
- person identifieratpId
- academic time period identifierluiTypeKey
- type of the LUIcontext
- Context information containing the principalId and locale
information about the caller of service operationDoesNotExistException
- luiId not foundInvalidParameterException
- invalid luiIdMissingParameterException
- missing luiIdOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failurepublic List<LprInfo> getLprsByLuiAndType(String luiId, String lprTypeKey, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
LprService
getLprsByLuiAndType
in interface LprService
luiId
- Identifier for LUIlprTypeKey
- LUI person relation type keycontext
- Context information containing the principalId and locale
information about the caller of service operationDoesNotExistException
- luiId not foundInvalidParameterException
- invalid luiIdMissingParameterException
- missing luiIdOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure@Transactional(readOnly=true) public List<LprInfo> getLprsByPersonAndLuiType(String personId, String luiTypeKey, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
LprService
getLprsByPersonAndLuiType
in interface LprService
personId
- person identifierluiTypeKey
- type of the LUIcontext
- Context information containing the principalId and locale
information about the caller of service operationDoesNotExistException
- luiId not foundInvalidParameterException
- invalid luiIdMissingParameterException
- missing luiIdOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failurepublic List<ValidationResultInfo> verifyLprTransaction(String lprTransactionId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
LprService
verifyLprTransaction
in interface LprService
lprTransactionId
- the id of the transactioncontextInfo
- the context infoDoesNotExistException
- lprTransactionId doesn't existInvalidParameterException
- Invalid lprTransactionIdMissingParameterException
- Missing lprTransactionIdOperationFailedException
- Unable to complete requestPermissionDeniedException
- Authorization failurepublic List<ValidationResultInfo> validateLpr(String validationType, String luiId, String personId, String lprTypeKey, LprInfo lprInfo, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
LprService
validateLpr
in interface LprService
validationType
- Identifier of the extent of validationluiId
- the identifier of the luipersonId
- the identifier of the personlprTypeKey
- the key to the type of the relationshiplprInfo
- lpr to be validatedcontextInfo
- Context information containing the principalId and locale
information about the caller of service operationDoesNotExistException
- lprInfo not foundInvalidParameterException
- invalid lprInfo
relationStateMissingParameterException
- missing lprInfoOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failurepublic List<LprTransactionItemInfo> getLprTransactionItemsByLui(String luiId, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
LprService
getLprTransactionItemsByLui
in interface LprService
luiId
- The LUI identifiercontextInfo
- the ontext infoInvalidParameterException
- Invalid personIdMissingParameterException
- Missing personIdOperationFailedException
- Unable to complete requestPermissionDeniedException
- Authorization failurepublic List<LprTransactionInfo> getUnsubmittedLprTransactionsByRequestingPersonAndAtp(String requestingPersonId, String atpId, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
LprService
getUnsubmittedLprTransactionsByRequestingPersonAndAtp
in interface LprService
requestingPersonId
- The person identifieratpId
- The ATP IdcontextInfo
- the context infoInvalidParameterException
- Invalid personId or atpIdMissingParameterException
- Missing personId or atpIdOperationFailedException
- Unable to complete requestPermissionDeniedException
- Authorization failurepublic List<LprTransactionItemInfo> getLprTransactionItemsByPersonAndLui(String personId, String luiId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
LprService
getLprTransactionItemsByPersonAndLui
in interface LprService
personId
- The person identifierluiId
- The LUI idcontextInfo
- the context informationDoesNotExistException
- personId or luiId doesn't existInvalidParameterException
- Invalid personId or luiIdMissingParameterException
- Missing personId or luiIdOperationFailedException
- Unable to complete requestPermissionDeniedException
- Authorization failure@Transactional public List<BulkStatusInfo> createLprsForLui(String luiId, String lprTypeKey, List<LprInfo> lprInfos, ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException
LprService
createLprsForLui
in interface LprService
luiId
- Identifier for LuilprTypeKey
- Type of LUI Person relationlprInfos
- List of Information required to create the LUI
Person relationcontextInfo
- Context information containing the principalId and locale
information about the caller of service operationDataValidationErrorException
- if luiPersonsRelationInfo is not
validDoesNotExistException
- luiId, lprTypeKey does not existInvalidParameterException
- invalid luiId, lprTypeKey, lprInfosMissingParameterException
- missing luiId, lprTypeKey, lprInfosOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureReadOnlyException
- attempt to update a read only attributepublic List<ValidationResultInfo> validateLprTransaction(String validationType, String lprTransactionType, LprTransactionInfo lprTransactionInfo, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
LprService
validateLprTransaction
in interface LprService
validationType
- Identifier of the extent of validationlprTransactionType
- The type of the LprTransaction.lprTransactionInfo
- The lprTransaction to be validatedcontextInfo
- Context information containing the principalId and locale
information about the caller of service operationDoesNotExistException
- lprInfo not foundInvalidParameterException
- invalid lprInfo
relationStateMissingParameterException
- missing lprInfoOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureCopyright © 2004-2013 The Kuali Foundation. All Rights Reserved.