Coverage Report - org.kuali.student.kim.permission.mock.RoleServiceMockImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
RoleServiceMockImpl
0%
0/145
0%
0/84
2.41
 
 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.permission.mock;
 17  
 
 18  
 import java.util.*;
 19  
 
 20  
 import org.joda.time.DateTime;
 21  
 import org.kuali.rice.core.api.criteria.QueryByCriteria;
 22  
 import org.kuali.rice.core.api.delegation.DelegationType;
 23  
 import org.kuali.rice.core.api.exception.RiceIllegalArgumentException;
 24  
 import org.kuali.rice.core.api.exception.RiceIllegalStateException;
 25  
 import org.kuali.rice.core.api.util.jaxb.MapStringStringAdapter;
 26  
 import org.kuali.rice.kim.api.KimConstants;
 27  
 import org.kuali.rice.kim.api.common.delegate.DelegateMember;
 28  
 import org.kuali.rice.kim.api.common.delegate.DelegateType;
 29  
 
 30  
 import org.kuali.rice.kim.api.group.GroupService;
 31  
 import org.kuali.rice.kim.api.role.*;
 32  
 import org.kuali.rice.core.api.membership.MemberType;
 33  
 import org.kuali.rice.kim.framework.type.KimTypeService;
 34  
 
 35  
 import javax.jws.WebParam;
 36  
 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
 37  
 
 38  
 /**
 39  
  * @author nwright
 40  
  */
 41  0
 public class RoleServiceMockImpl implements RoleService {
 42  
 
 43  0
     private transient Map<String, Role> roleCache = new HashMap<String, Role>();
 44  0
     private transient Map<String, RoleMembership> roleMembershipCache = new HashMap<String, RoleMembership>();
 45  0
     private transient Map<String, RoleMember> roleMemberCompleteInfoCache = new HashMap<String, RoleMember>();
 46  
     private GroupService groupService;
 47  
     private KimTypeService kimTypeInfoService;
 48  
 
 49  
     public GroupService getGroupService() {
 50  0
         return groupService;
 51  
     }
 52  
 
 53  
     public void setGroupService(GroupService groupService) {
 54  0
         this.groupService = groupService;
 55  0
     }
 56  
 
 57  
     public KimTypeService getKimTypeService() {
 58  0
         return kimTypeInfoService;
 59  
     }
 60  
 
 61  
     public void setKimTypeService(KimTypeService kimTypeInfoService) {
 62  0
         this.kimTypeInfoService = kimTypeInfoService;
 63  0
     }
 64  
 
 65  
 
 66  
     /**
 67  
      * Get the KIM Role object with the given ID.
 68  
      *
 69  
      * If the roleId is blank, this method returns <code>null</code>.
 70  
      */
 71  
     @Override
 72  
     public Role getRole(String roleId) {
 73  0
         return roleCache.get(roleId);
 74  
     }
 75  
 
 76  
     /**
 77  
      * Get the KIM Role objects for the role IDs in the given List.
 78  
      */
 79  
     @Override
 80  
     public List<Role> getRoles(List<String> roleIds) {
 81  0
         List<Role> list = new ArrayList<Role>();
 82  0
         for (String roleId : roleIds) {
 83  0
             list.add(this.getRole(roleId));
 84  
         }
 85  0
         return list;
 86  
     }
 87  
 
 88  
     /**
 89  
      * Get the KIM Role object with the unique combination of namespace, component,
 90  
      * and role name.
 91  
      *
 92  
      * If any parameter is blank, this method returns <code>null</code>.
 93  
      */
 94  
     @Override
 95  
     public Role getRoleByNamespaceCodeAndName(String namespaceCode, String roleName) {
 96  0
         for (Role role : this.roleCache.values()) {
 97  0
             if (namespaceCode.equals(role.getNamespaceCode())) {
 98  0
                 if (roleName.equals(role.getName())) {
 99  0
                     return role;
 100  
                 }
 101  
             }
 102  
         }
 103  0
         return null;
 104  
     }
 105  
 
 106  
     /**
 107  
      * Return the Role ID for the given unique combination of namespace,
 108  
      * component and role name.
 109  
      */
 110  
     @Override
 111  
     public String getRoleIdByNamespaceCodeAndName(String namespaceCode, String roleName) {
 112  0
         for (Role role : this.roleCache.values()) {
 113  0
             if (namespaceCode.equals(role.getNamespaceCode())) {
 114  0
                 if (roleName.equals(role.getName())) {
 115  0
                     return role.getId();
 116  
                 }
 117  
             }
 118  
         }
 119  0
         return null;
 120  
     }
 121  
 
 122  
     /**
 123  
      * Checks whether the role with the given role ID is active.
 124  
      *
 125  
      * @param roleId
 126  
      * @return
 127  
      */
 128  
     @Override
 129  
     public boolean isRoleActive(String roleId) {
 130  0
         return this.getRole(roleId).isActive();
 131  
     }
 132  
 
 133  
     /**
 134  
      * Returns a list of role qualifiers that the given principal has without taking into consideration
 135  
      * that the principal may be a member via an assigned group or role.  Use in situations where
 136  
      * you are only interested in the qualifiers that are directly assigned to the principal.
 137  
      */
 138  
 //    @Override
 139  
     public List<Map<String,String>> getRoleQualifiersForPrincipal(String principalId, List<String> roleIds, Map<String,String> qualification) {
 140  0
         throw new UnsupportedOperationException("Not supported Yet");
 141  
     }
 142  
 
 143  
     /**
 144  
      * Returns a list of role qualifiers that the given principal has without taking into consideration
 145  
      * that the principal may be a member via an assigned group or role.  Use in situations where
 146  
      * you are only interested in the qualifiers that are directly assigned to the principal.
 147  
      */
 148  
 //    @Override
 149  
     public List<Map<String,String>> getRoleQualifiersForPrincipal(String principalId, String namespaceCode, String roleName, Map<String,String> qualification) {
 150  0
         throw new UnsupportedOperationException("Not supported Yet");
 151  
     }
 152  
   
 153  
 
 154  
 //    @Override
 155  
     public List<Map<String, String>> getNestedRoleQualifiersForPrincipal(String principalId, String namespaceCode, String roleName, Map<String, String> qualification) {
 156  0
         throw new UnsupportedOperationException("Not supported yet.");
 157  
     }
 158  
 
 159  
 //    @Override
 160  
     public List<Map<String, String>> getNestedRoleQualifiersForPrincipal(String principalId, List<String> roleIds, Map<String, String> qualification) {
 161  0
         throw new UnsupportedOperationException("Not supported yet.");
 162  
     }
 163  
 
 164  
     
 165  
     // --------------------
 166  
     // Role Membership Checks
 167  
     // --------------------
 168  
     /**
 169  
      * Get all the role members (groups and principals) associated with the given list of roles
 170  
      * where their role membership/assignment matches the given qualification.
 171  
      *
 172  
      * The return object will have each membership relationship along with the delegations
 173  
      *
 174  
      */
 175  
     @Override
 176  
     public List<RoleMembership> getRoleMembers(List<String> roleIds, Map<String,String> qualification) {
 177  0
         List<RoleMembership> list = new ArrayList<RoleMembership>();
 178  0
         for (RoleMembership info : this.roleMembershipCache.values()) {
 179  0
             if (roleIds.contains(info.getRoleId())) {
 180  0
                 if (matchesQualifiers(info, qualification)) {
 181  0
                     list.add(info);
 182  
                 }
 183  
             }
 184  
         }
 185  0
         return list;
 186  
     }
 187  
 
 188  
     private boolean matchesQualifiers(RoleMembership info, Map<String,String> qualification) {
 189  
         // TODO: implement check
 190  0
         return true;
 191  
     }
 192  
 
 193  
     private Collection<String> getAllRoleMemberPrincipalIds(String roleId, Map<String,String> qualification) {
 194  0
         Collection<String> principals = new ArrayList<String>();
 195  0
         for (RoleMembership info : this.roleMembershipCache.values()) {
 196  0
             if (roleId.equals(info.getRoleId())) {
 197  0
                 if (matchesQualifiers(info, qualification)) {
 198  0
                     if (info.getType().equals(KimConstants.KimGroupMemberTypes.PRINCIPAL_MEMBER_TYPE)) {
 199  0
                         principals.add(info.getMemberId());
 200  0
                     } else if (info.getType().equals(KimConstants.KimGroupMemberTypes.GROUP_MEMBER_TYPE)) {
 201  0
                         principals.addAll(groupService.getMemberPrincipalIds(info.getMemberId()));
 202  
 //                    } else if (info.getMemberTypeCode().equals(Role.ROLE_MEMBER_TYPE)) {
 203  
 //                        principals.addAll(this.getAllRoleMemberPrincipalIds(info.getMemberId(), qualification));
 204  
                     }
 205  
                 }
 206  
             }
 207  
         }
 208  0
         return principals;
 209  
     }
 210  
 
 211  
     /**
 212  
      * This method gets all the members, then traverses down into members of type role and group to obtain the nested principal ids
 213  
      *
 214  
      * @return list of member principal ids
 215  
      */
 216  
     @Override
 217  
     public Collection<String> getRoleMemberPrincipalIds(String namespaceCode, String roleName, Map<String,String> qualification) {
 218  0
         Role roleInfo = this.getRoleByNamespaceCodeAndName(namespaceCode, roleName);
 219  0
         if (roleInfo == null) {
 220  0
             throw new IllegalArgumentException("role name not found");
 221  
         }
 222  0
         return this.getAllRoleMemberPrincipalIds(roleName, qualification);
 223  
     }
 224  
 
 225  
     private boolean principalHasThisRole(String principalId, String roleId, Map<String,String> qualification) {
 226  0
         return (this.getAllRoleMemberPrincipalIds(roleId, qualification).contains(principalId));
 227  
     }
 228  
 
 229  
     /**
 230  
      * Returns whether the given principal has any of the passed role IDs with the given qualification.
 231  
      */
 232  
     @Override
 233  
     public boolean principalHasRole(String principalId, List<String> roleIds, Map<String,String> qualification) {
 234  0
         for (String roleId : roleIds) {
 235  0
             if (this.principalHasThisRole(principalId, roleId, qualification)) {
 236  0
                 return true;
 237  
             }
 238  
         }
 239  0
         return false;
 240  
     }
 241  
 
 242  
     /**
 243  
      * Returns the subset of the given principal ID list which has the given role and qualification.
 244  
      * This is designed to be used by lookups of people by their roles.
 245  
      */
 246  
     @Override
 247  
     public List<String> getPrincipalIdSubListWithRole(List<String> principalIds,
 248  
             String roleNamespaceCode, String roleName, Map<String,String> qualification) {
 249  0
         List<String> subList = new ArrayList<String>();
 250  0
         Role role = getRoleByNamespaceCodeAndName(roleNamespaceCode, roleName);
 251  0
         for (String principalId : principalIds) {
 252  0
             if (principalHasThisRole(principalId, role.getId(), qualification)) {
 253  0
                 subList.add(principalId);
 254  
             }
 255  
         }
 256  0
         return subList;
 257  
     }
 258  
 
 259  
     @Override
 260  
     public RoleQueryResults findRoles(@WebParam(name = "query") QueryByCriteria queryByCriteria) throws RiceIllegalArgumentException {
 261  0
         throw new UnsupportedOperationException("Not supported Yet");
 262  
     }
 263  
 
 264  
     /**
 265  
      * Notifies all of a principal's roles and role types that the principal has been inactivated.
 266  
      */
 267  
 
 268  
     // TODO: RICE=M9 UPGRADE The function of this method has been internalized in rice m9
 269  
     // The function of this method has been internalized in rice m9
 270  
 
 271  
 
 272  
 //    @Override
 273  
     public void principalInactivated(String principalId) {
 274  0
         for (RoleMembership membership : this.roleMembershipCache.values()) {
 275  0
             if (membership.getType().equals(KimConstants.KimGroupMemberTypes.PRINCIPAL_MEMBER_TYPE)) {
 276  0
                 if (principalId.equals(membership.getMemberId())) {
 277  0
                     this.roleMembershipCache.remove(membership.getMemberId());
 278  
                 }
 279  
             }
 280  
         }
 281  0
     }
 282  
 
 283  
 
 284  
     /**
 285  
      * Notifies the role service that the role with the given id has been inactivated.
 286  
      */
 287  
 
 288  
     // TODO: RICE=M9 UPGRADE The function of this method has been internalized in rice m9
 289  
     // The function of this method has been internalized in rice m9
 290  
 //    @Override
 291  
     public void roleInactivated(String roleId) {
 292  0
         for (RoleMembership membership : this.roleMembershipCache.values()) {
 293  0
             if (membership.getType().getCode().equals(MemberType.ROLE.getCode())) {
 294  0
                 if (roleId.equals(membership.getMemberId())) {
 295  0
                     this.roleMembershipCache.remove(membership.getMemberId());
 296  
                 }
 297  0
                 if (roleId.equals(membership.getRoleId())) {
 298  0
                     this.roleMembershipCache.remove(membership.getMemberId());
 299  
                 }
 300  
             }
 301  
         }
 302  0
         this.roleCache.remove(roleId);
 303  0
     }
 304  
 
 305  
 
 306  
 
 307  
     /**
 308  
      * Notifies the role service that the group with the given id has been inactivated.
 309  
      */
 310  
 
 311  
     // The function of this method has been internalized in rice m9
 312  
 //    @Override
 313  
     public void groupInactivated(String groupId) {
 314  0
         for (RoleMembership membership : this.roleMembershipCache.values()) {
 315  0
             if (membership.getType().equals(KimConstants.KimGroupMemberTypes.GROUP_MEMBER_TYPE)) {
 316  0
                 if (groupId.equals(membership.getMemberId())) {
 317  0
                     this.roleMembershipCache.remove(membership.getMemberId());
 318  
                 }
 319  
             }
 320  
         }
 321  0
     }
 322  
 
 323  
 
 324  
 
 325  
     /**
 326  
      * Gets all direct members of the roles that have ids within the given list
 327  
      * of role ids.  This method does not recurse into any nested roles.
 328  
      *
 329  
      *  <p>The resulting List of role membership will contain membership for
 330  
      *  all the roles with the specified ids.  The list is not guaranteed to be
 331  
      *  in any particular order and may have membership info for the
 332  
      *  different roles interleaved with each other.
 333  
      */
 334  
     @Override
 335  
     public List<RoleMembership> getFirstLevelRoleMembers(List<String> roleIds) {
 336  0
         List<RoleMembership> list = new ArrayList<RoleMembership>();
 337  0
         for (RoleMembership membership : this.roleMembershipCache.values()) {
 338  0
             if (roleIds.contains(membership.getRoleId())) {
 339  0
                 this.roleMembershipCache.remove(membership.getMemberId());
 340  
             }
 341  
         }
 342  0
         return list;
 343  
     }
 344  
 
 345  
     /**
 346  
      * Gets role member information based on the given search criteria.  The
 347  
      * map of criteria contains attributes of RoleMembership as it's
 348  
      * key and the values to search on as the value.
 349  
      */
 350  
     @Override
 351  
     public RoleMemberQueryResults findRoleMembers(QueryByCriteria queryByCriteria) {
 352  0
         throw new UnsupportedOperationException("Not supported yet.");
 353  
     }
 354  
 
 355  
     @Override
 356  
     public Set<String> getRoleTypeRoleMemberIds(@WebParam(name = "roleId") String roleId) throws RiceIllegalArgumentException {
 357  0
         throw new UnsupportedOperationException("Not supported Yet");
 358  
     }
 359  
 
 360  
 
 361  
     /**
 362  
      *
 363  
      * Gets a list of Roles that the given member belongs to.
 364  
      *
 365  
      */
 366  
     @Override
 367  
     public List<String> getMemberParentRoleIds(String memberType, String memberId) {
 368  0
         List<String> list = new ArrayList<String>();
 369  0
         for (RoleMembership membership : this.roleMembershipCache.values()) {
 370  0
             if (memberType.equals(membership.getType().getCode())) {
 371  0
                 if (memberId.equals(membership.getMemberId())) {
 372  0
                     list.add(membership.getRoleId());
 373  
                 }
 374  
             }
 375  
         }
 376  0
         return list;
 377  
     }
 378  
 
 379  
 
 380  
 
 381  
     @Override
 382  
     public RoleMembershipQueryResults findRoleMemberships(QueryByCriteria queryByCriteria) {
 383  0
         throw new UnsupportedOperationException("Not supported yet.");
 384  
     }
 385  
 
 386  
     @Override
 387  
     public DelegateMemberQueryResults findDelegateMembers(QueryByCriteria queryByCriteria) {
 388  0
         throw new UnsupportedOperationException("Not supported yet.");
 389  
     }
 390  
 
 391  
    
 392  
 
 393  
     /**
 394  
      * Gets delegation member information based on the given search criteria.  The
 395  
      * map of criteria contains attributes of DelegateInfo as it's
 396  
      * key and the values to search on as the value.
 397  
      */
 398  
     @Override
 399  
     public List<DelegateMember> getDelegationMembersByDelegationId(String delegationId) {
 400  0
         throw new UnsupportedOperationException("Not supported Yet");
 401  
     }
 402  
 
 403  
     @Override
 404  
     public DelegateMember getDelegationMemberByDelegationAndMemberId(String delegationId, String memberId) {
 405  0
         throw new UnsupportedOperationException("Not supported Yet");
 406  
     }
 407  
 
 408  
     @Override
 409  
     public DelegateMember getDelegationMemberById(String delegationMemberId) {
 410  0
         throw new UnsupportedOperationException("Not supported Yet");
 411  
     }
 412  
 
 413  
     @Override
 414  
     public List<RoleResponsibility> getRoleResponsibilities(String roleId) {
 415  0
         throw new UnsupportedOperationException("Not supported Yet");
 416  
     }
 417  
 
 418  
     @Override
 419  
     public List<RoleResponsibilityAction> getRoleMemberResponsibilityActions(String roleMemberId) {
 420  0
         throw new UnsupportedOperationException("Not supported yet.");
 421  
     }
 422  
 
 423  
     @Override
 424  
     public DelegateType getDelegateTypeByRoleIdAndDelegateTypeCode(@WebParam(name = "roleId") String roleId,
 425  
             @WebParam(name = "delegateType") DelegationType delegateType)  throws RiceIllegalArgumentException{
 426  0
         throw new UnsupportedOperationException("Not supported Yet");
 427  
     }
 428  
 
 429  
     @Override
 430  
     public DelegateType getDelegateTypeByDelegationId(@WebParam(name = "delegationId") String delegationId) throws RiceIllegalArgumentException {
 431  0
         throw new UnsupportedOperationException("Not supported Yet");
 432  
     }
 433  
 
 434  
     @Override
 435  
     public DelegateType updateDelegateType(@WebParam(name="delegateType") DelegateType delegateType) throws RiceIllegalArgumentException, RiceIllegalStateException{
 436  0
         throw new UnsupportedOperationException("Not supported Yet");
 437  
     }
 438  
 
 439  
 
 440  
 
 441  
 //    @Override
 442  
     public List<Role> lookupRoles(Map<String, String> searchCriteria) {
 443  0
         throw new UnsupportedOperationException("Not supported Yet");
 444  
     }
 445  
 
 446  
     @Override
 447  
     public RoleMember assignGroupToRole(String groupId, String namespaceCode,
 448  
             String roleName, Map<String,String> qualifications)
 449  
             throws UnsupportedOperationException {
 450  0
         throw new UnsupportedOperationException("Not supported yet.");
 451  
     }
 452  
 
 453  
     @Override
 454  
     public void assignPermissionToRole(String permissionId, String roleId) throws UnsupportedOperationException {
 455  0
         throw new UnsupportedOperationException("Not supported yet.");
 456  
     }
 457  
 
 458  
     @Override
 459  
     public RoleMember assignPrincipalToRole(String principalId, String namespaceCode,
 460  
             String roleName, Map<String,String> qualifications)
 461  
             throws UnsupportedOperationException {
 462  0
         Role roleInfo = null;
 463  0
         for (Role role : this.roleCache.values()) {
 464  0
             if (namespaceCode.equals(role.getNamespaceCode())) {
 465  0
                 roleInfo = role;
 466  0
                 break;
 467  
             }
 468  0
             if (null == roleInfo) {
 469  0
                 String id = UUID.randomUUID().toString();
 470  0
                 String description = roleName + " description";
 471  0
                 String kimTypeId = null;
 472  0
                 Role.Builder bldr = Role.Builder.create(id, roleName, namespaceCode, description, kimTypeId);
 473  0
                 roleInfo = bldr.build();
 474  0
                 this.roleCache.put(roleInfo.getId(), roleInfo);
 475  
             }
 476  0
             RoleMembership roleMembershipInfo = null;
 477  0
             if (roleName.equals(roleInfo.getName())) {
 478  0
                 for (RoleMembership rmInfo : roleMembershipCache.values()) {
 479  0
                     if (rmInfo.getRoleId().equals(roleInfo.getId())) {
 480  0
                         roleMembershipInfo = rmInfo;
 481  
                     }
 482  
                 }
 483  
             }
 484  0
             if (null == roleMembershipInfo) {
 485  
                 // roleMembershipInfo = new RoleMembership(roleInfo.getRoleId(), roleMemberId, memberId, memberTypeCode, qualifier)
 486  
             }
 487  
             
 488  0
         }
 489  
 
 490  0
         throw new UnsupportedOperationException("Not supported yet.");
 491  
     }
 492  
 
 493  
     @Override
 494  
     public RoleMember assignRoleToRole(String roleId, String namespaceCode,
 495  
             String roleName, Map<String,String> qualifications)
 496  
             throws UnsupportedOperationException {
 497  0
         throw new UnsupportedOperationException("Not supported yet.");
 498  
     }
 499  
 
 500  
     @Override
 501  
     public void removeGroupFromRole(String groupId, String namespaceCode,
 502  
             String roleName, Map<String,String> qualifications)
 503  
             throws UnsupportedOperationException {
 504  0
         throw new UnsupportedOperationException("Not supported yet.");
 505  
     }
 506  
 
 507  
     @Override
 508  
     public void removePrincipalFromRole(String principalId, String namespaceCode,
 509  
             String roleName,
 510  
             Map<String,String> qualifications) throws UnsupportedOperationException {
 511  0
         throw new UnsupportedOperationException("Not supported yet.");
 512  
     }
 513  
 
 514  
     @Override
 515  
     public void removeRoleFromRole(String roleId, String namespaceCode,
 516  
             String roleName, Map<String,String> qualifications)
 517  
             throws UnsupportedOperationException {
 518  0
         throw new UnsupportedOperationException("Not supported yet.");
 519  
     }
 520  
 
 521  
     @Override
 522  
     public RoleResponsibilityAction createRoleResponsibilityAction(@WebParam(name = "roleResponsibilityAction") RoleResponsibilityAction roleResponsibilityAction) throws RiceIllegalArgumentException {
 523  0
         throw new UnsupportedOperationException("Not supported yet.");
 524  
     }
 525  
 
 526  
 //    @Override
 527  
     public void saveDelegationMemberForRole(String delegationMemberId,
 528  
             String roleMemberId, String memberId,
 529  
             String memberTypeCode,
 530  
             String delegationTypeCode,
 531  
             String roleId,
 532  
             Map<String,String> qualifications,
 533  
             DateTime activeFromDate, DateTime activeToDate)
 534  
             throws UnsupportedOperationException {
 535  0
         throw new UnsupportedOperationException("Not supported yet.");
 536  
     }
 537  
 
 538  
 //    @Override
 539  
     public void saveRole(String roleId, String roleName, String roleDescription,
 540  
             boolean active, String kimTypeId, String namespaceCode)
 541  
             throws UnsupportedOperationException {
 542  0
         throw new UnsupportedOperationException("Not supported yet.");
 543  
     }
 544  
 
 545  
 
 546  
 //    @Override
 547  
     public RoleMember saveRoleMemberForRole(String roleMemberId,
 548  
                 String memberId,
 549  
                 String memberTypeCode,
 550  
                 String roleId,
 551  
                 Map<String, String> qualifications,
 552  
                 DateTime activeFromDate,
 553  
                 DateTime activeToDate) throws RiceIllegalArgumentException {
 554  0
         throw new UnsupportedOperationException("Not supported yet.");
 555  
     }
 556  
 
 557  
 //    @Override
 558  
     public void saveRoleRspActions(String roleResponsibilityActionId,
 559  
             String roleId, String roleResponsibilityId,
 560  
             String roleMemberId, String actionTypeCode,
 561  
             String actionPolicyCode, Integer priorityNumber,
 562  
             Boolean forceAction) {
 563  0
         throw new UnsupportedOperationException("Not supported yet.");
 564  
     }
 565  
 
 566  
     @Override
 567  
     public RoleMember createRoleMember(RoleMember roleMember) throws RiceIllegalArgumentException, RiceIllegalStateException {
 568  0
          throw new UnsupportedOperationException("Not supported yet.");
 569  
     }
 570  
 
 571  
     @Override
 572  
     public RoleMember updateRoleMember(RoleMember roleMember) throws RiceIllegalArgumentException, RiceIllegalStateException{
 573  0
         throw new UnsupportedOperationException("Not supported yet.");
 574  
     }
 575  
 
 576  
     @Override
 577  
     public Role createRole(Role role) throws RiceIllegalArgumentException, RiceIllegalStateException {
 578  0
           throw new UnsupportedOperationException("Not supported yet.");
 579  
     }
 580  
 
 581  
     @Override
 582  
     public Role updateRole(Role role) throws RiceIllegalArgumentException, RiceIllegalStateException {
 583  0
          throw new UnsupportedOperationException("Not supported yet.");
 584  
     }
 585  
 
 586  
     @Override
 587  
     public        List<Map<String, String>> getNestedRoleQualifiersForPrincipalByRoleIds(
 588  
             String principalId, List<String> roleIds, Map<String, String> qualification)
 589  
             throws RiceIllegalArgumentException{
 590  0
            throw new UnsupportedOperationException("Not supported yet.");
 591  
     }
 592  
 
 593  
     @Override
 594  
     public  List<Map<String, String>> getRoleQualifersForPrincipalByNamespaceAndRolename(
 595  
             String principalId, String namespaceCode, String roleName, Map<String, String> qualification)
 596  
             throws RiceIllegalArgumentException {
 597  0
             throw new UnsupportedOperationException("Not supported yet.");
 598  
     }
 599  
 
 600  
     @Override
 601  
     public List<Map<String, String>> getRoleQualifersForPrincipalByRoleIds(String principalId,
 602  
             List<String> roleIds, Map<String, String> qualification) throws RiceIllegalArgumentException {
 603  0
             throw new UnsupportedOperationException("Not supported yet.");
 604  
     }
 605  
 
 606  
     @Override
 607  
     public  List<Map<String, String>> getNestedRoleQualifersForPrincipalByNamespaceAndRolename(
 608  
             String principalId, String namespaceCode,
 609  
             String roleName,  Map<String, String> qualification)
 610  
             throws RiceIllegalArgumentException {
 611  0
             throw new UnsupportedOperationException("Not supported yet.");
 612  
     }
 613  
 
 614  
     @Override
 615  
     public DelegateType createDelegateType(DelegateType delegateType) throws RiceIllegalArgumentException, RiceIllegalStateException {
 616  0
         throw new UnsupportedOperationException("Not supported yet.");
 617  
     }
 618  
 
 619  
     @Override
 620  
     public void revokePermissionFromRole(String permissionId, String roleId) throws RiceIllegalArgumentException {
 621  0
         throw new UnsupportedOperationException("Not supported yet.");
 622  
     }
 623  
 }
 624