public class FourDigitRegistrationGroupCodeGenerator extends Object implements RegistrationGroupCodeGenerator
Constructor and Description |
---|
FourDigitRegistrationGroupCodeGenerator() |
FourDigitRegistrationGroupCodeGenerator(String prefix) |
Modifier and Type | Method and Description |
---|---|
String |
generateRegistrationGroupCode(FormatOffering fo,
List<ActivityOfferingInfo> activities,
Map<String,Object> keyValues)
Generate a Registration Group Code.
|
void |
initializeGenerator(CourseOfferingService coService,
FormatOffering fo,
ContextInfo context,
Map<String,Object> keyValues)
Allows for an initialization phase in the registration group code generation phase to allow for, say,
stateful generation of registration group codes
|
public FourDigitRegistrationGroupCodeGenerator()
public FourDigitRegistrationGroupCodeGenerator(String prefix)
public void initializeGenerator(CourseOfferingService coService, FormatOffering fo, ContextInfo context, Map<String,Object> keyValues)
RegistrationGroupCodeGenerator
initializeGenerator
in interface RegistrationGroupCodeGenerator
coService
- Course offering servicefo
- Format offeringkeyValues
- Allows for anything to be passed inpublic String generateRegistrationGroupCode(FormatOffering fo, List<ActivityOfferingInfo> activities, Map<String,Object> keyValues)
RegistrationGroupCodeGenerator
generateRegistrationGroupCode
in interface RegistrationGroupCodeGenerator
fo
- the format Offeringactivities
- The list of Activities in the registration groupkeyValues
- In this implementation, a prefix will be sent in. The key is "umd.registration.code.prefix"
And the value is a String that should be one of {"1", "2", ..., "9"}
Also,Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.