| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
package org.kuali.student.enrollment.lui.mock; |
| 17 | |
|
| 18 | |
import java.util.List; |
| 19 | |
import org.kuali.student.common.dto.ContextInfo; |
| 20 | |
import org.kuali.student.common.dto.StatusInfo; |
| 21 | |
import org.kuali.student.common.dto.TypeInfo; |
| 22 | |
import org.kuali.student.common.dto.TypeTypeRelationInfo; |
| 23 | |
import org.kuali.student.common.dto.ValidationResultInfo; |
| 24 | |
import org.kuali.student.common.infc.HoldsLuiService; |
| 25 | |
import org.kuali.student.common.exceptions.AlreadyExistsException; |
| 26 | |
import org.kuali.student.common.exceptions.CircularRelationshipException; |
| 27 | |
import org.kuali.student.common.exceptions.DataValidationErrorException; |
| 28 | |
import org.kuali.student.common.exceptions.DependentObjectsExistException; |
| 29 | |
import org.kuali.student.common.exceptions.DoesNotExistException; |
| 30 | |
import org.kuali.student.common.exceptions.InvalidParameterException; |
| 31 | |
import org.kuali.student.common.exceptions.MissingParameterException; |
| 32 | |
import org.kuali.student.common.exceptions.OperationFailedException; |
| 33 | |
import org.kuali.student.common.exceptions.PermissionDeniedException; |
| 34 | |
import org.kuali.student.common.exceptions.VersionMismatchException; |
| 35 | |
import org.kuali.student.datadictionary.dto.DictionaryEntryInfo; |
| 36 | |
import org.kuali.student.enrollment.lui.dto.LuiInfo; |
| 37 | |
import org.kuali.student.enrollment.lui.dto.LuiLuiRelationInfo; |
| 38 | |
import org.kuali.student.enrollment.lui.service.LuiService; |
| 39 | |
|
| 40 | |
|
| 41 | |
|
| 42 | |
|
| 43 | |
|
| 44 | |
|
| 45 | |
|
| 46 | 0 | public class LuiServiceAdapter implements LuiService, HoldsLuiService { |
| 47 | |
|
| 48 | |
private LuiService luiService; |
| 49 | |
|
| 50 | |
@Override |
| 51 | |
public LuiService getLuiService() { |
| 52 | 0 | return luiService; |
| 53 | |
} |
| 54 | |
|
| 55 | |
@Override |
| 56 | |
public void setLuiService(LuiService luiService) { |
| 57 | 0 | this.luiService = luiService; |
| 58 | 0 | } |
| 59 | |
|
| 60 | |
@Override |
| 61 | |
public List<String> getDataDictionaryEntryKeys(ContextInfo context) |
| 62 | |
throws OperationFailedException, MissingParameterException, PermissionDeniedException { |
| 63 | 0 | return luiService.getDataDictionaryEntryKeys(context); |
| 64 | |
} |
| 65 | |
|
| 66 | |
@Override |
| 67 | |
public DictionaryEntryInfo getDataDictionaryEntry(String entryKey, ContextInfo context) throws OperationFailedException, MissingParameterException, PermissionDeniedException, DoesNotExistException { |
| 68 | 0 | return luiService.getDataDictionaryEntry(entryKey, context); |
| 69 | |
} |
| 70 | |
|
| 71 | |
@Override |
| 72 | |
public List<ValidationResultInfo> validateLuiLuiRelation(String validationType, LuiLuiRelationInfo luiLuiRelationInfo, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
| 73 | 0 | return luiService.validateLuiLuiRelation(validationType, luiLuiRelationInfo, context); |
| 74 | |
} |
| 75 | |
|
| 76 | |
@Override |
| 77 | |
public List<ValidationResultInfo> validateLui(String validationType, LuiInfo luiInfo, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
| 78 | 0 | return luiService.validateLui(validationType, luiInfo, context); |
| 79 | |
} |
| 80 | |
|
| 81 | |
@Override |
| 82 | |
public LuiInfo updateLuiState(String luiId, String luState, ContextInfo context) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 83 | 0 | return luiService.updateLuiState(luiId, luState, context); |
| 84 | |
} |
| 85 | |
|
| 86 | |
@Override |
| 87 | |
public LuiLuiRelationInfo updateLuiLuiRelation(String luiLuiRelationId, LuiLuiRelationInfo luiLuiRelationInfo, ContextInfo context) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException { |
| 88 | 0 | return luiService.updateLuiLuiRelation(luiLuiRelationId, luiLuiRelationInfo, context); |
| 89 | |
} |
| 90 | |
|
| 91 | |
@Override |
| 92 | |
public LuiInfo updateLui(String luiId, LuiInfo luiInfo, ContextInfo context) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException { |
| 93 | 0 | return luiService.updateLui(luiId, luiInfo, context); |
| 94 | |
} |
| 95 | |
|
| 96 | |
@Override |
| 97 | |
public List<LuiInfo> getRelatedLuisByLuiId(String luiId, String luLuRelationType, ContextInfo context) |
| 98 | |
throws InvalidParameterException, MissingParameterException, OperationFailedException { |
| 99 | 0 | return luiService.getRelatedLuisByLuiId(luiId, luLuRelationType, context); |
| 100 | |
} |
| 101 | |
|
| 102 | |
@Override |
| 103 | |
public List<String> getRelatedLuiIdsByLuiId(String luiId, String luLuRelationType, ContextInfo context) |
| 104 | |
throws InvalidParameterException, MissingParameterException, OperationFailedException { |
| 105 | 0 | return luiService.getRelatedLuiIdsByLuiId(luiId, luLuRelationType, context); |
| 106 | |
} |
| 107 | |
|
| 108 | |
@Override |
| 109 | |
public List<LuiInfo> getLuisInAtpByCluId(String cluId, String atpKey, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
| 110 | 0 | return luiService.getLuisInAtpByCluId(cluId, atpKey, context); |
| 111 | |
} |
| 112 | |
|
| 113 | |
@Override |
| 114 | |
public List<LuiInfo> getLuisByRelation(String relatedLuiId, String luLuRelationType, ContextInfo context) |
| 115 | |
throws InvalidParameterException, MissingParameterException, OperationFailedException { |
| 116 | 0 | return luiService.getLuisByRelation(relatedLuiId, luLuRelationType, context); |
| 117 | |
} |
| 118 | |
|
| 119 | |
@Override |
| 120 | |
public List<LuiInfo> getLuisByIdList(List<String> luiIdList, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
| 121 | 0 | return luiService.getLuisByIdList(luiIdList, context); |
| 122 | |
} |
| 123 | |
|
| 124 | |
@Override |
| 125 | |
public List<LuiLuiRelationInfo> getLuiLuiRelationsByLui(String luiId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
| 126 | 0 | return luiService.getLuiLuiRelationsByLui(luiId, context); |
| 127 | |
} |
| 128 | |
|
| 129 | |
@Override |
| 130 | |
public LuiLuiRelationInfo getLuiLuiRelation(String luiLuiRelationId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
| 131 | 0 | return luiService.getLuiLuiRelation(luiLuiRelationId, context); |
| 132 | |
} |
| 133 | |
|
| 134 | |
@Override |
| 135 | |
public List<String> getLuiIdsInAtpByCluId(String cluId, String atpKey, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
| 136 | 0 | return luiService.getLuiIdsInAtpByCluId(cluId, atpKey, context); |
| 137 | |
} |
| 138 | |
|
| 139 | |
@Override |
| 140 | |
public List<String> getLuiIdsByRelation(String relatedLuiId, String luLuRelationType, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException { |
| 141 | 0 | return luiService.getLuiIdsByRelation(relatedLuiId, luLuRelationType, context); |
| 142 | |
} |
| 143 | |
|
| 144 | |
@Override |
| 145 | |
public List<String> getLuiIdsByCluId(String cluId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
| 146 | 0 | return luiService.getLuiIdsByCluId(cluId, context); |
| 147 | |
} |
| 148 | |
|
| 149 | |
@Override |
| 150 | |
public LuiInfo getLui(String luiId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
| 151 | 0 | return luiService.getLui(luiId, context); |
| 152 | |
} |
| 153 | |
|
| 154 | |
@Override |
| 155 | |
public StatusInfo deleteLuiLuiRelation(String luiLuiRelationId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 156 | 0 | return luiService.deleteLuiLuiRelation(luiLuiRelationId, context); |
| 157 | |
} |
| 158 | |
|
| 159 | |
@Override |
| 160 | |
public StatusInfo deleteLui(String luiId, ContextInfo context) throws DependentObjectsExistException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 161 | 0 | return luiService.deleteLui(luiId, context); |
| 162 | |
} |
| 163 | |
|
| 164 | |
@Override |
| 165 | |
public LuiLuiRelationInfo createLuiLuiRelation(String luiId, String relatedLuiId, String luLuRelationType, LuiLuiRelationInfo luiLuiRelationInfo, ContextInfo context) throws AlreadyExistsException, CircularRelationshipException, DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 166 | 0 | return luiService.createLuiLuiRelation(luiId, relatedLuiId, luLuRelationType, luiLuiRelationInfo, context); |
| 167 | |
} |
| 168 | |
|
| 169 | |
@Override |
| 170 | |
public LuiInfo createLui(String cluId, |
| 171 | |
String atpKey, |
| 172 | |
LuiInfo luiInfo, |
| 173 | |
ContextInfo context) |
| 174 | |
throws AlreadyExistsException, |
| 175 | |
DataValidationErrorException, |
| 176 | |
DoesNotExistException, |
| 177 | |
InvalidParameterException, |
| 178 | |
MissingParameterException, |
| 179 | |
OperationFailedException, |
| 180 | |
PermissionDeniedException { |
| 181 | 0 | return luiService.createLui(cluId, atpKey, luiInfo, context); |
| 182 | |
} |
| 183 | |
|
| 184 | |
@Override |
| 185 | |
public TypeInfo getType(String typeKey, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
| 186 | 0 | return luiService.getType(typeKey, context); |
| 187 | |
} |
| 188 | |
|
| 189 | |
@Override |
| 190 | |
public List<TypeInfo> getTypesByRefObjectURI(String refObjectURI, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
| 191 | 0 | return luiService.getTypesByRefObjectURI(refObjectURI, context); |
| 192 | |
} |
| 193 | |
|
| 194 | |
@Override |
| 195 | |
public List<TypeInfo> getAllowedTypesForType(String ownerTypeKey, String relatedRefObjectURI, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
| 196 | 0 | return luiService.getAllowedTypesForType(ownerTypeKey, relatedRefObjectURI, context); |
| 197 | |
} |
| 198 | |
|
| 199 | |
@Override |
| 200 | |
public List<TypeTypeRelationInfo> getTypeRelationsByOwnerType(String ownerTypeKey, String relationTypeKey, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
| 201 | 0 | return luiService.getTypeRelationsByOwnerType(ownerTypeKey, relationTypeKey, context); |
| 202 | |
} |
| 203 | |
|
| 204 | |
} |