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)
CourseOfferingServiceFacade
getDefaultClusterName
in interface CourseOfferingServiceFacade
numberOfExistingClusters
- used to determine the next name as CL (numberOfExistingClusters+1)public String getDefaultClusterNamePerCO(String courseOfferingId, ContextInfo context)
CourseOfferingServiceFacade
getDefaultClusterNamePerCO
in interface CourseOfferingServiceFacade
public void setCourseOfferingService(CourseOfferingService coService)
public int getAoClusterCountByFoId(String foId, ContextInfo contextInfo) throws MissingParameterException, InvalidParameterException, OperationFailedException, PermissionDeniedException
CourseOfferingServiceFacade
getAoClusterCountByFoId
in interface CourseOfferingServiceFacade
foId
- Format Offering IdcontextInfo
- Context InfoMissingParameterException
InvalidParameterException
OperationFailedException
PermissionDeniedException
public List<KeyValue> getAoIdAndAoTypeByFO(String foId, ContextInfo contextInfo) throws MissingParameterException, InvalidParameterException, OperationFailedException, PermissionDeniedException
CourseOfferingServiceFacade
getAoIdAndAoTypeByFO
in interface CourseOfferingServiceFacade
foId
- Format offering Id.contextInfo
- the context info objectMissingParameterException
InvalidParameterException
OperationFailedException
PermissionDeniedException
public ActivityOfferingClusterInfo createDefaultCluster(String foId, ContextInfo context) throws PermissionDeniedException, MissingParameterException, InvalidParameterException, OperationFailedException, DoesNotExistException, ReadOnlyException, DataValidationErrorException
CourseOfferingServiceFacade
createDefaultCluster
in interface CourseOfferingServiceFacade
foId
- The format offering ID that the cluster belongs tocontext
- Context infoPermissionDeniedException
MissingParameterException
InvalidParameterException
OperationFailedException
DoesNotExistException
ReadOnlyException
DataValidationErrorException
public 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
CourseOfferingServiceFacade
createActivityOffering
in interface CourseOfferingServiceFacade
aoInfo
- The AO to be created and added to the AOCaocId
- The ID of the activity offering clusterPermissionDeniedException
DataValidationErrorException
InvalidParameterException
ReadOnlyException
OperationFailedException
MissingParameterException
DoesNotExistException
VersionMismatchException
public ActivityOfferingResult copyActivityOfferingToCluster(String origAoId, String aocId, ContextInfo context) throws PermissionDeniedException, DataValidationErrorException, InvalidParameterException, ReadOnlyException, OperationFailedException, MissingParameterException, DoesNotExistException, VersionMismatchException
CourseOfferingServiceFacade
copyActivityOfferingToCluster
in interface CourseOfferingServiceFacade
origAoId
- The ID of an AO to copyaocId
- The AOC cluster ID for the copy of the AO to be associated withPermissionDeniedException
DataValidationErrorException
InvalidParameterException
ReadOnlyException
OperationFailedException
MissingParameterException
DoesNotExistException
VersionMismatchException
public CourseWaitListInfo createUncolocatedWaitList(CourseWaitListInfo courseWaitListInfo, String waitlistType, boolean hasWaitlist, boolean limitWaitlistSize, String aoId, String foId, ContextInfo context)
CourseOfferingServiceFacade
createUncolocatedWaitList
in interface CourseOfferingServiceFacade
courseWaitListInfo
- (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)
CourseOfferingServiceFacade
createColocatedWaitList
in interface CourseOfferingServiceFacade
courseWaitListInfo
- (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
CourseOfferingServiceFacade
updateRegistrationGroups
in interface CourseOfferingServiceFacade
activityOfferingInfo
- AO used and later part of the returned object. This is a pass by reference object so be careful.context
- contextInfoPermissionDeniedException
DataValidationErrorException
InvalidParameterException
ReadOnlyException
OperationFailedException
MissingParameterException
DoesNotExistException
VersionMismatchException
public ActivityOfferingResult updateActivityOffering(ActivityOfferingInfo aoInfo, ContextInfo context) throws PermissionDeniedException, DataValidationErrorException, InvalidParameterException, ReadOnlyException, OperationFailedException, MissingParameterException, DoesNotExistException, VersionMismatchException
CourseOfferingServiceFacade
updateActivityOffering
in interface CourseOfferingServiceFacade
aoInfo
- AO to be updatedcontext
- contextInfoPermissionDeniedException
DataValidationErrorException
InvalidParameterException
ReadOnlyException
OperationFailedException
MissingParameterException
DoesNotExistException
VersionMismatchException
public void deleteActivityOfferingCascaded(String aoId, String aocId, String foId, ContextInfo context) throws PermissionDeniedException, MissingParameterException, InvalidParameterException, OperationFailedException, DoesNotExistException, DataValidationErrorException, ReadOnlyException, VersionMismatchException
CourseOfferingServiceFacade
deleteActivityOfferingCascaded
in interface CourseOfferingServiceFacade
context
- Doesn't return anything for now. If we need something, can always modify the return typePermissionDeniedException
MissingParameterException
InvalidParameterException
OperationFailedException
DoesNotExistException
DataValidationErrorException
ReadOnlyException
VersionMismatchException
public List<BulkStatusInfo> moveActivityOffering(String aoId, String sourceAocId, String targetAocId, ContextInfo context) throws PermissionDeniedException, MissingParameterException, InvalidParameterException, OperationFailedException, DoesNotExistException, ReadOnlyException, DataValidationErrorException, VersionMismatchException
CourseOfferingServiceFacade
moveActivityOffering
in interface CourseOfferingServiceFacade
aoId
- 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 placedPermissionDeniedException
MissingParameterException
InvalidParameterException
OperationFailedException
DoesNotExistException
ReadOnlyException
DataValidationErrorException
VersionMismatchException
public void deleteActivityOfferingCluster(String aocId, ContextInfo context) throws PermissionDeniedException, MissingParameterException, InvalidParameterException, OperationFailedException, DoesNotExistException, DependentObjectsExistException
CourseOfferingServiceFacade
deleteActivityOfferingCluster
in interface CourseOfferingServiceFacade
aocId
- The ID of the AOC to deletePermissionDeniedException
MissingParameterException
InvalidParameterException
OperationFailedException
DoesNotExistException
DependentObjectsExistException
public Integer getSeatCountByCourseOffering(String courseOfferingId, ContextInfo contextInfo) throws OperationFailedException, PermissionDeniedException
CourseOfferingServiceFacade
getSeatCountByCourseOffering
in interface CourseOfferingServiceFacade
contextInfo
- 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
CourseOfferingServiceFacade
getSeatCountByActivityOfferingCluster
in interface CourseOfferingServiceFacade
contextInfo
- 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
CourseOfferingServiceFacade
getSeatCountByRegistrationGroup
in interface CourseOfferingServiceFacade
contextInfo
- 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
CourseOfferingServiceFacade
getAutogenCountByCourseOffering
in interface CourseOfferingServiceFacade
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
public AutogenCount getAutogenCountByFormatOffering(String formatOfferingId, ContextInfo context) throws MissingParameterException, InvalidParameterException, OperationFailedException, PermissionDeniedException, DoesNotExistException
CourseOfferingServiceFacade
getAutogenCountByFormatOffering
in interface CourseOfferingServiceFacade
MissingParameterException
InvalidParameterException
OperationFailedException
PermissionDeniedException
DoesNotExistException
public AutogenCount getAutogenCountByActivtyOfferingCluster(String activiyOfferingClusterId, ContextInfo context) throws MissingParameterException, InvalidParameterException, OperationFailedException, PermissionDeniedException, DoesNotExistException
CourseOfferingServiceFacade
getAutogenCountByActivtyOfferingCluster
in interface CourseOfferingServiceFacade
MissingParameterException
InvalidParameterException
OperationFailedException
PermissionDeniedException
DoesNotExistException
public List<ActivityOfferingClusterInfo> getActivityOfferingClusterByCourseOffering(String courseOfferingId)
getActivityOfferingClusterByCourseOffering
in interface CourseOfferingServiceFacade
courseOfferingId
- 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.