1 | |
package org.kuali.student.r2.core.class1.enumerationmanagement.service.decorators; |
2 | |
|
3 | |
import java.util.Date; |
4 | |
import java.util.List; |
5 | |
|
6 | |
import org.kuali.student.r2.common.datadictionary.DataDictionaryValidator; |
7 | |
import org.kuali.student.r2.common.datadictionary.service.DataDictionaryService; |
8 | |
import org.kuali.student.r2.common.dto.ContextInfo; |
9 | |
import org.kuali.student.r2.common.dto.StatusInfo; |
10 | |
import org.kuali.student.r2.common.dto.ValidationResultInfo; |
11 | |
import org.kuali.student.r2.common.exceptions.AlreadyExistsException; |
12 | |
import org.kuali.student.r2.common.exceptions.DataValidationErrorException; |
13 | |
import org.kuali.student.r2.common.exceptions.DoesNotExistException; |
14 | |
import org.kuali.student.r2.common.exceptions.InvalidParameterException; |
15 | |
import org.kuali.student.r2.common.exceptions.MissingParameterException; |
16 | |
import org.kuali.student.r2.common.exceptions.OperationFailedException; |
17 | |
import org.kuali.student.r2.common.exceptions.PermissionDeniedException; |
18 | |
import org.kuali.student.r2.common.exceptions.ReadOnlyException; |
19 | |
import org.kuali.student.r2.common.exceptions.VersionMismatchException; |
20 | |
import org.kuali.student.r2.common.infc.HoldsDataDictionaryService; |
21 | |
import org.kuali.student.r2.common.infc.HoldsValidator; |
22 | |
import org.kuali.student.r2.core.enumerationmanagement.dto.EnumeratedValueInfo; |
23 | |
import org.kuali.student.r2.core.enumerationmanagement.dto.EnumerationInfo; |
24 | |
|
25 | 0 | public class EnumerationManagementServiceValidationDecorator extends EnumerationManagementServiceDecorator implements HoldsValidator, HoldsDataDictionaryService { |
26 | |
|
27 | |
private DataDictionaryValidator validator; |
28 | |
private DataDictionaryService dataDictionaryService; |
29 | |
|
30 | |
@Override |
31 | |
public DataDictionaryValidator getValidator() { |
32 | 0 | return validator; |
33 | |
} |
34 | |
|
35 | |
@Override |
36 | |
public void setValidator(DataDictionaryValidator validator) { |
37 | 0 | this.validator = validator; |
38 | 0 | } |
39 | |
|
40 | |
@Override |
41 | |
public DataDictionaryService getDataDictionaryService() { |
42 | 0 | return dataDictionaryService; |
43 | |
} |
44 | |
|
45 | |
@Override |
46 | |
public void setDataDictionaryService(DataDictionaryService dataDictionaryService) { |
47 | 0 | this.dataDictionaryService = dataDictionaryService; |
48 | 0 | } |
49 | |
|
50 | |
@Override |
51 | |
public List<EnumerationInfo> getEnumerations(ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
52 | |
|
53 | 0 | return getNextDecorator().getEnumerations(contextInfo); |
54 | |
} |
55 | |
|
56 | |
@Override |
57 | |
public EnumerationInfo getEnumeration(String enumerationKey, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
58 | |
|
59 | 0 | return getNextDecorator().getEnumeration(enumerationKey, contextInfo); |
60 | |
} |
61 | |
|
62 | |
@Override |
63 | |
public List<EnumeratedValueInfo> getEnumeratedValues(String enumerationKey, String contextTypeKey, String contextValue, Date contextDate, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
64 | |
|
65 | 0 | return getNextDecorator().getEnumeratedValues(enumerationKey, contextTypeKey, contextValue, contextDate, contextInfo); |
66 | |
} |
67 | |
|
68 | |
@Override |
69 | |
public List<ValidationResultInfo> validateEnumeratedValue(String validationTypeKey, String enumerationKey, String code, EnumeratedValueInfo enumeratedValueInfo, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
70 | |
|
71 | 0 | return getNextDecorator().validateEnumeratedValue(validationTypeKey, enumerationKey, code, enumeratedValueInfo, contextInfo); |
72 | |
} |
73 | |
|
74 | |
@Override |
75 | |
public EnumeratedValueInfo updateEnumeratedValue(String enumerationKey, String code, EnumeratedValueInfo enumeratedValueInfo, ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException, VersionMismatchException { |
76 | |
|
77 | 0 | return getNextDecorator().updateEnumeratedValue(enumerationKey, code, enumeratedValueInfo, contextInfo); |
78 | |
} |
79 | |
|
80 | |
@Override |
81 | |
public StatusInfo deleteEnumeratedValue(String enumerationKey, String code, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
82 | |
|
83 | 0 | return getNextDecorator().deleteEnumeratedValue(enumerationKey, code, contextInfo); |
84 | |
} |
85 | |
|
86 | |
@Override |
87 | |
public EnumeratedValueInfo addEnumeratedValue(String enumerationKey, String code, EnumeratedValueInfo enumeratedValueInfo, ContextInfo contextInfo) throws AlreadyExistsException, DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException { |
88 | |
|
89 | 0 | return getNextDecorator().addEnumeratedValue(enumerationKey, code, enumeratedValueInfo, contextInfo); |
90 | |
} |
91 | |
|
92 | |
} |