本文整理匯總了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);
}
示例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);
}
示例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;
}
示例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);
}