本文整理汇总了Java中org.kuali.rice.ken.bo.NotificationContentTypeBo.setXsl方法的典型用法代码示例。如果您正苦于以下问题:Java NotificationContentTypeBo.setXsl方法的具体用法?Java NotificationContentTypeBo.setXsl怎么用?Java NotificationContentTypeBo.setXsl使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.kuali.rice.ken.bo.NotificationContentTypeBo
的用法示例。
在下文中一共展示了NotificationContentTypeBo.setXsl方法的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);
}