本文整理汇总了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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
示例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);
}
示例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);
}
示例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());
}
示例8: loadKimObject
import org.kuali.rice.kim.web.struts.form.IdentityManagementDocumentFormBase; //导入依赖的package包/类
protected abstract void loadKimObject( HttpServletRequest request, IdentityManagementDocumentFormBase form );