| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
package org.kuali.student.r2.core.exemption.service; |
| 6 | |
|
| 7 | |
import java.util.Date; |
| 8 | |
import java.util.List; |
| 9 | |
import org.kuali.student.r2.common.dto.ContextInfo; |
| 10 | |
import org.kuali.student.r2.common.dto.StatusInfo; |
| 11 | |
import org.kuali.student.r2.common.dto.ValidationResultInfo; |
| 12 | |
import org.kuali.student.r2.common.exceptions.AlreadyExistsException; |
| 13 | |
import org.kuali.student.r2.common.exceptions.DataValidationErrorException; |
| 14 | |
import org.kuali.student.r2.common.exceptions.DoesNotExistException; |
| 15 | |
import org.kuali.student.r2.common.exceptions.InvalidParameterException; |
| 16 | |
import org.kuali.student.r2.common.exceptions.MissingParameterException; |
| 17 | |
import org.kuali.student.r2.common.exceptions.OperationFailedException; |
| 18 | |
import org.kuali.student.r2.common.exceptions.PermissionDeniedException; |
| 19 | |
import org.kuali.student.r2.common.exceptions.VersionMismatchException; |
| 20 | |
import org.kuali.student.r2.core.exemption.dto.ExemptionInfo; |
| 21 | |
import org.kuali.student.r2.core.exemption.dto.ExemptionRequestInfo; |
| 22 | |
|
| 23 | |
|
| 24 | |
|
| 25 | |
|
| 26 | |
|
| 27 | 0 | public class ExemptionServiceDecorator implements ExemptionService { |
| 28 | |
|
| 29 | |
private ExemptionService nextDecorator; |
| 30 | |
|
| 31 | |
public ExemptionService getNextDecorator() { |
| 32 | 0 | return nextDecorator; |
| 33 | |
} |
| 34 | |
|
| 35 | |
public void setNextDecorator(ExemptionService nextDecorator) { |
| 36 | 0 | this.nextDecorator = nextDecorator; |
| 37 | 0 | } |
| 38 | |
|
| 39 | |
@Override |
| 40 | |
public List<ValidationResultInfo> validateExemptionRequest(String validationTypeKey, ExemptionRequestInfo exemptionRequestInfo, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
| 41 | 0 | return nextDecorator.validateExemptionRequest(validationTypeKey, exemptionRequestInfo, context); |
| 42 | |
} |
| 43 | |
|
| 44 | |
@Override |
| 45 | |
public List<ValidationResultInfo> validateExemption(String validationTypeKey, ExemptionInfo exemptionInfo, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
| 46 | 0 | return nextDecorator.validateExemption(validationTypeKey, exemptionInfo, context); |
| 47 | |
} |
| 48 | |
|
| 49 | |
@Override |
| 50 | |
public ExemptionRequestInfo updateExemptionRequest(String exemptionRequestId, ExemptionRequestInfo exemptionRequestInfo, ContextInfo context) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException { |
| 51 | 0 | return nextDecorator.updateExemptionRequest(exemptionRequestId, exemptionRequestInfo, context); |
| 52 | |
} |
| 53 | |
|
| 54 | |
@Override |
| 55 | |
public ExemptionInfo updateExemption(String exemptionId, ExemptionInfo exemptionInfo, ContextInfo context) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException { |
| 56 | 0 | return nextDecorator.updateExemption(exemptionId, exemptionInfo, context); |
| 57 | |
} |
| 58 | |
|
| 59 | |
@Override |
| 60 | |
public List<ExemptionRequestInfo> getRequestsForPerson(String personId, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 61 | 0 | return nextDecorator.getRequestsForPerson(personId, context); |
| 62 | |
} |
| 63 | |
|
| 64 | |
@Override |
| 65 | |
public List<ExemptionRequestInfo> getRequestsByTypeForPerson(String typeKey, String personId, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 66 | 0 | return nextDecorator.getRequestsByTypeForPerson(typeKey, personId, context); |
| 67 | |
} |
| 68 | |
|
| 69 | |
@Override |
| 70 | |
public List<ExemptionInfo> getExemptionsForRequest(String requestId, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 71 | 0 | return nextDecorator.getExemptionsForRequest(requestId, context); |
| 72 | |
} |
| 73 | |
|
| 74 | |
@Override |
| 75 | |
public List<ExemptionInfo> getExemptionsForPerson(String personId, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 76 | 0 | return nextDecorator.getExemptionsForPerson(personId, context); |
| 77 | |
} |
| 78 | |
|
| 79 | |
@Override |
| 80 | |
public List<ExemptionInfo> getExemptionsByTypeForPerson(String typeKey, String personId, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 81 | 0 | return nextDecorator.getExemptionsByTypeForPerson(typeKey, personId, context); |
| 82 | |
} |
| 83 | |
|
| 84 | |
@Override |
| 85 | |
public List<ExemptionInfo> getExemptionsByIds(List<String> exemptionIds, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 86 | 0 | return nextDecorator.getExemptionsByIds(exemptionIds, context); |
| 87 | |
} |
| 88 | |
|
| 89 | |
@Override |
| 90 | |
public List<ExemptionRequestInfo> getExemptionRequestsByIds(List<String> exemptionRequestIds, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 91 | 0 | return nextDecorator.getExemptionRequestsByIds(exemptionRequestIds, context); |
| 92 | |
} |
| 93 | |
|
| 94 | |
@Override |
| 95 | |
public List<String> getExemptionRequestIdsByType(String exemptionRequestTypeKey, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 96 | 0 | return nextDecorator.getExemptionRequestIdsByType(exemptionRequestTypeKey, context); |
| 97 | |
} |
| 98 | |
|
| 99 | |
@Override |
| 100 | |
public List<String> getExemptionRequestIdsByCheck(String checkKey, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 101 | 0 | return nextDecorator.getExemptionRequestIdsByCheck(checkKey, context); |
| 102 | |
} |
| 103 | |
|
| 104 | |
@Override |
| 105 | |
public ExemptionRequestInfo getExemptionRequest(String exemptionRequestId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 106 | 0 | return nextDecorator.getExemptionRequest(exemptionRequestId, context); |
| 107 | |
} |
| 108 | |
|
| 109 | |
@Override |
| 110 | |
public List<String> getExemptionIdsByType(String exemptionTypeKey, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 111 | 0 | return nextDecorator.getExemptionIdsByType(exemptionTypeKey, context); |
| 112 | |
} |
| 113 | |
|
| 114 | |
@Override |
| 115 | |
public ExemptionInfo getExemption(String exemptionId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 116 | 0 | return nextDecorator.getExemption(exemptionId, context); |
| 117 | |
} |
| 118 | |
|
| 119 | |
@Override |
| 120 | |
public List<ExemptionInfo> getActiveExemptionsForPerson(String personId, Date asOfDate, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 121 | 0 | return nextDecorator.getActiveExemptionsForPerson(personId, asOfDate, context); |
| 122 | |
} |
| 123 | |
|
| 124 | |
@Override |
| 125 | |
public List<ExemptionInfo> getActiveExemptionsByTypeProcessAndCheckForPerson(String typeKey, String processId, String checkKey, String personId, Date asOfDate, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 126 | 0 | return nextDecorator.getActiveExemptionsByTypeProcessAndCheckForPerson(typeKey, processId, checkKey, personId, asOfDate, context); |
| 127 | |
} |
| 128 | |
|
| 129 | |
@Override |
| 130 | |
public List<ExemptionInfo> getActiveExemptionsByTypeForPerson(String typeKey, String personId, Date asOfDate, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 131 | 0 | return nextDecorator.getActiveExemptionsByTypeForPerson(typeKey, personId, asOfDate, context); |
| 132 | |
} |
| 133 | |
|
| 134 | |
@Override |
| 135 | |
public StatusInfo deleteExemptionRequest(String exemptionRequestId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 136 | 0 | return nextDecorator.deleteExemptionRequest(exemptionRequestId, context); |
| 137 | |
} |
| 138 | |
|
| 139 | |
@Override |
| 140 | |
public StatusInfo deleteExemption(String exemptionId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 141 | 0 | return nextDecorator.deleteExemption(exemptionId, context); |
| 142 | |
} |
| 143 | |
|
| 144 | |
@Override |
| 145 | |
public ExemptionRequestInfo createExemptionRequest(String personId, String exemptionRequestTypeKey, ExemptionRequestInfo exemptionRequestInfo, ContextInfo context) throws AlreadyExistsException, DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 146 | 0 | return nextDecorator.createExemptionRequest(personId, exemptionRequestTypeKey, exemptionRequestInfo, context); |
| 147 | |
} |
| 148 | |
|
| 149 | |
@Override |
| 150 | |
public ExemptionInfo createExemption(String exemptionRequestId, String exemptionTypeKey, ExemptionInfo exemptionInfo, ContextInfo context) throws AlreadyExistsException, DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 151 | 0 | return nextDecorator.createExemption(exemptionRequestId, exemptionTypeKey, exemptionInfo, context); |
| 152 | |
} |
| 153 | |
|
| 154 | |
@Override |
| 155 | |
public StatusInfo addUseToExemption(String exemptionId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 156 | 0 | return nextDecorator.addUseToExemption(exemptionId, context); |
| 157 | |
} |
| 158 | |
} |