1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
package org.kuali.student.lum.kim.permission.type; |
20 | |
|
21 | |
import java.util.ArrayList; |
22 | |
import java.util.HashSet; |
23 | |
import java.util.List; |
24 | |
import java.util.Map; |
25 | |
import java.util.Set; |
26 | |
|
27 | |
import org.kuali.rice.kim.api.KimConstants; |
28 | |
import org.kuali.rice.krad.kim.DocumentTypePermissionTypeServiceImpl; |
29 | |
import org.kuali.student.common.rice.StudentIdentityConstants; |
30 | |
import org.kuali.student.lum.kim.KimQualificationHelper; |
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | 0 | public class TranslatedDocumentTypePermissionTypeServiceImpl extends DocumentTypePermissionTypeServiceImpl { |
37 | |
|
38 | 0 | private static Set<List<String>> attributes = new HashSet<List<String>>(); |
39 | |
|
40 | |
{ |
41 | |
|
42 | 0 | List<String> listOne = new ArrayList<String>(); |
43 | 0 | listOne.add( KimConstants.AttributeConstants.DOCUMENT_NUMBER ); |
44 | 0 | attributes.add(listOne); |
45 | |
|
46 | 0 | List<String> listTwo = new ArrayList<String>(); |
47 | 0 | listTwo.add( KimConstants.AttributeConstants.DOCUMENT_TYPE_NAME ); |
48 | 0 | listTwo.add( StudentIdentityConstants.QUALIFICATION_KEW_OBJECT_ID ); |
49 | 0 | attributes.add(listTwo); |
50 | |
|
51 | 0 | for (String proposalReferenceType : StudentIdentityConstants.QUALIFICATION_PROPOSAL_ID_REF_TYPES) { |
52 | 0 | List<String> tempList = new ArrayList<String>(); |
53 | 0 | tempList.add( proposalReferenceType ); |
54 | 0 | attributes.add(tempList); |
55 | 0 | } |
56 | |
|
57 | |
|
58 | |
|
59 | |
|
60 | |
|
61 | 0 | } |
62 | |
|
63 | |
|
64 | |
public Map<String,String> translateInputAttributeSet(Map<String,String> qualification) { |
65 | 0 | return KimQualificationHelper.translateInputAttributeSet(qualification); |
66 | |
} |
67 | |
|
68 | |
@Override |
69 | |
protected void validateRequiredAttributesAgainstReceived(Map<String,String> receivedAttributes) { |
70 | |
|
71 | 0 | KimQualificationHelper.validateRequiredAttributesAgainstReceived(attributes, receivedAttributes, isCheckRequiredAttributes(), COMMA_SEPARATOR); |
72 | |
|
73 | 0 | super.validateRequiredAttributesAgainstReceived(receivedAttributes); |
74 | 0 | } |
75 | |
|
76 | |
} |