|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AtpService
Academic Time Period Service Description and Assumptions
This service supports the management of Academic Time Periods and their associated Date Ranges and Milestones. The intent is to provide a flexible but structured way to define the various time frames that are used throughout the definition, offering and scheduling of Learning Units. This is a catalogue service with basic operations.
Method Summary | |
---|---|
DateRangeInfo |
addDateRange(String atpKey,
String dateRangeKey,
DateRangeInfo dateRangeInfo)
Adds a new dateRange to an existing Academic Time Period |
MilestoneInfo |
addMilestone(String atpKey,
String milestoneKey,
MilestoneInfo milestoneInfo)
Add a new milestone to an existing Academic Time Period |
AtpInfo |
createAtp(String atpTypeKey,
String atpKey,
AtpInfo atpInfo)
Creates a new Academic Time Period |
StatusInfo |
deleteAtp(String atpKey)
Deletes an existing Academic Time Period |
AtpInfo |
getAtp(String atpKey)
Retrieves the details of a single Academic Time Period by atpKey |
AtpDurationTypeInfo |
getAtpDurationType(String atpDurationTypeKey)
Retrieves information about a particular academic time period duration type |
List<AtpDurationTypeInfo> |
getAtpDurationTypes()
Retrieves the list of Academic Time Period Duration Types known by this service |
List<AtpInfo> |
getAtpsByAtpType(String atpTypeKey)
Retrieves a list of Academic Time Periods of the specified type |
List<AtpInfo> |
getAtpsByDate(Date searchDate)
Retrieves the list of Academic Time Periods that the supplied date falls within |
List<AtpInfo> |
getAtpsByDates(Date startDate,
Date endDate)
Retrieves the list of Academic Time Periods that are totally contained within the supplied dates. |
AtpSeasonalTypeInfo |
getAtpSeasonalType(String atpSeasonalTypeKey)
Retrieves information about a particular academic time period seasonal type |
List<AtpSeasonalTypeInfo> |
getAtpSeasonalTypes()
Retrieves the list of Academic Time Period Seasonal Types known by this service |
AtpTypeInfo |
getAtpType(String atpTypeKey)
Retrieves information about a particular academic time period type |
List<AtpTypeInfo> |
getAtpTypes()
Retrieves the list of academic time period types known by this service |
DateRangeInfo |
getDateRange(String dateRangeKey)
Retrieves the details of the specified daterange |
List<DateRangeInfo> |
getDateRangesByAtp(String atpKey)
Retrieves the list of DateRanges for a specified Academic Time Period |
List<DateRangeInfo> |
getDateRangesByDate(Date searchDate)
Retrieves the list of DateRanges which encompass the specified date |
DateRangeTypeInfo |
getDateRangeType(String dateRangeTypeKey)
Retrieves information about a particular date range type |
List<DateRangeTypeInfo> |
getDateRangeTypes()
Retrieves the list of date range types known by this service |
List<DateRangeTypeInfo> |
getDateRangeTypesForAtpType(String atpTypeKey)
Retrieves the list of dateRange types that are defined for a particular Atp Type |
MilestoneInfo |
getMilestone(String milestoneKey)
Retrieves the details of the specified milestone |
List<MilestoneInfo> |
getMilestonesByAtp(String atpKey)
Retrieves the list of milestones for a specified Academic Time Period |
List<MilestoneInfo> |
getMilestonesByDates(Date startDate,
Date endDate)
Retrieves the list of milestones that fall within a specified set of dates |
List<MilestoneInfo> |
getMilestonesByDatesAndType(String milestoneTypeKey,
Date startDate,
Date endDate)
Retrieves a list of milestones of a specified type that fall within a specified set of dates |
MilestoneTypeInfo |
getMilestoneType(String milestoneTypeKey)
Retrieves information about a particular milestone type |
List<MilestoneTypeInfo> |
getMilestoneTypes()
Retrieves the list of milestone types known by this service |
List<MilestoneTypeInfo> |
getMilestoneTypesForAtpType(String atpTypeKey)
Retrieves the list of milestone types that are defined for a particular Atp Type |
StatusInfo |
removeDateRange(String dateRangeKey)
Removes an existing daterange. |
StatusInfo |
removeMilestone(String milestoneKey)
Removes an existing milestone. |
AtpInfo |
updateAtp(String atpKey,
AtpInfo atpInfo)
Updates an existing Academic Time Period |
DateRangeInfo |
updateDateRange(String dateRangeKey,
DateRangeInfo dateRangeInfo)
Updates an existing daterange |
MilestoneInfo |
updateMilestone(String milestoneKey,
MilestoneInfo milestoneInfo)
Updates an existing milestone. |
List<ValidationResultInfo> |
validateAtp(String validationType,
AtpInfo atpInfo)
Validates an academic time period. |
List<ValidationResultInfo> |
validateDateRange(String validationType,
DateRangeInfo dateRangeInfo)
Validates a date range. |
List<ValidationResultInfo> |
validateMilestone(String validationType,
MilestoneInfo milestoneInfo)
Validates a milestone. |
Methods inherited from interface org.kuali.student.common.search.service.SearchService |
---|
getSearchCriteriaType, getSearchCriteriaTypes, getSearchResultType, getSearchResultTypes, getSearchType, getSearchTypes, getSearchTypesByCriteria, getSearchTypesByResult, search |
Methods inherited from interface org.kuali.student.common.dictionary.service.DictionaryService |
---|
getObjectStructure, getObjectTypes |
Method Detail |
---|
List<AtpTypeInfo> getAtpTypes() throws OperationFailedException
OperationFailedException
- unable to complete requestAtpTypeInfo getAtpType(String atpTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
atpTypeKey
- academic time period type identifier
DoesNotExistException
- specified atp type not found
InvalidParameterException
- invalid atpTypeKey
MissingParameterException
- atpTypeKey not specified
OperationFailedException
- unable to complete requestList<AtpSeasonalTypeInfo> getAtpSeasonalTypes() throws OperationFailedException
OperationFailedException
- unable to complete requestAtpSeasonalTypeInfo getAtpSeasonalType(String atpSeasonalTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
atpSeasonalTypeKey
- academic time period seasonal type identifier
DoesNotExistException
- specified atp seasonal type not found
InvalidParameterException
- invalid atpSeasonalTypeKey
MissingParameterException
- atpSeasonalTypeKey not specified
OperationFailedException
- unable to complete requestList<AtpDurationTypeInfo> getAtpDurationTypes() throws OperationFailedException
OperationFailedException
- unable to complete requestAtpDurationTypeInfo getAtpDurationType(String atpDurationTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
atpDurationTypeKey
- academic time period duration type identifier
DoesNotExistException
- specified atp duration type not found
InvalidParameterException
- invalid atpDurationTypeKey
MissingParameterException
- atpDurationTypeKey not specified
OperationFailedException
- unable to complete requestList<MilestoneTypeInfo> getMilestoneTypes() throws OperationFailedException
OperationFailedException
- unable to complete requestMilestoneTypeInfo getMilestoneType(String milestoneTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
milestoneTypeKey
- milestone type identifier
DoesNotExistException
- specified milestone type not found
InvalidParameterException
- invalid milestoneTypeKey
MissingParameterException
- milestoneTypeKey not specified
OperationFailedException
- unable to complete requestList<MilestoneTypeInfo> getMilestoneTypesForAtpType(String atpTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
atpTypeKey
- atpTypeKey
DoesNotExistException
- specified atpTypeKey not found
InvalidParameterException
- invalid atpTypeKey
MissingParameterException
- atpTypeKey not specified
OperationFailedException
- unable to complete requestList<DateRangeTypeInfo> getDateRangeTypes() throws OperationFailedException
OperationFailedException
- unable to complete requestDateRangeTypeInfo getDateRangeType(String dateRangeTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
dateRangeTypeKey
- date range type identifier
DoesNotExistException
- specified date range type not found
InvalidParameterException
- invalid dateRangeTypeKey
MissingParameterException
- dateRangeTypeKey not specified
OperationFailedException
- unable to complete requestList<DateRangeTypeInfo> getDateRangeTypesForAtpType(String atpTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
atpTypeKey
- atpTypeKey
DoesNotExistException
- specified atpTypeKey not found
InvalidParameterException
- invalid atpTypeKey
MissingParameterException
- atpTypeKey not specified
OperationFailedException
- unable to complete requestList<ValidationResultInfo> validateAtp(String validationType, AtpInfo atpInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
validationType
- Identifier of the extent of validationatpInfo
- The academic time period information to be tested.
DoesNotExistException
- validationTypeKey not found
InvalidParameterException
- invalid validationTypeKey, atpInfo
MissingParameterException
- missing validationTypeKey, atpInfo
OperationFailedException
- unable to complete requestList<ValidationResultInfo> validateMilestone(String validationType, MilestoneInfo milestoneInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
validationType
- Identifier of the extent of validationmilestoneInfo
- The milestone information to be tested.
DoesNotExistException
- validationTypeKey not found
InvalidParameterException
- invalid validationTypeKey, milestoneInfo
MissingParameterException
- missing validationTypeKey, milestoneInfo
OperationFailedException
- unable to complete requestList<ValidationResultInfo> validateDateRange(String validationType, DateRangeInfo dateRangeInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
validationType
- Identifier of the extent of validationdateRangeInfo
- The date range information to be tested.
DoesNotExistException
- validationTypeKey not found
InvalidParameterException
- invalid validationTypeKey, dateRangeInfo
MissingParameterException
- missing validationTypeKey, dateRangeInfo
OperationFailedException
- unable to complete requestAtpInfo getAtp(String atpKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
atpKey
- Unique key of the Academic Time Period to be retrieved
DoesNotExistException
- atpKey not found
InvalidParameterException
- invalid atpKey
MissingParameterException
- invalid atpKey
OperationFailedException
- unable to complete requestList<AtpInfo> getAtpsByDate(Date searchDate) throws InvalidParameterException, MissingParameterException, OperationFailedException
searchDate
- Timestamp to be matched
InvalidParameterException
- invalid searchDate
MissingParameterException
- invalid searchDate
OperationFailedException
- unable to complete requestList<AtpInfo> getAtpsByDates(Date startDate, Date endDate) throws InvalidParameterException, MissingParameterException, OperationFailedException
startDate
- Earliest TimestampendDate
- Latest Timestamp
InvalidParameterException
- invalid searchDate
MissingParameterException
- invalid searchDate
OperationFailedException
- unable to complete requestList<AtpInfo> getAtpsByAtpType(String atpTypeKey) throws InvalidParameterException, MissingParameterException, OperationFailedException
atpTypeKey
- ATP type to be retrieved
InvalidParameterException
- invalid atpTypeKey
MissingParameterException
- invalid atpTypeKey
OperationFailedException
- unable to complete requestMilestoneInfo getMilestone(String milestoneKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
milestoneKey
- Unique id of the milestone to be retrieved
DoesNotExistException
- milestoneKey not found
InvalidParameterException
- invalid milestoneKey
MissingParameterException
- invalid milestoneKey
OperationFailedException
- unable to complete requestList<MilestoneInfo> getMilestonesByAtp(String atpKey) throws InvalidParameterException, MissingParameterException, OperationFailedException
atpKey
- Unique key of the Academic Time Period to be retieved
InvalidParameterException
- invalid atpKey
MissingParameterException
- invalid atpKey
OperationFailedException
- unable to complete requestList<MilestoneInfo> getMilestonesByDates(Date startDate, Date endDate) throws InvalidParameterException, MissingParameterException, OperationFailedException
startDate
- Start Date for date spanendDate
- End Date for date span
InvalidParameterException
- One or more parameters invalid
MissingParameterException
- One or more parameter(s) missing
OperationFailedException
- unable to complete requestList<MilestoneInfo> getMilestonesByDatesAndType(String milestoneTypeKey, Date startDate, Date endDate) throws InvalidParameterException, MissingParameterException, OperationFailedException
milestoneTypeKey
- Milestone type to be retrievedstartDate
- Start Date for date rangeendDate
- End Date for date range
InvalidParameterException
- One or more parameters invalid
MissingParameterException
- One or more parameters missing
OperationFailedException
- unable to complete requestDateRangeInfo getDateRange(String dateRangeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
dateRangeKey
- Unique id of the date range to be retrieved
DoesNotExistException
- dateRangeKey not found
InvalidParameterException
- invalid dateRangeKey
MissingParameterException
- missing dateRangeKey
OperationFailedException
- unable to complete requestList<DateRangeInfo> getDateRangesByAtp(String atpKey) throws InvalidParameterException, MissingParameterException, OperationFailedException
atpKey
- Unique key of the Academic Time Period to be retieved
InvalidParameterException
- invalid atpKey
MissingParameterException
- invalid atpKey
OperationFailedException
- unable to complete requestList<DateRangeInfo> getDateRangesByDate(Date searchDate) throws InvalidParameterException, MissingParameterException, OperationFailedException
searchDate
- Timestamp to be matched
InvalidParameterException
- invalid searchDate
MissingParameterException
- invalid searchDate
OperationFailedException
- unable to complete requestAtpInfo createAtp(String atpTypeKey, String atpKey, AtpInfo atpInfo) throws AlreadyExistsException, DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
atpTypeKey
- Type of ATP to be createdatpKey
- Key of ATP to be createdatpInfo
- Details of ATP to be created
AlreadyExistsException
- ATP being created already exists
DataValidationErrorException
- One or more values invalid for this operation
InvalidParameterException
- One or more parameters invalid
MissingParameterException
- One or more parameters missing
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failureAtpInfo updateAtp(String atpKey, AtpInfo atpInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException
atpKey
- Key of ATP to be updatedatpInfo
- Details of updates to ATP being updated
DataValidationErrorException
- One or more values invalid for this operation
DoesNotExistException
- ATP being updated does not exist
InvalidParameterException
- One or more parameters invalid
MissingParameterException
- One or more parameters missing
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure
VersionMismatchException
- The action was attempted on an out of date version.StatusInfo deleteAtp(String atpKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
atpKey
- Key of ATP to be deleted
DoesNotExistException
- ATP being deleted does not exist
InvalidParameterException
- One or more parameters invalid
MissingParameterException
- One or more parameters missing
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failureMilestoneInfo addMilestone(String atpKey, String milestoneKey, MilestoneInfo milestoneInfo) throws AlreadyExistsException, DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
atpKey
- Key of ATP to be updatedmilestoneKey
- Id of milestone to be addedmilestoneInfo
- Details of milestone to be added
AlreadyExistsException
- Milestone being added already exists
DataValidationErrorException
- One or more values invalid for this operation
InvalidParameterException
- One or more parameters invalid
MissingParameterException
- One or more parameters missing
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failureMilestoneInfo updateMilestone(String milestoneKey, MilestoneInfo milestoneInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException
milestoneKey
- ID of milestone to be updatedmilestoneInfo
- Details of milestone to be updated
DataValidationErrorException
- One or more values invalid for this operation
DoesNotExistException
- Milestone being updated does not exist
InvalidParameterException
- One or more parameters invalid
MissingParameterException
- One or more parameters missing
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure
VersionMismatchException
- The action was attempted on an out of date version.StatusInfo removeMilestone(String milestoneKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
milestoneKey
- Id of milestone to be removed
DoesNotExistException
- Milestone being removed does not exist
InvalidParameterException
- One or more parameters invalid
MissingParameterException
- One or more parameters missing
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failureDateRangeInfo addDateRange(String atpKey, String dateRangeKey, DateRangeInfo dateRangeInfo) throws AlreadyExistsException, DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
atpKey
- key of the ATP to be associated with the dateRangedateRangeKey
- identifier of the dateRange to be addeddateRangeInfo
- details of the dateRange to be added
AlreadyExistsException
- dateRange being added already exists
DataValidationErrorException
- one or more values invalid for this operation
InvalidParameterException
- one or more parameters invalid
MissingParameterException
- one or more parameters missing
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failureDateRangeInfo updateDateRange(String dateRangeKey, DateRangeInfo dateRangeInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException
dateRangeKey
- identifier of daterange to be updateddateRangeInfo
- details of daterange to be updated
DataValidationErrorException
- One or more values invalid for this operation
DoesNotExistException
- dateRange being updated does not exist
InvalidParameterException
- one or more parameters invalid
MissingParameterException
- one or more parameters missing
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure
VersionMismatchException
- action was attempted on an out of date version.StatusInfo removeDateRange(String dateRangeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
dateRangeKey
- key of daterange to be removed
DoesNotExistException
- DateRange being removed does not exist
InvalidParameterException
- One or more parameters invalid
MissingParameterException
- One or more parameters missing
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |