View Javadoc

1   /*
2    * Copyright 2011 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may	obtain a copy of the License at
7    *
8    * 	http://www.osedu.org/licenses/ECL-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.student.kim.mock;
17  
18  import org.kuali.rice.kim.bo.role.dto.KimPermissionInfo;
19  import org.kuali.rice.kim.bo.role.dto.KimPermissionTemplateInfo;
20  import org.kuali.rice.kim.bo.role.dto.PermissionAssigneeInfo;
21  import org.kuali.rice.kim.bo.types.dto.AttributeSet;
22  
23  import java.util.*;
24  import org.kuali.rice.kim.service.PermissionService;
25  
26  /**
27   * @author nwright
28   */
29  public class MockPermissionServiceImpl implements PermissionService {
30  
31      @Override
32      public List<KimPermissionTemplateInfo> getAllTemplates() {
33          throw new UnsupportedOperationException("Not supported yet.");
34      }
35  
36      @Override
37      public List<KimPermissionInfo> getAuthorizedPermissions(String string, String string1, String string2, AttributeSet as, AttributeSet as1) {
38          throw new UnsupportedOperationException("Not supported yet.");
39      }
40  
41      @Override
42      public List<KimPermissionInfo> getAuthorizedPermissionsByTemplateName(String string, String string1, String string2, AttributeSet as, AttributeSet as1) {
43          throw new UnsupportedOperationException("Not supported yet.");
44      }
45  
46      @Override
47      public KimPermissionInfo getPermission(String string) {
48          throw new UnsupportedOperationException("Not supported yet.");
49      }
50  
51      @Override
52      public List<PermissionAssigneeInfo> getPermissionAssignees(String string, String string1, AttributeSet as, AttributeSet as1) {
53          throw new UnsupportedOperationException("Not supported yet.");
54      }
55  
56      @Override
57      public List<PermissionAssigneeInfo> getPermissionAssigneesForTemplateName(String string, String string1, AttributeSet as, AttributeSet as1) {
58          throw new UnsupportedOperationException("Not supported yet.");
59      }
60  
61      @Override
62      public String getPermissionDetailLabel(String string, String string1, String string2) {
63          throw new UnsupportedOperationException("Not supported yet.");
64      }
65  
66      @Override
67      public KimPermissionTemplateInfo getPermissionTemplate(String string) {
68          throw new UnsupportedOperationException("Not supported yet.");
69      }
70  
71      @Override
72      public KimPermissionTemplateInfo getPermissionTemplateByName(String string, String string1) {
73          throw new UnsupportedOperationException("Not supported yet.");
74      }
75  
76      @Override
77      public List<KimPermissionInfo> getPermissionsByName(String string, String string1) {
78          throw new UnsupportedOperationException("Not supported yet.");
79      }
80  
81      @Override
82      public List<KimPermissionInfo> getPermissionsByNameIncludingInactive(String string, String string1) {
83          throw new UnsupportedOperationException("Not supported yet.");
84      }
85  
86      @Override
87      public List<KimPermissionInfo> getPermissionsByTemplateName(String string, String string1) {
88          throw new UnsupportedOperationException("Not supported yet.");
89      }
90  
91      @Override
92      public List<String> getRoleIdsForPermission(String string, String string1, AttributeSet as) {
93          throw new UnsupportedOperationException("Not supported yet.");
94      }
95  
96      @Override
97      public List<String> getRoleIdsForPermissionId(String string) {
98          throw new UnsupportedOperationException("Not supported yet.");
99      }
100 
101     @Override
102     public List<String> getRoleIdsForPermissions(List<KimPermissionInfo> list) {
103         throw new UnsupportedOperationException("Not supported yet.");
104     }
105 
106     @Override
107     public boolean hasPermission(String string, String string1, String string2, AttributeSet as) {
108         throw new UnsupportedOperationException("Not supported yet.");
109     }
110 
111     @Override
112     public boolean hasPermissionByTemplateName(String string, String string1, String string2, AttributeSet as) {
113         throw new UnsupportedOperationException("Not supported yet.");
114     }
115 
116     @Override
117     public boolean isAuthorized(String string, String string1, String string2, AttributeSet as, AttributeSet as1) {
118         return true;
119     }
120 
121     @Override
122     public boolean isAuthorizedByTemplateName(String string, String string1, String string2, AttributeSet as, AttributeSet as1) {
123         throw new UnsupportedOperationException("Not supported yet.");
124     }
125 
126     @Override
127     public boolean isPermissionDefined(String string, String string1, AttributeSet as) {
128         throw new UnsupportedOperationException("Not supported yet.");
129     }
130 
131     @Override
132     public boolean isPermissionDefinedForTemplateName(String string, String string1, AttributeSet as) {
133         throw new UnsupportedOperationException("Not supported yet.");
134     }
135 
136     @Override
137     public List<KimPermissionInfo> lookupPermissions(Map<String, String> map, boolean bln) {
138         throw new UnsupportedOperationException("Not supported yet.");
139     }
140 
141 }
142