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