Coverage Report - org.kuali.rice.kim.web.struts.action.IdentityManagementRoleInquiry
 
Classes in this File Line Coverage Branch Coverage Complexity
IdentityManagementRoleInquiry
0%
0/7
N/A
1
 
 1  
 /*
 2  
  * Copyright 2007-2009 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.opensource.org/licenses/ecl2.php
 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.rice.kim.web.struts.action;
 17  
 
 18  
 import javax.servlet.http.HttpServletRequest;
 19  
 
 20  
 import org.kuali.rice.kim.bo.role.dto.KimRoleInfo;
 21  
 import org.kuali.rice.kim.service.KIMServiceLocator;
 22  
 import org.kuali.rice.kim.util.KimConstants;
 23  
 import org.kuali.rice.kim.web.struts.form.IdentityManagementDocumentFormBase;
 24  
 import org.kuali.rice.kim.web.struts.form.IdentityManagementRoleDocumentForm;
 25  
 
 26  
 /**
 27  
  * This is a description of what this class does - jonathan don't forget to fill this in. 
 28  
  * 
 29  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 30  
  *
 31  
  */
 32  0
 public class IdentityManagementRoleInquiry extends IdentityManagementBaseInquiryAction {
 33  
                 
 34  
         /**
 35  
          * This overridden method ...
 36  
          * 
 37  
          * @see org.kuali.rice.kim.web.struts.action.IdentityManagementBaseInquiryAction#loadKimObject(javax.servlet.http.HttpServletRequest, org.kuali.rice.kim.web.struts.form.IdentityManagementDocumentFormBase)
 38  
          */
 39  
         @Override
 40  
         protected void loadKimObject(HttpServletRequest request,
 41  
                         IdentityManagementDocumentFormBase form) {
 42  0
         IdentityManagementRoleDocumentForm roleDocumentForm = (IdentityManagementRoleDocumentForm) form;
 43  0
         String roleId = request.getParameter(KimConstants.PrimaryKeyConstants.ROLE_ID);
 44  0
             roleDocumentForm.setRoleId(roleId);
 45  0
         KimRoleInfo role = KIMServiceLocator.getRoleService().getRole(roleId);
 46  0
         getUiDocumentService().loadRoleDoc(roleDocumentForm.getRoleDocument(), role);
 47  0
         }
 48  
         
 49  
 }