public interface AcademicPlanService
Modifier and Type | Method and Description |
---|---|
LearningPlanInfo |
createLearningPlan(LearningPlanInfo learningPlan,
ContextInfo context)
create learning plan
|
PlanItemInfo |
createPlanItem(PlanItemInfo planItem,
ContextInfo context)
create plan item
|
StatusInfo |
deleteLearningPlan(String learningPlanId,
ContextInfo context)
delete the indicated learning plan
|
StatusInfo |
deletePlanItem(String planItemId,
ContextInfo context)
delete the indicated learning plan
|
LearningPlanInfo |
getLearningPlan(String learningPlanId,
ContextInfo context)
Retrieve learning plan by it's Id
|
List<LearningPlanInfo> |
getLearningPlansByIds(List<String> learningPlanIds,
ContextInfo context)
Retrieve a set of learning plans that match the passed in list of plan ids
|
List<LearningPlanInfo> |
getLearningPlansForStudentByType(String studentId,
String planTypeKey,
ContextInfo context)
Get learning plans for the indicated student and of the indicated plan type
|
PlanItemInfo |
getPlanItem(String planItemId,
ContextInfo context)
Retrieve plan item that matches the passed in plan item id
|
List<PlanItemInfo> |
getPlanItemsByIds(List<String> planItemIds,
ContextInfo context)
Retrieve a list of plan items matching the passed in ids
|
List<PlanItemInfo> |
getPlanItemsByPlanTermAndCategories(String learningPlanId,
String termId,
List<AcademicPlanServiceConstants.ItemCategory> categories,
ContextInfo context) |
List<PlanItemInfo> |
getPlanItemsInPlan(String learningPlanId,
ContextInfo context)
retrieve all items for the indicated plan
|
List<PlanItemInfo> |
getPlanItemsInPlanByCategory(String learningPlanId,
AcademicPlanServiceConstants.ItemCategory category,
ContextInfo context)
Retrieve a list of plan items in a specific plan, by item category
|
List<PlanItemInfo> |
getPlanItemsInPlanByRefObjectIdByRefObjectType(String learningPlanId,
String refObjectId,
String refObjectType,
ContextInfo context)
Gets plan items for the indicated reference object id and reference object type
|
List<PlanItemInfo> |
getPlanItemsInPlanByTermIdByCategory(String learningPlanId,
String termId,
AcademicPlanServiceConstants.ItemCategory category,
ContextInfo context)
Retrieve a list of plan items that are planned for the indicated academic term and in the indicated category
category
|
List<PlanItemInfo> |
getPlanItemsInPlanByType(String learningPlanId,
String planItemTypeKey,
ContextInfo context)
Retrieve a list of plan items in a specific plan, by plan item type
|
LearningPlanInfo |
updateLearningPlan(String learningPlanId,
LearningPlanInfo learningPlan,
ContextInfo context)
update learning plan
|
PlanItemInfo |
updatePlanItem(String planItemId,
PlanItemInfo planItem,
ContextInfo context)
update learning plan item
|
List<ValidationResultInfo> |
validateLearningPlan(String validationType,
LearningPlanInfo learningPlanInfo,
ContextInfo context)
validate the passed in learning plan
|
List<ValidationResultInfo> |
validatePlanItem(String validationType,
PlanItemInfo planItemInfo,
ContextInfo context)
validate the passed in plan item
|
LearningPlanInfo getLearningPlan(String learningPlanId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
learningPlanId
- plan idcontext
- service call context, including: date-time of call, id of user executing the callDoesNotExistException
- a learning plan having the passed in Id was not foundInvalidParameterException
- a passed in parameter value is invalidMissingParameterException
- a passed in parameter value is missing or nullOperationFailedException
- unable to complete requestPermissionDeniedException
List<LearningPlanInfo> getLearningPlansByIds(List<String> learningPlanIds, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
learningPlanIds
- list of ids of plans to retrievecontext
- service call context, including: date-time of call, id of user executing the callInvalidParameterException
- a passed in parameter value is invalidMissingParameterException
- a passed in parameter value is missing or nullOperationFailedException
- unable to complete requestPermissionDeniedException
- the user specified in the contextInfo is not authorized to perform the
retrieval requestedPlanItemInfo getPlanItem(String planItemId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
planItemId
- id of plan item to be retrievedcontext
- service call context, including: date-time of call, id of user executing the callDoesNotExistException
- a plan item having the passed in Id was not foundInvalidParameterException
- a passed in parameter value is invalidMissingParameterException
- a passed in parameter value is missing or nullOperationFailedException
- unable to complete requestPermissionDeniedException
List<PlanItemInfo> getPlanItemsByIds(List<String> planItemIds, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
planItemIds
- list of plan item idscontext
- service call context, including: date-time of call, id of user executing the callInvalidParameterException
- a passed in parameter value is invalidMissingParameterException
- a passed in parameter value is missing or nullOperationFailedException
- unable to complete requestPermissionDeniedException
List<PlanItemInfo> getPlanItemsInPlanByType(String learningPlanId, String planItemTypeKey, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
learningPlanId
- id of learning plan for which items are to be retrievedplanItemTypeKey
- key of plan item typecontext
- service call context, including: date-time of call, id of user executing the callInvalidParameterException
- a passed in parameter value is invalidMissingParameterException
- a passed in parameter value is missing or nullOperationFailedException
- unable to complete requestPermissionDeniedException
List<PlanItemInfo> getPlanItemsInPlanByCategory(String learningPlanId, AcademicPlanServiceConstants.ItemCategory category, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
learningPlanId
- id of learning plan for which items are to be retrievedcategory
- the category (e.g. planned, bookmarked, backup) of items to be retrievedcontext
- service call context, including: date-time of call, id of user executing the callInvalidParameterException
- a passed in parameter value is invalidMissingParameterException
- a passed in parameter value is missing or nullOperationFailedException
- unable to complete requestPermissionDeniedException
List<PlanItemInfo> getPlanItemsInPlan(String learningPlanId, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
learningPlanId
- id of plan for which items are to be retrievedcontext
- service call context, including: date-time of call, id of user executing the callInvalidParameterException
- a passed in parameter value is invalidMissingParameterException
- a passed in parameter value is missing or nullOperationFailedException
- unable to complete requestPermissionDeniedException
List<PlanItemInfo> getPlanItemsInPlanByTermIdByCategory(String learningPlanId, String termId, AcademicPlanServiceConstants.ItemCategory category, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
learningPlanId
- id of learning plan for which items are to be retrievedtermId
- id of the academic term for which items are to be retrievedcategory
- the category (e.g. planned, bookmarked, backup) of items to be retrievedcontext
- service call context, including: date-time of call, id of user executing the callInvalidParameterException
- a passed in parameter value is invalidMissingParameterException
- a passed in parameter value is missing or nullOperationFailedException
- unable to complete requestPermissionDeniedException
List<PlanItemInfo> getPlanItemsByPlanTermAndCategories(String learningPlanId, String termId, List<AcademicPlanServiceConstants.ItemCategory> categories, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
learningPlanId
- id of learning plan for which items are to be retrievedtermId
- id of the academic term for which items are to be retrievedcategories
- the list of categories (e.g. planned, bookmarked, backup) of items to be retrievedcontext
- service call context, including: date-time of call, id of user executing the callInvalidParameterException
- a passed in parameter value is invalidMissingParameterException
- a passed in parameter value is missing or nullOperationFailedException
- unable to complete requestPermissionDeniedException
List<PlanItemInfo> getPlanItemsInPlanByRefObjectIdByRefObjectType(String learningPlanId, String refObjectId, String refObjectType, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
learningPlanId
- The id of the plan.refObjectId
- The id of the referenced object.refObjectType
- The type of the referenced object.context
- service call context, including: date-time of call, id of user executing the callInvalidParameterException
- a passed in parameter value is invalidMissingParameterException
- a passed in parameter value is missing or nullOperationFailedException
- unable to complete requestPermissionDeniedException
List<LearningPlanInfo> getLearningPlansForStudentByType(String studentId, String planTypeKey, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
studentId
- id of student for which learning plans are to be retrievedplanTypeKey
- key for type of plans to be retrievedcontext
- service call context, including: date-time of call, id of user executing the callInvalidParameterException
- a passed in parameter value is invalidMissingParameterException
- a passed in parameter value is missing or nullOperationFailedException
- unable to complete requestPermissionDeniedException
LearningPlanInfo createLearningPlan(LearningPlanInfo learningPlan, ContextInfo context) throws AlreadyExistsException, DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
learningPlan
- learning plan to be createdcontext
- service call context, including: date-time of call, id of user executing the callAlreadyExistsException
- a learning plan with the indicated plan id already existsDataValidationErrorException
- a data item of the learning plan is invalidInvalidParameterException
- a passed in parameter value is invalidMissingParameterException
- a passed in parameter value is missing or nullOperationFailedException
- unable to complete requestPermissionDeniedException
- the user (context.getUserId()) is not authorized to perform this operationPlanItemInfo createPlanItem(PlanItemInfo planItem, ContextInfo context) throws AlreadyExistsException, DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
planItem
- item to be createdcontext
- service call context, including: date-time of call, id of user executing the callAlreadyExistsException
- a plan item with the indicated id already existsDataValidationErrorException
- a data item of the plan item is invalidInvalidParameterException
- a passed in parameter value is invalidMissingParameterException
- a passed in parameter value is missing or nullOperationFailedException
- unable to complete requestPermissionDeniedException
- the user (context.getUserId()) is not authorized to perform this operationLearningPlanInfo updateLearningPlan(String learningPlanId, LearningPlanInfo learningPlan, ContextInfo context) throws DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, DoesNotExistException, VersionMismatchException
learningPlanId
- id of learning plan to be updatedlearningPlan
- updated learning plan to be persistedcontext
- service call context, including: date-time of call, id of user executing the callDataValidationErrorException
- a data item of the passed in learning plan is invalidInvalidParameterException
- a passed in parameter value is invalidMissingParameterException
- a passed in parameter value is missing or nullOperationFailedException
- unable to complete requestPermissionDeniedException
- the user (context.getUserId()) is not authorized to perform this operationDoesNotExistException
- a learning plan does not exist having the indicated plan idVersionMismatchException
- the version on the passed in plan was out of sync with the last saved versionPlanItemInfo updatePlanItem(String planItemId, PlanItemInfo planItem, ContextInfo context) throws DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, DoesNotExistException, VersionMismatchException
planItemId
- id of the plan item to be udpatedplanItem
- item to be persistedcontext
- service call context, including: date-time of call, id of user executing the callDataValidationErrorException
- a data item of the passed in plan item is invalidInvalidParameterException
- a passed in parameter value is invalidMissingParameterException
- a passed in parameter value is missing or nullOperationFailedException
- unable to complete requestPermissionDeniedException
- the user (context.getUserId()) is not authorized to perform this operationDoesNotExistException
- a learning plan does not exist having the indicated plan idVersionMismatchException
- the version on the passed in plan was out of sync with the last saved versionStatusInfo deleteLearningPlan(String learningPlanId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
learningPlanId
- id of plan to be deletedcontext
- service call context, including: date-time of call, id of user executing the callDoesNotExistException
- a plan item does not exist having the indicated idInvalidParameterException
- a passed in parameter value is invalidMissingParameterException
- a passed in parameter value is missing or nullOperationFailedException
- unable to complete requestPermissionDeniedException
- the user (context.getUserId()) is not authorized to perform this operationStatusInfo deletePlanItem(String planItemId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
planItemId
- id of plan item to be deletedcontext
- service call context, including: date-time of call, id of user executing the callDoesNotExistException
- a plan item does not exist having the indicated idInvalidParameterException
- a passed in parameter value is invalidMissingParameterException
- a passed in parameter value is missing or nullOperationFailedException
- unable to complete requestPermissionDeniedException
- the user (context.getUserId()) is not authorized to perform this operationList<ValidationResultInfo> validateLearningPlan(String validationType, LearningPlanInfo learningPlanInfo, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
validationType
- must be one of: "FULL_VALIDATION", "SKIP_REQUREDNESS_VALIDATIONS", see: DataDictionaryValidatorlearningPlanInfo
- the learning plan object to be validatedcontext
- service call context, including: date-time of call, id of user executing the callDoesNotExistException
- a plan does not exist having the indicated idInvalidParameterException
- a passed in parameter value is invalidMissingParameterException
- a passed in parameter value is missing or nullOperationFailedException
- unable to complete requestPermissionDeniedException
List<ValidationResultInfo> validatePlanItem(String validationType, PlanItemInfo planItemInfo, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
validationType
- must be one of: "FULL_VALIDATION", "SKIP_REQUREDNESS_VALIDATIONS", see: DataDictionaryValidatorplanItemInfo
- the learning plan item to be validatedcontext
- service call context, including: date-time of call, id of user executing the callDoesNotExistException
- a plan item does not exist having the incated idInvalidParameterException
- a passed in parameter value is invalidMissingParameterException
- a passed in parameter value is missing or nullOperationFailedException
- unable to complete requestAlreadyExistsException
PermissionDeniedException
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.