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