org.kuali.student.lum.statement.config.context
Class AtpContextImplTest.AtpServiceMock

java.lang.Object
  extended by org.kuali.student.lum.statement.config.context.AtpContextImplTest.AtpServiceMock
All Implemented Interfaces:
DictionaryService, SearchService, AtpService
Enclosing class:
AtpContextImplTest

private static class AtpContextImplTest.AtpServiceMock
extends Object
implements AtpService


Field Summary
private  Map<String,AtpDurationTypeInfo> durationTypeMap
           
 
Constructor Summary
AtpContextImplTest.AtpServiceMock()
           
 
Method Summary
 DateRangeInfo addDateRange(String atpKey, String dateRangeKey, DateRangeInfo dateRangeInfo)
           
 MilestoneInfo addMilestone(String atpKey, String milestoneKey, MilestoneInfo milestoneInfo)
           
 AtpInfo createAtp(String atpTypeKey, String atpKey, AtpInfo atpInfo)
           
 StatusInfo deleteAtp(String atpKey)
           
 AtpInfo getAtp(String atpKey)
           
 AtpDurationTypeInfo getAtpDurationType(String atpDurationTypeKey)
           
 List<AtpDurationTypeInfo> getAtpDurationTypes()
           
 List<AtpInfo> getAtpsByAtpType(String atpTypeKey)
           
 List<AtpInfo> getAtpsByDate(Date searchDate)
           
 List<AtpInfo> getAtpsByDates(Date startDate, Date endDate)
           
 AtpSeasonalTypeInfo getAtpSeasonalType(String atpSeasonalTypeKey)
           
 List<AtpSeasonalTypeInfo> getAtpSeasonalTypes()
           
 AtpTypeInfo getAtpType(String atpTypeKey)
           
 List<AtpTypeInfo> getAtpTypes()
           
 DateRangeInfo getDateRange(String dateRangeKey)
           
 List<DateRangeInfo> getDateRangesByAtp(String atpKey)
           
 List<DateRangeInfo> getDateRangesByDate(Date searchDate)
           
 DateRangeTypeInfo getDateRangeType(String dateRangeTypeKey)
           
 List<DateRangeTypeInfo> getDateRangeTypes()
           
 List<DateRangeTypeInfo> getDateRangeTypesForAtpType(String atpTypeKey)
           
 MilestoneInfo getMilestone(String milestoneKey)
           
 List<MilestoneInfo> getMilestonesByAtp(String atpKey)
           
 List<MilestoneInfo> getMilestonesByDates(Date startDate, Date endDate)
           
 List<MilestoneInfo> getMilestonesByDatesAndType(String milestoneTypeKey, Date startDate, Date endDate)
           
 MilestoneTypeInfo getMilestoneType(String milestoneTypeKey)
           
 List<MilestoneTypeInfo> getMilestoneTypes()
           
 List<MilestoneTypeInfo> getMilestoneTypesForAtpType(String atpTypeKey)
           
 ObjectStructureDefinition getObjectStructure(String objectTypeKey)
           
 List<String> getObjectTypes()
           
 SearchCriteriaTypeInfo getSearchCriteriaType(String searchCriteriaTypeKey)
           
 List<SearchCriteriaTypeInfo> getSearchCriteriaTypes()
           
 SearchResultTypeInfo getSearchResultType(String searchResultTypeKey)
           
 List<SearchResultTypeInfo> getSearchResultTypes()
           
 SearchTypeInfo getSearchType(String searchTypeKey)
           
 List<SearchTypeInfo> getSearchTypes()
           
 List<SearchTypeInfo> getSearchTypesByCriteria(String searchCriteriaTypeKey)
           
 List<SearchTypeInfo> getSearchTypesByResult(String searchResultTypeKey)
           
 StatusInfo removeDateRange(String dateRangeKey)
           
 StatusInfo removeMilestone(String milestoneKey)
           
 SearchResult search(SearchRequest searchRequest)
           
 AtpInfo updateAtp(String atpKey, AtpInfo atpInfo)
           
 DateRangeInfo updateDateRange(String dateRangeKey, DateRangeInfo dateRangeInfo)
           
 MilestoneInfo updateMilestone(String milestoneKey, MilestoneInfo milestoneInfo)
           
 List<ValidationResultInfo> validateAtp(String validationType, AtpInfo atpInfo)
           
 List<ValidationResultInfo> validateDateRange(String validationType, DateRangeInfo dateRangeInfo)
           
 List<ValidationResultInfo> validateMilestone(String validationType, MilestoneInfo milestoneInfo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

durationTypeMap

private Map<String,AtpDurationTypeInfo> durationTypeMap
Constructor Detail

AtpContextImplTest.AtpServiceMock

public AtpContextImplTest.AtpServiceMock()
Method Detail

addDateRange

public DateRangeInfo addDateRange(String atpKey,
                                  String dateRangeKey,
                                  DateRangeInfo dateRangeInfo)
                           throws AlreadyExistsException,
                                  DataValidationErrorException,
                                  InvalidParameterException,
                                  MissingParameterException,
                                  OperationFailedException,
                                  PermissionDeniedException
Specified by:
addDateRange in interface AtpService
Throws:
AlreadyExistsException
DataValidationErrorException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException

addMilestone

public MilestoneInfo addMilestone(String atpKey,
                                  String milestoneKey,
                                  MilestoneInfo milestoneInfo)
                           throws AlreadyExistsException,
                                  DataValidationErrorException,
                                  InvalidParameterException,
                                  MissingParameterException,
                                  OperationFailedException,
                                  PermissionDeniedException
Specified by:
addMilestone in interface AtpService
Throws:
AlreadyExistsException
DataValidationErrorException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException

createAtp

public AtpInfo createAtp(String atpTypeKey,
                         String atpKey,
                         AtpInfo atpInfo)
                  throws AlreadyExistsException,
                         DataValidationErrorException,
                         InvalidParameterException,
                         MissingParameterException,
                         OperationFailedException,
                         PermissionDeniedException
Specified by:
createAtp in interface AtpService
Throws:
AlreadyExistsException
DataValidationErrorException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException

deleteAtp

public StatusInfo deleteAtp(String atpKey)
                     throws DoesNotExistException,
                            InvalidParameterException,
                            MissingParameterException,
                            OperationFailedException,
                            PermissionDeniedException
Specified by:
deleteAtp in interface AtpService
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException

getAtp

public AtpInfo getAtp(String atpKey)
               throws DoesNotExistException,
                      InvalidParameterException,
                      MissingParameterException,
                      OperationFailedException
Specified by:
getAtp in interface AtpService
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException

getAtpDurationType

public AtpDurationTypeInfo getAtpDurationType(String atpDurationTypeKey)
                                       throws DoesNotExistException,
                                              InvalidParameterException,
                                              MissingParameterException,
                                              OperationFailedException
Specified by:
getAtpDurationType in interface AtpService
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException

getAtpDurationTypes

public List<AtpDurationTypeInfo> getAtpDurationTypes()
                                              throws OperationFailedException
Specified by:
getAtpDurationTypes in interface AtpService
Throws:
OperationFailedException

getAtpSeasonalType

public AtpSeasonalTypeInfo getAtpSeasonalType(String atpSeasonalTypeKey)
                                       throws DoesNotExistException,
                                              InvalidParameterException,
                                              MissingParameterException,
                                              OperationFailedException
Specified by:
getAtpSeasonalType in interface AtpService
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException

getAtpSeasonalTypes

public List<AtpSeasonalTypeInfo> getAtpSeasonalTypes()
                                              throws OperationFailedException
Specified by:
getAtpSeasonalTypes in interface AtpService
Throws:
OperationFailedException

getAtpType

public AtpTypeInfo getAtpType(String atpTypeKey)
                       throws DoesNotExistException,
                              InvalidParameterException,
                              MissingParameterException,
                              OperationFailedException
Specified by:
getAtpType in interface AtpService
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException

getAtpTypes

public List<AtpTypeInfo> getAtpTypes()
                              throws OperationFailedException
Specified by:
getAtpTypes in interface AtpService
Throws:
OperationFailedException

getAtpsByAtpType

public List<AtpInfo> getAtpsByAtpType(String atpTypeKey)
                               throws InvalidParameterException,
                                      MissingParameterException,
                                      OperationFailedException
Specified by:
getAtpsByAtpType in interface AtpService
Throws:
InvalidParameterException
MissingParameterException
OperationFailedException

getAtpsByDate

public List<AtpInfo> getAtpsByDate(Date searchDate)
                            throws InvalidParameterException,
                                   MissingParameterException,
                                   OperationFailedException
Specified by:
getAtpsByDate in interface AtpService
Throws:
InvalidParameterException
MissingParameterException
OperationFailedException

getAtpsByDates

public List<AtpInfo> getAtpsByDates(Date startDate,
                                    Date endDate)
                             throws InvalidParameterException,
                                    MissingParameterException,
                                    OperationFailedException
Specified by:
getAtpsByDates in interface AtpService
Throws:
InvalidParameterException
MissingParameterException
OperationFailedException

getDateRange

public DateRangeInfo getDateRange(String dateRangeKey)
                           throws DoesNotExistException,
                                  InvalidParameterException,
                                  MissingParameterException,
                                  OperationFailedException
Specified by:
getDateRange in interface AtpService
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException

getDateRangeType

public DateRangeTypeInfo getDateRangeType(String dateRangeTypeKey)
                                   throws DoesNotExistException,
                                          InvalidParameterException,
                                          MissingParameterException,
                                          OperationFailedException
Specified by:
getDateRangeType in interface AtpService
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException

getDateRangeTypes

public List<DateRangeTypeInfo> getDateRangeTypes()
                                          throws OperationFailedException
Specified by:
getDateRangeTypes in interface AtpService
Throws:
OperationFailedException

getDateRangeTypesForAtpType

public List<DateRangeTypeInfo> getDateRangeTypesForAtpType(String atpTypeKey)
                                                    throws DoesNotExistException,
                                                           InvalidParameterException,
                                                           MissingParameterException,
                                                           OperationFailedException
Specified by:
getDateRangeTypesForAtpType in interface AtpService
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException

getDateRangesByAtp

public List<DateRangeInfo> getDateRangesByAtp(String atpKey)
                                       throws InvalidParameterException,
                                              MissingParameterException,
                                              OperationFailedException
Specified by:
getDateRangesByAtp in interface AtpService
Throws:
InvalidParameterException
MissingParameterException
OperationFailedException

getDateRangesByDate

public List<DateRangeInfo> getDateRangesByDate(Date searchDate)
                                        throws InvalidParameterException,
                                               MissingParameterException,
                                               OperationFailedException
Specified by:
getDateRangesByDate in interface AtpService
Throws:
InvalidParameterException
MissingParameterException
OperationFailedException

getMilestone

public MilestoneInfo getMilestone(String milestoneKey)
                           throws DoesNotExistException,
                                  InvalidParameterException,
                                  MissingParameterException,
                                  OperationFailedException
Specified by:
getMilestone in interface AtpService
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException

getMilestoneType

public MilestoneTypeInfo getMilestoneType(String milestoneTypeKey)
                                   throws DoesNotExistException,
                                          InvalidParameterException,
                                          MissingParameterException,
                                          OperationFailedException
Specified by:
getMilestoneType in interface AtpService
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException

getMilestoneTypes

public List<MilestoneTypeInfo> getMilestoneTypes()
                                          throws OperationFailedException
Specified by:
getMilestoneTypes in interface AtpService
Throws:
OperationFailedException

getMilestoneTypesForAtpType

public List<MilestoneTypeInfo> getMilestoneTypesForAtpType(String atpTypeKey)
                                                    throws DoesNotExistException,
                                                           InvalidParameterException,
                                                           MissingParameterException,
                                                           OperationFailedException
Specified by:
getMilestoneTypesForAtpType in interface AtpService
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException

getMilestonesByAtp

public List<MilestoneInfo> getMilestonesByAtp(String atpKey)
                                       throws InvalidParameterException,
                                              MissingParameterException,
                                              OperationFailedException
Specified by:
getMilestonesByAtp in interface AtpService
Throws:
InvalidParameterException
MissingParameterException
OperationFailedException

getMilestonesByDates

public List<MilestoneInfo> getMilestonesByDates(Date startDate,
                                                Date endDate)
                                         throws InvalidParameterException,
                                                MissingParameterException,
                                                OperationFailedException
Specified by:
getMilestonesByDates in interface AtpService
Throws:
InvalidParameterException
MissingParameterException
OperationFailedException

getMilestonesByDatesAndType

public List<MilestoneInfo> getMilestonesByDatesAndType(String milestoneTypeKey,
                                                       Date startDate,
                                                       Date endDate)
                                                throws InvalidParameterException,
                                                       MissingParameterException,
                                                       OperationFailedException
Specified by:
getMilestonesByDatesAndType in interface AtpService
Throws:
InvalidParameterException
MissingParameterException
OperationFailedException

removeDateRange

public StatusInfo removeDateRange(String dateRangeKey)
                           throws DoesNotExistException,
                                  InvalidParameterException,
                                  MissingParameterException,
                                  OperationFailedException,
                                  PermissionDeniedException
Specified by:
removeDateRange in interface AtpService
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException

removeMilestone

public StatusInfo removeMilestone(String milestoneKey)
                           throws DoesNotExistException,
                                  InvalidParameterException,
                                  MissingParameterException,
                                  OperationFailedException,
                                  PermissionDeniedException
Specified by:
removeMilestone in interface AtpService
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException

updateAtp

public AtpInfo updateAtp(String atpKey,
                         AtpInfo atpInfo)
                  throws DataValidationErrorException,
                         DoesNotExistException,
                         InvalidParameterException,
                         MissingParameterException,
                         OperationFailedException,
                         PermissionDeniedException,
                         VersionMismatchException
Specified by:
updateAtp in interface AtpService
Throws:
DataValidationErrorException
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
VersionMismatchException

updateDateRange

public DateRangeInfo updateDateRange(String dateRangeKey,
                                     DateRangeInfo dateRangeInfo)
                              throws DataValidationErrorException,
                                     DoesNotExistException,
                                     InvalidParameterException,
                                     MissingParameterException,
                                     OperationFailedException,
                                     PermissionDeniedException,
                                     VersionMismatchException
Specified by:
updateDateRange in interface AtpService
Throws:
DataValidationErrorException
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
VersionMismatchException

updateMilestone

public MilestoneInfo updateMilestone(String milestoneKey,
                                     MilestoneInfo milestoneInfo)
                              throws DataValidationErrorException,
                                     DoesNotExistException,
                                     InvalidParameterException,
                                     MissingParameterException,
                                     OperationFailedException,
                                     PermissionDeniedException,
                                     VersionMismatchException
Specified by:
updateMilestone in interface AtpService
Throws:
DataValidationErrorException
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
VersionMismatchException

validateAtp

public List<ValidationResultInfo> validateAtp(String validationType,
                                              AtpInfo atpInfo)
                                       throws DoesNotExistException,
                                              InvalidParameterException,
                                              MissingParameterException,
                                              OperationFailedException
Specified by:
validateAtp in interface AtpService
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException

validateDateRange

public List<ValidationResultInfo> validateDateRange(String validationType,
                                                    DateRangeInfo dateRangeInfo)
                                             throws DoesNotExistException,
                                                    InvalidParameterException,
                                                    MissingParameterException,
                                                    OperationFailedException
Specified by:
validateDateRange in interface AtpService
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException

validateMilestone

public List<ValidationResultInfo> validateMilestone(String validationType,
                                                    MilestoneInfo milestoneInfo)
                                             throws DoesNotExistException,
                                                    InvalidParameterException,
                                                    MissingParameterException,
                                                    OperationFailedException
Specified by:
validateMilestone in interface AtpService
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException

getSearchCriteriaType

public SearchCriteriaTypeInfo getSearchCriteriaType(String searchCriteriaTypeKey)
                                             throws DoesNotExistException,
                                                    InvalidParameterException,
                                                    MissingParameterException,
                                                    OperationFailedException
Specified by:
getSearchCriteriaType in interface SearchService
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException

getSearchCriteriaTypes

public List<SearchCriteriaTypeInfo> getSearchCriteriaTypes()
                                                    throws OperationFailedException
Specified by:
getSearchCriteriaTypes in interface SearchService
Throws:
OperationFailedException

getSearchResultType

public SearchResultTypeInfo getSearchResultType(String searchResultTypeKey)
                                         throws DoesNotExistException,
                                                InvalidParameterException,
                                                MissingParameterException,
                                                OperationFailedException
Specified by:
getSearchResultType in interface SearchService
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException

getSearchResultTypes

public List<SearchResultTypeInfo> getSearchResultTypes()
                                                throws OperationFailedException
Specified by:
getSearchResultTypes in interface SearchService
Throws:
OperationFailedException

getSearchType

public SearchTypeInfo getSearchType(String searchTypeKey)
                             throws DoesNotExistException,
                                    InvalidParameterException,
                                    MissingParameterException,
                                    OperationFailedException
Specified by:
getSearchType in interface SearchService
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException

getSearchTypes

public List<SearchTypeInfo> getSearchTypes()
                                    throws OperationFailedException
Specified by:
getSearchTypes in interface SearchService
Throws:
OperationFailedException

getSearchTypesByCriteria

public List<SearchTypeInfo> getSearchTypesByCriteria(String searchCriteriaTypeKey)
                                              throws DoesNotExistException,
                                                     InvalidParameterException,
                                                     MissingParameterException,
                                                     OperationFailedException
Specified by:
getSearchTypesByCriteria in interface SearchService
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException

getSearchTypesByResult

public List<SearchTypeInfo> getSearchTypesByResult(String searchResultTypeKey)
                                            throws DoesNotExistException,
                                                   InvalidParameterException,
                                                   MissingParameterException,
                                                   OperationFailedException
Specified by:
getSearchTypesByResult in interface SearchService
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException

search

public SearchResult search(SearchRequest searchRequest)
                    throws MissingParameterException
Specified by:
search in interface SearchService
Throws:
MissingParameterException

getObjectStructure

public ObjectStructureDefinition getObjectStructure(String objectTypeKey)
Specified by:
getObjectStructure in interface DictionaryService

getObjectTypes

public List<String> getObjectTypes()
Specified by:
getObjectTypes in interface DictionaryService


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.