public class CourseOfferingServiceFacadeImpl extends Object implements CourseOfferingServiceFacade
| Constructor and Description |
|---|
CourseOfferingServiceFacadeImpl() |
| Modifier and Type | Method and Description |
|---|---|
ActivityOfferingResult |
copyActivityOfferingToCluster(String origAoId,
String aocId,
ContextInfo context)
A variant on User Story 3 that does not create an AO (relying on copyAO from the
|
CourseOfferingInfo |
copyCourseOfferingToTargetTerm(CourseOfferingInfo coInfo,
TermInfo targetTerm,
List<String> optionKeys,
ContextInfo context)
User Story 2: I need the system to automatically create reg group(s) when I add a CO via Copy to eliminate
the need to manually create them
Note: this only handles copying an existing CO to a term, not creating from canonical which will
be a separate method (not written as of now).
|
ActivityOfferingResult |
createActivityOffering(ActivityOfferingInfo aoInfo,
String aocId,
ContextInfo context)
User Story 3: I need the system to automatically create reg groups when I create an AO (via add or copy)
to eliminate the need to manually create them
This creates an AO, then adds the created AO to an AOC, generating RGs as needed
|
CourseWaitListInfo |
createColocatedWaitList(CourseWaitListInfo courseWaitListInfo,
String waitlistType,
boolean hasWaitlist,
boolean limitWaitlistSize,
boolean isColocatedAO,
boolean isMaxEnrollmentShared,
HashMap<String,String> aoIdfoIdMap,
ContextInfo context)
Returns new CourseWaitListInfo after AO had been un-colocated
|
ActivityOfferingClusterInfo |
createDefaultCluster(String foId,
ContextInfo context)
If a Course Offering is brand-new with no AOs, then call this method to create the first default
AOC to be used.
|
CourseWaitListInfo |
createUncolocatedWaitList(CourseWaitListInfo courseWaitListInfo,
String waitlistType,
boolean hasWaitlist,
boolean limitWaitlistSize,
String aoId,
String foId,
ContextInfo context)
Returns new CourseWaitListInfo after AO had been un-colocated
|
void |
deleteActivityOfferingCascaded(String aoId,
String aocId,
String foId,
ContextInfo context)
User Story 5: I need the system to automatically delete all associated registration groups when I delete
an AO from an AOC
A pass-through to the deleteActivityOfferingCascaded.
|
void |
deleteActivityOfferingCluster(String aocId,
ContextInfo context)
User Story 7: As a user, I need the system to automatically delete all AOs when I delete an
AOC so I don’t have to delete all the AOs first
This is a pass-through to service call deleteActivityOfferingClusterCascaded
|
CourseOfferingAutogenIssue |
findAutogenIssuesByCourseOffering(String courseOfferingId,
ContextInfo context) |
List<CourseOfferingAutogenIssue> |
findAutogenIssuesByTerm(String termId,
ContextInfo context) |
List<ActivityOfferingClusterInfo> |
getActivityOfferingClusterByCourseOffering(String courseOfferingId)
Returns all ActivityOfferingClusterInfos that map back to a single course offering
|
ActivityOfferingClusterDaoApi |
getActivityOfferingClusterDao() |
int |
getAoClusterCountByFoId(String foId,
ContextInfo contextInfo)
Returns the number of AO Clusters for a particular FO.
|
List<KeyValue> |
getAoIdAndAoTypeByFO(String foId,
ContextInfo contextInfo)
This method will give a KeyValue pair AO_ID, AO_TYPE of the Activity Offerings for a given Format offering
|
AutogenCount |
getAutogenCountByActivtyOfferingCluster(String activiyOfferingClusterId,
ContextInfo context)
User Story 9: As a user, I want to be able to view AOs by Activity, AOC, or Registration Group so that I can view my Activities in a way to support my specific business needs
Get the counts for the information tool bar at the Activity Offering Cluster Level.
|
AutogenCount |
getAutogenCountByCourseOffering(String courseOfferingId,
ContextInfo context)
User Story 9: As a user, I want to be able to view AOs by Activity, AOC, or Registration Group so that I can view my Activities in a way to support my specific business needs
Get the counts for the information tool bar at the course offering level.
|
AutogenCount |
getAutogenCountByFormatOffering(String formatOfferingId,
ContextInfo context)
User Story 9: As a user, I want to be able to view AOs by Activity, AOC, or Registration Group so that I can view my Activities in a way to support my specific business needs
Get the counts for the information toolbar at the format offering level.
|
CourseOfferingService |
getCoService() |
CourseService |
getCourseService() |
CourseWaitListService |
getCourseWaitListService() |
String |
getDefaultClusterName(int numberOfExistingClusters)
Useful for when a cluster is created to create the naming.
|
String |
getDefaultClusterNamePerCO(String courseOfferingId,
ContextInfo context)
Useful for when a cluster is created to create the naming.
|
ExamOfferingServiceFacade |
getExamOfferingServiceFacade() |
SearchService |
getSearchService() |
Integer |
getSeatCountByActivityOfferingCluster(String aocId,
ContextInfo contextInfo)
User Story 8: As a user, I want to view counts of seats so that I can ensure I have the right numbers of seats to support my business needs.
|
Integer |
getSeatCountByCourseOffering(String courseOfferingId,
ContextInfo contextInfo)
User Story 8: As a user, I want to view counts of seats so that I can ensure I have the right numbers of seats to support my business needs.
|
Integer |
getSeatCountByRegistrationGroup(String registrationGroupId,
ContextInfo contextInfo)
User Story 8: As a user, I want to view counts of seats so that I can ensure I have the right numbers of seats to support my business needs.
|
TypeService |
getTypeService() |
CourseWaitListServiceFacade |
getWaitListServiceFacade() |
List<BulkStatusInfo> |
moveActivityOffering(String aoId,
String sourceAocId,
String targetAocId,
ContextInfo context)
User Story 6: As a user, I need the system to automatically create/delete all associated registration
groups when I move an Activity from one AOC to another
Moves an AO from a source AOC to a target AOC.
|
void |
setActivityOfferingClusterDao(ActivityOfferingClusterDaoApi activityOfferingClusterDao) |
void |
setCoService(CourseOfferingService coService) |
void |
setCourseOfferingService(CourseOfferingService coService) |
void |
setCourseService(CourseService courseService) |
void |
setCourseWaitListService(CourseWaitListService courseWaitListService) |
void |
setExamOfferingServiceFacade(ExamOfferingServiceFacade examOfferingServiceFacade) |
void |
setSearchService(SearchService searchService) |
void |
setTypeService(TypeService typeService) |
void |
setWaitListServiceFacade(CourseWaitListServiceFacade waitListServiceFacade) |
ActivityOfferingResult |
updateActivityOffering(ActivityOfferingInfo aoInfo,
ContextInfo context)
User Story 4: I need the system to automatically update registration groups as I
update an activity offering(s) so reg group states and messaging remain current.
|
ActivityOfferingResult |
updateRegistrationGroups(ActivityOfferingInfo activityOfferingInfo,
ContextInfo context)
We need an explicit call to update the registration groups.
|
public CourseOfferingServiceFacadeImpl()
public String getDefaultClusterName(int numberOfExistingClusters)
CourseOfferingServiceFacadegetDefaultClusterName in interface CourseOfferingServiceFacadenumberOfExistingClusters - used to determine the next name as CL (numberOfExistingClusters+1)public String getDefaultClusterNamePerCO(String courseOfferingId, ContextInfo context)
CourseOfferingServiceFacadegetDefaultClusterNamePerCO in interface CourseOfferingServiceFacadepublic void setCourseOfferingService(CourseOfferingService coService)
public int getAoClusterCountByFoId(String foId, ContextInfo contextInfo) throws MissingParameterException, InvalidParameterException, OperationFailedException, PermissionDeniedException
CourseOfferingServiceFacadegetAoClusterCountByFoId in interface CourseOfferingServiceFacadefoId - Format Offering IdcontextInfo - Context InfoMissingParameterExceptionInvalidParameterExceptionOperationFailedExceptionPermissionDeniedExceptionpublic List<KeyValue> getAoIdAndAoTypeByFO(String foId, ContextInfo contextInfo) throws MissingParameterException, InvalidParameterException, OperationFailedException, PermissionDeniedException
CourseOfferingServiceFacadegetAoIdAndAoTypeByFO in interface CourseOfferingServiceFacadefoId - Format offering Id.contextInfo - the context info objectMissingParameterExceptionInvalidParameterExceptionOperationFailedExceptionPermissionDeniedExceptionpublic ActivityOfferingClusterInfo createDefaultCluster(String foId, ContextInfo context) throws PermissionDeniedException, MissingParameterException, InvalidParameterException, OperationFailedException, DoesNotExistException, ReadOnlyException, DataValidationErrorException
CourseOfferingServiceFacadecreateDefaultCluster in interface CourseOfferingServiceFacadefoId - The format offering ID that the cluster belongs tocontext - Context infoPermissionDeniedExceptionMissingParameterExceptionInvalidParameterExceptionOperationFailedExceptionDoesNotExistExceptionReadOnlyExceptionDataValidationErrorExceptionpublic CourseOfferingInfo copyCourseOfferingToTargetTerm(CourseOfferingInfo coInfo, TermInfo targetTerm, List<String> optionKeys, ContextInfo context) throws InvalidParameterException, PermissionDeniedException, DataValidationErrorException, AlreadyExistsException, ReadOnlyException, OperationFailedException, MissingParameterException, DoesNotExistException
public ActivityOfferingResult createActivityOffering(ActivityOfferingInfo aoInfo, String aocId, ContextInfo context) throws PermissionDeniedException, DataValidationErrorException, InvalidParameterException, ReadOnlyException, OperationFailedException, MissingParameterException, DoesNotExistException, VersionMismatchException
CourseOfferingServiceFacadecreateActivityOffering in interface CourseOfferingServiceFacadeaoInfo - The AO to be created and added to the AOCaocId - The ID of the activity offering clusterPermissionDeniedExceptionDataValidationErrorExceptionInvalidParameterExceptionReadOnlyExceptionOperationFailedExceptionMissingParameterExceptionDoesNotExistExceptionVersionMismatchExceptionpublic ActivityOfferingResult copyActivityOfferingToCluster(String origAoId, String aocId, ContextInfo context) throws PermissionDeniedException, DataValidationErrorException, InvalidParameterException, ReadOnlyException, OperationFailedException, MissingParameterException, DoesNotExistException, VersionMismatchException
CourseOfferingServiceFacadecopyActivityOfferingToCluster in interface CourseOfferingServiceFacadeorigAoId - The ID of an AO to copyaocId - The AOC cluster ID for the copy of the AO to be associated withPermissionDeniedExceptionDataValidationErrorExceptionInvalidParameterExceptionReadOnlyExceptionOperationFailedExceptionMissingParameterExceptionDoesNotExistExceptionVersionMismatchExceptionpublic CourseWaitListInfo createUncolocatedWaitList(CourseWaitListInfo courseWaitListInfo, String waitlistType, boolean hasWaitlist, boolean limitWaitlistSize, String aoId, String foId, ContextInfo context)
CourseOfferingServiceFacadecreateUncolocatedWaitList in interface CourseOfferingServiceFacadecourseWaitListInfo - (original WL)aoId - (activity offering ID)foId - (format offering ID)public CourseWaitListInfo createColocatedWaitList(CourseWaitListInfo courseWaitListInfo, String waitlistType, boolean hasWaitlist, boolean limitWaitlistSize, boolean isColocatedAO, boolean isMaxEnrollmentShared, HashMap<String,String> aoIdfoIdMap, ContextInfo context)
CourseOfferingServiceFacadecreateColocatedWaitList in interface CourseOfferingServiceFacadecourseWaitListInfo - (original WL)isColocatedAO - (activity offering colo or not)isMaxEnrollmentShared - (max enrollment shared checked)aoIdfoIdMap - (map of ao and fo IDs)public ActivityOfferingResult updateRegistrationGroups(ActivityOfferingInfo activityOfferingInfo, ContextInfo context) throws PermissionDeniedException, DataValidationErrorException, InvalidParameterException, ReadOnlyException, OperationFailedException, MissingParameterException, DoesNotExistException, VersionMismatchException
CourseOfferingServiceFacadeupdateRegistrationGroups in interface CourseOfferingServiceFacadeactivityOfferingInfo - AO used and later part of the returned object. This is a pass by reference object so be careful.context - contextInfoPermissionDeniedExceptionDataValidationErrorExceptionInvalidParameterExceptionReadOnlyExceptionOperationFailedExceptionMissingParameterExceptionDoesNotExistExceptionVersionMismatchExceptionpublic ActivityOfferingResult updateActivityOffering(ActivityOfferingInfo aoInfo, ContextInfo context) throws PermissionDeniedException, DataValidationErrorException, InvalidParameterException, ReadOnlyException, OperationFailedException, MissingParameterException, DoesNotExistException, VersionMismatchException
CourseOfferingServiceFacadeupdateActivityOffering in interface CourseOfferingServiceFacadeaoInfo - AO to be updatedcontext - contextInfoPermissionDeniedExceptionDataValidationErrorExceptionInvalidParameterExceptionReadOnlyExceptionOperationFailedExceptionMissingParameterExceptionDoesNotExistExceptionVersionMismatchExceptionpublic void deleteActivityOfferingCascaded(String aoId, String aocId, String foId, ContextInfo context) throws PermissionDeniedException, MissingParameterException, InvalidParameterException, OperationFailedException, DoesNotExistException, DataValidationErrorException, ReadOnlyException, VersionMismatchException
CourseOfferingServiceFacadedeleteActivityOfferingCascaded in interface CourseOfferingServiceFacadecontext - Doesn't return anything for now. If we need something, can always modify the return typePermissionDeniedExceptionMissingParameterExceptionInvalidParameterExceptionOperationFailedExceptionDoesNotExistExceptionDataValidationErrorExceptionReadOnlyExceptionVersionMismatchExceptionpublic List<BulkStatusInfo> moveActivityOffering(String aoId, String sourceAocId, String targetAocId, ContextInfo context) throws PermissionDeniedException, MissingParameterException, InvalidParameterException, OperationFailedException, DoesNotExistException, ReadOnlyException, DataValidationErrorException, VersionMismatchException
CourseOfferingServiceFacademoveActivityOffering in interface CourseOfferingServiceFacadeaoId - The id of the AO to be moved from source AOC to target AOCsourceAocId - The AOC where aoId is currently (and to be removed)targetAocId - The AOC where aoId should be placedPermissionDeniedExceptionMissingParameterExceptionInvalidParameterExceptionOperationFailedExceptionDoesNotExistExceptionReadOnlyExceptionDataValidationErrorExceptionVersionMismatchExceptionpublic void deleteActivityOfferingCluster(String aocId, ContextInfo context) throws PermissionDeniedException, MissingParameterException, InvalidParameterException, OperationFailedException, DoesNotExistException, DependentObjectsExistException
CourseOfferingServiceFacadedeleteActivityOfferingCluster in interface CourseOfferingServiceFacadeaocId - The ID of the AOC to deletePermissionDeniedExceptionMissingParameterExceptionInvalidParameterExceptionOperationFailedExceptionDoesNotExistExceptionDependentObjectsExistExceptionpublic Integer getSeatCountByCourseOffering(String courseOfferingId, ContextInfo contextInfo) throws OperationFailedException, PermissionDeniedException
CourseOfferingServiceFacadegetSeatCountByCourseOffering in interface CourseOfferingServiceFacadecontextInfo - Context information containing the
principalId and locale information about
the caller of service operationOperationFailedException - unable to complete requestPermissionDeniedException - an authorization failure has occurredpublic Integer getSeatCountByActivityOfferingCluster(String aocId, ContextInfo contextInfo) throws OperationFailedException, PermissionDeniedException
CourseOfferingServiceFacadegetSeatCountByActivityOfferingCluster in interface CourseOfferingServiceFacadecontextInfo - Context information containing the
principalId and locale information about
the caller of service operationOperationFailedException - unable to complete requestPermissionDeniedException - an authorization failure has occurredpublic Integer getSeatCountByRegistrationGroup(String registrationGroupId, ContextInfo contextInfo) throws OperationFailedException, PermissionDeniedException
CourseOfferingServiceFacadegetSeatCountByRegistrationGroup in interface CourseOfferingServiceFacadecontextInfo - Context information containing the
principalId and locale information about
the caller of service operationOperationFailedException - an authorization failure has occurredPermissionDeniedException - unable to complete requestpublic List<CourseOfferingAutogenIssue> findAutogenIssuesByTerm(String termId, ContextInfo context) throws PermissionDeniedException, MissingParameterException, InvalidParameterException, OperationFailedException, DoesNotExistException
public CourseOfferingAutogenIssue findAutogenIssuesByCourseOffering(String courseOfferingId, ContextInfo context) throws PermissionDeniedException, MissingParameterException, InvalidParameterException, OperationFailedException, DoesNotExistException
public AutogenCount getAutogenCountByCourseOffering(String courseOfferingId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
CourseOfferingServiceFacadegetAutogenCountByCourseOffering in interface CourseOfferingServiceFacadeDoesNotExistExceptionInvalidParameterExceptionMissingParameterExceptionOperationFailedExceptionPermissionDeniedExceptionpublic AutogenCount getAutogenCountByFormatOffering(String formatOfferingId, ContextInfo context) throws MissingParameterException, InvalidParameterException, OperationFailedException, PermissionDeniedException, DoesNotExistException
CourseOfferingServiceFacadegetAutogenCountByFormatOffering in interface CourseOfferingServiceFacadeMissingParameterExceptionInvalidParameterExceptionOperationFailedExceptionPermissionDeniedExceptionDoesNotExistExceptionpublic AutogenCount getAutogenCountByActivtyOfferingCluster(String activiyOfferingClusterId, ContextInfo context) throws MissingParameterException, InvalidParameterException, OperationFailedException, PermissionDeniedException, DoesNotExistException
CourseOfferingServiceFacadegetAutogenCountByActivtyOfferingCluster in interface CourseOfferingServiceFacadeMissingParameterExceptionInvalidParameterExceptionOperationFailedExceptionPermissionDeniedExceptionDoesNotExistExceptionpublic List<ActivityOfferingClusterInfo> getActivityOfferingClusterByCourseOffering(String courseOfferingId)
getActivityOfferingClusterByCourseOffering in interface CourseOfferingServiceFacadecourseOfferingId - CO id search parampublic CourseOfferingService getCoService()
public CourseWaitListService getCourseWaitListService()
public void setCourseWaitListService(CourseWaitListService courseWaitListService)
public void setCoService(CourseOfferingService coService)
public TypeService getTypeService()
public void setTypeService(TypeService typeService)
public CourseService getCourseService()
public void setCourseService(CourseService courseService)
public ActivityOfferingClusterDaoApi getActivityOfferingClusterDao()
public void setActivityOfferingClusterDao(ActivityOfferingClusterDaoApi activityOfferingClusterDao)
public CourseWaitListServiceFacade getWaitListServiceFacade()
public void setWaitListServiceFacade(CourseWaitListServiceFacade waitListServiceFacade)
public ExamOfferingServiceFacade getExamOfferingServiceFacade()
public void setExamOfferingServiceFacade(ExamOfferingServiceFacade examOfferingServiceFacade)
public SearchService getSearchService()
public void setSearchService(SearchService searchService)
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.