mmseditupdateslidtime.java

来自「MM7彩信对接网关示例」· Java 代码 · 共 46 行

JAVA
46
字号
/*
 * 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 + =
减小字号Ctrl + -
显示快捷键?