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