当前位置: 首页>>代码示例>>Java>>正文


Java IdentityManagementDocumentFormBase类代码示例

本文整理汇总了Java中org.kuali.rice.kim.web.struts.form.IdentityManagementDocumentFormBase的典型用法代码示例。如果您正苦于以下问题:Java IdentityManagementDocumentFormBase类的具体用法?Java IdentityManagementDocumentFormBase怎么用?Java IdentityManagementDocumentFormBase使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


IdentityManagementDocumentFormBase类属于org.kuali.rice.kim.web.struts.form包,在下文中一共展示了IdentityManagementDocumentFormBase类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: loadKimObject

import org.kuali.rice.kim.web.struts.form.IdentityManagementDocumentFormBase; //导入依赖的package包/类
/**
 * This overridden method ...
 * 
 * @see org.kuali.rice.kim.web.struts.action.IdentityManagementBaseInquiryAction#loadKimObject(javax.servlet.http.HttpServletRequest, org.kuali.rice.kim.web.struts.form.IdentityManagementDocumentFormBase)
 */
@Override
protected void loadKimObject(HttpServletRequest request,
		IdentityManagementDocumentFormBase form) {
       IdentityManagementRoleDocumentForm roleDocumentForm = (IdentityManagementRoleDocumentForm) form;
       String id = request.getParameter(KimConstants.PrimaryKeyConstants.ROLE_ID);
       String altId =  request.getParameter(KimConstants.PrimaryKeyConstants.SUB_ROLE_ID);

       String roleId = StringUtils.isNotEmpty(id) ? id : altId;
       Role role = KimApiServiceLocator.getRoleService().getRole(roleId);
       if (role != null) {
       	getUiDocumentService().loadRoleDoc(roleDocumentForm.getRoleDocument(), role);
       } else {
       	LOG.error("No records found for Role Inquiry: " + request.getParameterMap());
           GlobalVariables.getMessageMap().putError(KRADConstants.GLOBAL_ERRORS, RiceKeyConstants.ERROR_INQUIRY);
       }
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:22,代码来源:IdentityManagementRoleInquiry.java

示例2: loadKimObject

import org.kuali.rice.kim.web.struts.form.IdentityManagementDocumentFormBase; //导入依赖的package包/类
/**
 * This overridden method ...
 * 
 * @see org.kuali.rice.kim.web.struts.action.IdentityManagementBaseInquiryAction#loadKimObject(javax.servlet.http.HttpServletRequest, org.kuali.rice.kim.web.struts.form.IdentityManagementDocumentFormBase)
 */
@Override
protected void loadKimObject(HttpServletRequest request, IdentityManagementDocumentFormBase form) {
       IdentityManagementGroupDocumentForm groupDocumentForm = (IdentityManagementGroupDocumentForm) form;
       String id = request.getParameter(KimConstants.PrimaryKeyConstants.GROUP_ID);
       String altId = request.getParameter(KimConstants.AttributeConstants.GROUP_ID);

       String groupId = StringUtils.isNotEmpty(id) ? id : altId;
       Group group = null;
       if (StringUtils.isNotEmpty(groupId)) {
       	group = KimApiServiceLocator.getGroupService().getGroup(groupId);
       } else {
       	String namespaceCode = request.getParameter(KimConstants.UniqueKeyConstants.NAMESPACE_CODE);
       	String groupName = request.getParameter(KimConstants.UniqueKeyConstants.GROUP_NAME);
       	
       	if (!StringUtils.isBlank(namespaceCode) && !StringUtils.isBlank(groupName)) {
       		group = KimApiServiceLocator.getGroupService().getGroupByNamespaceCodeAndName(namespaceCode, groupName);
           }
       }
       if (group != null) {
       	getUiDocumentService().loadGroupDoc(groupDocumentForm.getGroupDocument(), group);
       } else {
       	LOG.error("No records found for Group Inquiry.");
           GlobalVariables.getMessageMap().putError(KRADConstants.GLOBAL_ERRORS, RiceKeyConstants.ERROR_INQUIRY);
       }
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:31,代码来源:IdentityManagementGroupInquiry.java

示例3: loadKimObject

import org.kuali.rice.kim.web.struts.form.IdentityManagementDocumentFormBase; //导入依赖的package包/类
/**
 * This overridden method ...
 * 
 * @see org.kuali.rice.kim.web.struts.action.IdentityManagementBaseInquiryAction#loadKimObject(javax.servlet.http.HttpServletRequest, org.kuali.rice.kim.web.struts.form.IdentityManagementDocumentFormBase)
 */
@Override
protected void loadKimObject(HttpServletRequest request,
		IdentityManagementDocumentFormBase form) {
       IdentityManagementRoleDocumentForm roleDocumentForm = (IdentityManagementRoleDocumentForm) form;
       String id = request.getParameter(KimConstants.PrimaryKeyConstants.ROLE_ID);
       String altId =  request.getParameter(KimConstants.PrimaryKeyConstants.SUB_ROLE_ID);

       String roleId = StringUtils.isNotEmpty(id) ? id : altId;
       Role role = KimApiServiceLocator.getRoleService().getRole(roleId);
       if (role != null) {
       	getUiDocumentService().loadRoleDoc(roleDocumentForm.getRoleDocument(), role);
       } else {
       	LOG.error("No records found for Role Inquiry.");
           GlobalVariables.getMessageMap().putError(KRADConstants.GLOBAL_ERRORS, RiceKeyConstants.ERROR_INQUIRY);
       }
}
 
开发者ID:aapotts,项目名称:kuali_rice,代码行数:22,代码来源:IdentityManagementRoleInquiry.java

示例4: execute

import org.kuali.rice.kim.web.struts.form.IdentityManagementDocumentFormBase; //导入依赖的package包/类
/**
 * This overridden method ...
 * 
 * @see org.kuali.rice.krad.web.struts.action.KualiAction#execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
 */
@Override
public ActionForward execute(ActionMapping mapping, ActionForm form,
		HttpServletRequest request, HttpServletResponse response)
		throws Exception {
	IdentityManagementDocumentFormBase idmForm = (IdentityManagementDocumentFormBase) form;
	idmForm.setInquiry(true);

       loadKimObject( request, idmForm );

       KualiTableRenderFormMetadata memberTableMetadata = idmForm.getMemberTableMetadata();
       memberTableMetadata.jumpToPage(memberTableMetadata.getSwitchToPageNumber(), idmForm.getMemberRows().size(), idmForm.getRecordsPerPage());
   	
	return super.execute(mapping, form, request, response);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:20,代码来源:IdentityManagementBaseInquiryAction.java

示例5: switchToPage

import org.kuali.rice.kim.web.struts.form.IdentityManagementDocumentFormBase; //导入依赖的package包/类
/**
 * @see org.kuali.rice.kns.web.struts.action.KualiTableRenderAction#switchToPage(org.apache.struts.action.ActionMapping,
 *      org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
 */
public ActionForward switchToPage(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
    IdentityManagementDocumentFormBase idmForm = (IdentityManagementDocumentFormBase) form;
    
    KualiTableRenderFormMetadata memberTableMetadata = idmForm.getMemberTableMetadata();
    memberTableMetadata.jumpToPage(memberTableMetadata.getSwitchToPageNumber(), idmForm.getMemberRows().size(), idmForm.getRecordsPerPage());
    memberTableMetadata.setColumnToSortIndex(memberTableMetadata.getPreviouslySortedColumnIndex());
    return mapping.findForward(RiceConstants.MAPPING_BASIC);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:13,代码来源:IdentityManagementBaseInquiryAction.java

示例6: switchToPage

import org.kuali.rice.kim.web.struts.form.IdentityManagementDocumentFormBase; //导入依赖的package包/类
public ActionForward switchToPage(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
    IdentityManagementDocumentFormBase idmForm = (IdentityManagementDocumentFormBase) form;
    
    KualiTableRenderFormMetadata memberTableMetadata = idmForm.getMemberTableMetadata();
    memberTableMetadata.jumpToPage(memberTableMetadata.getSwitchToPageNumber(), idmForm.getMemberRows().size(), idmForm.getRecordsPerPage());
    memberTableMetadata.setColumnToSortIndex(memberTableMetadata.getPreviouslySortedColumnIndex());
    return mapping.findForward(RiceConstants.MAPPING_BASIC);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:9,代码来源:IdentityManagementDocumentActionBase.java

示例7: applyPagingAndSortingFromPreviousPageView

import org.kuali.rice.kim.web.struts.form.IdentityManagementDocumentFormBase; //导入依赖的package包/类
protected void applyPagingAndSortingFromPreviousPageView(IdentityManagementDocumentFormBase idmForm) {
    KualiTableRenderFormMetadata memberTableMetadata = idmForm.getMemberTableMetadata();

    memberTableMetadata.jumpToPage(memberTableMetadata.getViewedPageNumber(), idmForm.getMemberRows().size(), idmForm.getRecordsPerPage());
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:6,代码来源:IdentityManagementDocumentActionBase.java

示例8: loadKimObject

import org.kuali.rice.kim.web.struts.form.IdentityManagementDocumentFormBase; //导入依赖的package包/类
protected abstract void loadKimObject( HttpServletRequest request, IdentityManagementDocumentFormBase form ); 
开发者ID:kuali,项目名称:kc-rice,代码行数:2,代码来源:IdentityManagementBaseInquiryAction.java


注:本文中的org.kuali.rice.kim.web.struts.form.IdentityManagementDocumentFormBase类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。