當前位置: 首頁>>代碼示例>>Java>>正文


Java NotificationContentTypeBo.setName方法代碼示例

本文整理匯總了Java中org.kuali.rice.ken.bo.NotificationContentTypeBo.setName方法的典型用法代碼示例。如果您正苦於以下問題:Java NotificationContentTypeBo.setName方法的具體用法?Java NotificationContentTypeBo.setName怎麽用?Java NotificationContentTypeBo.setName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.kuali.rice.ken.bo.NotificationContentTypeBo的用法示例。


在下文中一共展示了NotificationContentTypeBo.setName方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: addContentType

import org.kuali.rice.ken.bo.NotificationContentTypeBo; //導入方法依賴的package包/類
/**
 * addContentType
 * @param request : a servlet request
 * @param response : a servlet response
 * @throws ServletException : an exception
 * @throws IOException : an exception
 * @return a ModelAndView object
 */   
public ModelAndView addContentType(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    view = "ContentTypeManager";
    String id = request.getParameter("id");
    String name = request.getParameter("name");
    String description = request.getParameter("description");
    String namespace = request.getParameter("namespace");
    String xsd = request.getParameter("xsd");
    String xsl = request.getParameter("xsl");
    
    LOG.debug("id: "+id);
    LOG.debug("name: "+name);
    LOG.debug("description: "+description);
    LOG.debug("namespace: "+namespace);
    LOG.debug("xsd: "+xsd);
    LOG.debug("xsl: "+xsl);
    
    NotificationContentTypeBo notificationContentType = new NotificationContentTypeBo();
    notificationContentType.setName(name);
    notificationContentType.setDescription(description);
    notificationContentType.setNamespace(namespace);
    notificationContentType.setXsd(xsd);
    notificationContentType.setXsl(xsl);
    
    notificationContentTypeService.saveNotificationContentType(notificationContentType);
    
    Collection<NotificationContentTypeBo> contentTypes = this.notificationContentTypeService.getAllCurrentContentTypes();
    Map<String, Object> model = new HashMap<String, Object>();
    model.put("contentTypes", contentTypes);            
    return new ModelAndView(view, model);     
}
 
開發者ID:kuali,項目名稱:kc-rice,代碼行數:39,代碼來源:ContentTypeController.java

示例2: updateContentType

import org.kuali.rice.ken.bo.NotificationContentTypeBo; //導入方法依賴的package包/類
/**
 * updateContentType
 * @param request : a servlet request
 * @param response : a servlet response
 * @throws ServletException : an exception
 * @throws IOException : an exception
 * @return a ModelAndView object
 */   
public ModelAndView updateContentType(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    view = "ContentTypeManager";
    String id = request.getParameter("id");
    String name = request.getParameter("name");
    String description = request.getParameter("description");
    String namespace = request.getParameter("namespace");
    String xsd = request.getParameter("xsd");
    String xsl = request.getParameter("xsl");
    
    LOG.debug("id: "+id);
    LOG.debug("name: "+name);
    LOG.debug("description: "+description);
    LOG.debug("namespace: "+namespace);
    LOG.debug("xsd: "+xsd);
    LOG.debug("xsl: "+xsl);
    
    NotificationContentTypeBo notificationContentType = this.notificationContentTypeService.getNotificationContentType(name);
     
    notificationContentType.setName(name);
    notificationContentType.setDescription(description);
    notificationContentType.setNamespace(namespace);
    notificationContentType.setXsd(xsd);
    notificationContentType.setXsl(xsl);
    
    this.notificationContentTypeService.saveNotificationContentType(notificationContentType);
    
    
    // get updated content type collection
    Collection<NotificationContentTypeBo> contentTypes = this.notificationContentTypeService.getAllCurrentContentTypes();
    Map<String, Object> model = new HashMap<String, Object>();
    model.put("contentTypes", contentTypes);
    return new ModelAndView(view, model);     
}
 
開發者ID:kuali,項目名稱:kc-rice,代碼行數:42,代碼來源:ContentTypeController.java

示例3: buildTestNotificationContentType

import org.kuali.rice.ken.bo.NotificationContentTypeBo; //導入方法依賴的package包/類
/**
 * This method is a helper to build a NotificationContentType instance.
 * @param name
 * @param description
 * @param namespace
 * @param xsd
 * @return NotificationContentType
 */
public static final NotificationContentTypeBo buildTestNotificationContentType(String name, String description, String namespace, String xsd, String xsl) {
    NotificationContentTypeBo contentType = new NotificationContentTypeBo();
    contentType.setName(name);
    contentType.setDescription(description);
    contentType.setNamespace(namespace);
    contentType.setXsd(xsd);
    contentType.setXsl(xsl);
    return contentType;
}
 
開發者ID:kuali,項目名稱:kc-rice,代碼行數:18,代碼來源:MockObjectsUtil.java

示例4: addContentType

import org.kuali.rice.ken.bo.NotificationContentTypeBo; //導入方法依賴的package包/類
/**
 * addContentType
 * @param request : a servlet request
 * @param response : a servlet response
 * @throws ServletException : an exception
 * @throws IOException : an exception
 * @return a ModelAndView object
 */   
public ModelAndView addContentType(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    view = "ContentTypeManager";
    String id = request.getParameter("id");
    String name = request.getParameter("name");
    String description = request.getParameter("description");
    String namespace = request.getParameter("namespace");
    String xsd = request.getParameter("xsd");
    String xsl = request.getParameter("xsl");
    
    LOG.debug("id: "+id);
    LOG.debug("name: "+name);
    LOG.debug("description: "+description);
    LOG.debug("namespace: "+namespace);
    LOG.debug("xsd: "+xsd);
    LOG.debug("xsl: "+xsl);
    
    NotificationContentTypeBo notificationContentType = new NotificationContentTypeBo();
    notificationContentType.setName(name);
    notificationContentType.setDescription(description);
    notificationContentType.setNamespace(namespace);
    notificationContentType.setXsd(xsd);
    notificationContentType.setXsl(xsl);
    
    this.notificationContentTypeService.saveNotificationContentType(notificationContentType);
    
    Collection<NotificationContentTypeBo> contentTypes = this.notificationContentTypeService.getAllCurrentContentTypes();
    Map<String, Object> model = new HashMap<String, Object>();
    model.put("contentTypes", contentTypes);            
    return new ModelAndView(view, model);     
}
 
開發者ID:aapotts,項目名稱:kuali_rice,代碼行數:39,代碼來源:ContentTypeController.java


注:本文中的org.kuali.rice.ken.bo.NotificationContentTypeBo.setName方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。