| 1 | |
package org.kuali.student.enrollment.lpr.service.impl; |
| 2 | |
|
| 3 | |
import java.util.List; |
| 4 | |
|
| 5 | |
|
| 6 | |
import org.kuali.student.common.dto.ContextInfo; |
| 7 | |
import org.kuali.student.common.dto.CriteriaInfo; |
| 8 | |
import org.kuali.student.common.dto.StatusInfo; |
| 9 | |
import org.kuali.student.common.dto.TypeInfo; |
| 10 | |
import org.kuali.student.common.dto.TypeTypeRelationInfo; |
| 11 | |
import org.kuali.student.common.dto.ValidationResultInfo; |
| 12 | |
import org.kuali.student.common.exceptions.AlreadyExistsException; |
| 13 | |
import org.kuali.student.common.exceptions.DisabledIdentifierException; |
| 14 | |
import org.kuali.student.common.exceptions.DoesNotExistException; |
| 15 | |
import org.kuali.student.common.exceptions.InvalidParameterException; |
| 16 | |
import org.kuali.student.common.exceptions.MissingParameterException; |
| 17 | |
import org.kuali.student.common.exceptions.OperationFailedException; |
| 18 | |
import org.kuali.student.common.exceptions.PermissionDeniedException; |
| 19 | |
import org.kuali.student.common.exceptions.ReadOnlyException; |
| 20 | |
import org.kuali.student.datadictionary.dto.DictionaryEntryInfo; |
| 21 | |
import org.kuali.student.enrollment.lpr.dto.LuiPersonRelationInfo; |
| 22 | |
import org.kuali.student.enrollment.lpr.dto.LuiPersonRelationStateInfo; |
| 23 | |
import org.kuali.student.enrollment.lpr.dto.LuiPersonRelationTypeInfo; |
| 24 | |
import org.kuali.student.enrollment.lpr.service.LuiPersonRelationService; |
| 25 | |
import org.kuali.student.enrollment.lpr.service.util.LPRUtility; |
| 26 | |
import org.springframework.core.annotation.Order; |
| 27 | |
import org.springframework.stereotype.Component; |
| 28 | |
|
| 29 | |
@Component |
| 30 | |
@Order(value=2) |
| 31 | 0 | public class LuiPersonRelationServiceValidationImpl implements LuiPersonRelationService { |
| 32 | |
|
| 33 | |
LPRUtility lprUtility; |
| 34 | |
|
| 35 | |
public void setLprUtility(LPRUtility lprUtility) { |
| 36 | 0 | this.lprUtility = lprUtility; |
| 37 | 0 | } |
| 38 | |
|
| 39 | |
@Override |
| 40 | |
public List<LuiPersonRelationStateInfo> findLuiPersonRelationStates(ContextInfo context) throws OperationFailedException { |
| 41 | |
|
| 42 | 0 | return null; |
| 43 | |
} |
| 44 | |
|
| 45 | |
@Override |
| 46 | |
public List<LuiPersonRelationStateInfo> findAllowedRelationStates(String luiPersonRelationType, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
| 47 | |
|
| 48 | 0 | return null; |
| 49 | |
} |
| 50 | |
|
| 51 | |
@Override |
| 52 | |
public LuiPersonRelationInfo fetchLUIPersonRelation(String luiPersonRelationId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 53 | |
|
| 54 | 0 | return null; |
| 55 | |
} |
| 56 | |
|
| 57 | |
@Override |
| 58 | |
public List<LuiPersonRelationInfo> findLuiPersonRelationsByIdList(List<String> luiPersonRelationIdList, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 59 | |
|
| 60 | 0 | return null; |
| 61 | |
} |
| 62 | |
|
| 63 | |
@Override |
| 64 | |
public List<String> findLuiIdsRelatedToPerson(String personId, String luiPersonRelationType, String relationState, ContextInfo context) throws DoesNotExistException, DisabledIdentifierException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 65 | |
|
| 66 | 0 | return null; |
| 67 | |
} |
| 68 | |
|
| 69 | |
@Override |
| 70 | |
public List<String> findPersonIdsRelatedToLui(String luiId, String luiPersonRelationType, String relationState, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 71 | |
|
| 72 | 0 | return null; |
| 73 | |
} |
| 74 | |
|
| 75 | |
@Override |
| 76 | |
public List<LuiPersonRelationInfo> findLuiPersonRelations(String personId, String luiId, ContextInfo context) throws DoesNotExistException, DisabledIdentifierException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 77 | |
|
| 78 | 0 | return null; |
| 79 | |
} |
| 80 | |
|
| 81 | |
@Override |
| 82 | |
public List<String> findLuiPersonRelationIds(String personId, String luiId, ContextInfo context) throws DoesNotExistException, DisabledIdentifierException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 83 | |
|
| 84 | 0 | return null; |
| 85 | |
} |
| 86 | |
|
| 87 | |
@Override |
| 88 | |
public List<LuiPersonRelationInfo> findLuiPersonRelationsForPerson(String personId, ContextInfo context) throws DoesNotExistException, DisabledIdentifierException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 89 | |
|
| 90 | 0 | return null; |
| 91 | |
} |
| 92 | |
|
| 93 | |
@Override |
| 94 | |
public List<String> findLuiPersonRelationIdsForPerson(String personId, ContextInfo context) throws DoesNotExistException, DisabledIdentifierException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 95 | |
|
| 96 | 0 | return null; |
| 97 | |
} |
| 98 | |
|
| 99 | |
@Override |
| 100 | |
public List<LuiPersonRelationInfo> findLuiPersonRelationsForLui(String luiId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 101 | |
|
| 102 | 0 | return null; |
| 103 | |
} |
| 104 | |
|
| 105 | |
@Override |
| 106 | |
public List<String> findLuiPersonRelationIdsForLui(String luiId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 107 | |
|
| 108 | 0 | return null; |
| 109 | |
} |
| 110 | |
|
| 111 | |
@Override |
| 112 | |
public List<ValidationResultInfo> validateLuiPersonRelation(String validationType, LuiPersonRelationInfo luiPersonRelationInfo, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 113 | |
|
| 114 | 0 | return null; |
| 115 | |
} |
| 116 | |
|
| 117 | |
@Override |
| 118 | |
public List<String> findAllValidLuisForPerson(String personId, String luiPersonRelationType, String relationState, String atpId, ContextInfo context) throws DoesNotExistException, DisabledIdentifierException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 119 | |
|
| 120 | 0 | return null; |
| 121 | |
} |
| 122 | |
|
| 123 | |
@Override |
| 124 | |
public List<String> searchForLuiPersonRelationIds(CriteriaInfo criteria, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 125 | |
|
| 126 | 0 | return null; |
| 127 | |
} |
| 128 | |
|
| 129 | |
@Override |
| 130 | |
public String createLuiPersonRelation(String personId, String luiId, String luiPersonRelationType, LuiPersonRelationInfo luiPersonRelationInfo, ContextInfo context) throws AlreadyExistsException, DoesNotExistException, DisabledIdentifierException, ReadOnlyException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 131 | |
|
| 132 | 0 | return null; |
| 133 | |
} |
| 134 | |
|
| 135 | |
@Override |
| 136 | |
public List<String> createBulkRelationshipsForPerson(String personId, List<String> luiIdList, String relationState, String luiPersonRelationType, LuiPersonRelationInfo luiPersonRelationInfo, ContextInfo context) throws AlreadyExistsException, DoesNotExistException, DisabledIdentifierException, ReadOnlyException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 137 | |
|
| 138 | |
|
| 139 | 0 | System.out.println("Inside validation impl for createBulkRelationshipsForPerson"); |
| 140 | 0 | lprUtility.validateDate(luiPersonRelationInfo.getEffectiveDate(), personId ); |
| 141 | 0 | return null; |
| 142 | |
} |
| 143 | |
|
| 144 | |
@Override |
| 145 | |
public List<String> createBulkRelationshipsForLui(String luiId, List<String> personIdList, String relationState, String luiPersonRelationType, LuiPersonRelationInfo luiPersonRelationInfo, ContextInfo context) throws AlreadyExistsException, DoesNotExistException, DisabledIdentifierException, ReadOnlyException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 146 | |
|
| 147 | 0 | return null; |
| 148 | |
} |
| 149 | |
|
| 150 | |
@Override |
| 151 | |
public LuiPersonRelationInfo updateLuiPersonRelation(String luiPersonRelationId, LuiPersonRelationInfo luiPersonRelationInfo, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, ReadOnlyException, OperationFailedException, PermissionDeniedException { |
| 152 | |
|
| 153 | 0 | return null; |
| 154 | |
} |
| 155 | |
|
| 156 | |
@Override |
| 157 | |
public StatusInfo deleteLuiPersonRelation(String luiPersonRelationId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 158 | |
|
| 159 | 0 | return null; |
| 160 | |
} |
| 161 | |
|
| 162 | |
@Override |
| 163 | |
public StatusInfo updateRelationState(String luiPersonRelationId, LuiPersonRelationStateInfo relationState, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 164 | |
|
| 165 | 0 | return null; |
| 166 | |
} |
| 167 | |
|
| 168 | |
@Override |
| 169 | |
public DictionaryEntryInfo getDataDictionaryEntry(String entryKey, ContextInfo context) throws OperationFailedException, MissingParameterException, PermissionDeniedException, DoesNotExistException { |
| 170 | |
|
| 171 | 0 | return null; |
| 172 | |
} |
| 173 | |
|
| 174 | |
@Override |
| 175 | |
public List<String> getDataDictionaryEntryKeys(ContextInfo context) throws OperationFailedException, MissingParameterException, PermissionDeniedException { |
| 176 | |
|
| 177 | 0 | return null; |
| 178 | |
} |
| 179 | |
|
| 180 | |
@Override |
| 181 | |
public TypeInfo getType(String typeKey, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
| 182 | |
|
| 183 | 0 | return null; |
| 184 | |
} |
| 185 | |
|
| 186 | |
@Override |
| 187 | |
public List<TypeInfo> getTypesByRefObjectURI(String refObjectURI, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
| 188 | |
|
| 189 | 0 | return null; |
| 190 | |
} |
| 191 | |
|
| 192 | |
@Override |
| 193 | |
public List<TypeInfo> getAllowedTypesForType(String ownerTypeKey, String relatedRefObjectURI, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
| 194 | |
|
| 195 | 0 | return null; |
| 196 | |
} |
| 197 | |
|
| 198 | |
@Override |
| 199 | |
public List<TypeTypeRelationInfo> getTypeRelationsByOwnerType(String ownerTypeKey, String relationTypeKey, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException { |
| 200 | |
|
| 201 | 0 | return null; |
| 202 | |
} |
| 203 | |
|
| 204 | |
|
| 205 | |
|
| 206 | |
} |