⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mmseditupdateslidtime.java

📁 MM7彩信对接网关示例
💻 JAVA
字号:
/*
 * Created on 2005-7-16
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package com.rainbow.mms.manage;

import org.apache.log4j.Logger;

import com.opensymphony.webwork.ServletActionContext;
import com.opensymphony.xwork.ActionContext;
import com.opensymphony.xwork.ActionSupport;
import com.rainbow.mms.common.MmsSmilPageUnitCollection;

/**
 * 变更已有彩信内容体指定桢的显示时间长度
 * @author Rainbow MMS Group Leader —— TrWorks
 *
 */
public class MmsEditUpdateSlidTime extends ActionSupport {
	private static final long serialVersionUID = 1L;
	private Logger log = Logger.getLogger(MmsEditUpdateSlidTime.class);

	public String execute() throws Exception {
		String timeInterval = ServletActionContext.getRequest().getParameter("timeInterval");
		String updateSlidNo = ServletActionContext.getRequest().getParameter("updateSlidNo");
		
		MmsSmilPageUnitCollection collection = 
			(MmsSmilPageUnitCollection)ActionContext.getContext().getSession().get("mmsPageMapCollection");
		if (collection == null || timeInterval == null || updateSlidNo == null){
			log.error("MmsEditUpdateSlidTime excute function's input params error!");
			return ERROR;
		}

		if (true == collection.updatePageTimeinterval(Integer.parseInt(updateSlidNo), 
				Integer.parseInt(timeInterval))){
			return SUCCESS;
		}
		else{
			log.error("MmsEditUpdateSlidTime excute function updatePageTimeinterval Failed.");
			return ERROR;
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -