apps/com.awspaas.user.apps.yiliwps/src/com/awspaas/user/apps/yiliwps/controller/YiliWpsController.java
2024-10-16 14:20:40 +08:00

69 lines
2.0 KiB
Java

package com.awspaas.user.apps.yiliwps.controller;
import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel;
import com.actionsoft.bpms.server.UserContext;
import com.actionsoft.bpms.server.bind.annotation.Controller;
import com.actionsoft.bpms.server.bind.annotation.Mapping;
import com.actionsoft.sdk.local.SDK;
import com.actionsoft.sdk.local.api.LogAPI;
import com.awspaas.user.apps.yiliwps.web.WpsWeb;
import java.util.List;
@Controller
public class YiliWpsController {
public final static LogAPI logAPI = SDK.getLogAPI();
/**
* 打开可编辑的页面
* @param me
* @param palId
* @param fileName
* @return
* @throws Exception
*/
@Mapping("com.awspaas.user.apps.yiliwps.previewUrl")
public String getWPSOnlineFilePreviewUrl(UserContext me,String palId,String fileName) throws Exception{
WpsWeb web =new WpsWeb(me);
return web.getWPSOnlineFilePreviewUrl(palId,fileName);
}
/**
* 打开制度的页面
* @param me
* @param palId
* @param fileName
* @return
* @throws Exception
*/
@Mapping("com.awspaas.user.apps.yiliwps.readOnlyUrl")
public String getWPSOnlineFileReadOnlyUrl(UserContext me,String palId,String fileName) throws Exception{
WpsWeb web =new WpsWeb(me);
return web.getWPSOnlineFileReadOnlyUrl(palId,fileName);
}
/**
* 获取新的pal模型文件
* @param me
* @param palId
* @return
*/
@Mapping("com.awspaas.user.apps.yiliwps.getCoeDefinition")
public String getCoeDefinition(UserContext me,String palId){
WpsWeb web =new WpsWeb(me);
return web.getCoeDefinition(palId);
}
/**
* 判断文件大小是否超过设定值
* @param me
* @param palId
* @return
*/
@Mapping("com.awspaas.user.apps.yiliwps.checkFileSize")
public String checkFileSize(UserContext me,String palId){
WpsWeb web =new WpsWeb(me);
return web.checkFileSize(palId);
}
}