@Path(value="attachment") public class AttachmentResource extends BaseResource
构造器和说明 |
---|
AttachmentResource() |
限定符和类型 | 方法和说明 |
---|---|
javax.ws.rs.core.Response |
allowOnlineBrowsing(java.lang.Long attachmentId) |
javax.ws.rs.core.Response |
batchDownload(java.lang.String fileIds,
java.lang.String zipFileName) |
javax.ws.rs.core.Response |
batchDownloadBySecret(java.lang.String fileIds,
java.lang.String zipFileName)
批量下载附件。
|
javax.ws.rs.core.Response |
deleteFileForUc(java.lang.Long fileId) |
javax.ws.rs.core.Response |
download(java.lang.Long fileId,
java.lang.String sCreateDate,
java.lang.String fileName) |
javax.ws.rs.core.Response |
downloadForUc(java.lang.Long fileId,
java.lang.String sCreateDate,
java.lang.String fileName)
致信附件下载,不开放
|
javax.ws.rs.core.Response |
fileDigestv(java.lang.Long fileId)
获取文件的 v
|
AppSecretLevelManager |
getAppSecretLevelManager() |
javax.ws.rs.core.Response |
getAttachmentById(java.lang.Long attachmentId) |
com.seeyon.ctp.common.filemanager.manager.AttachmentManager |
getAttachmentManager() |
com.seeyon.ctp.common.filemanager.manager.FileManager |
getFileManager() |
javax.ws.rs.core.Response |
getMD5Config() |
com.seeyon.ctp.common.office.trans.manager.OfficeTransManager |
getOfficeTransManager() |
com.seeyon.ctp.common.config.SystemConfig |
getSystemConfig() |
javax.ws.rs.core.Response |
isExistOnlineBrowsing(java.lang.Long attachmentId) |
javax.ws.rs.core.Response |
listAttachments(java.lang.Long reference,
java.lang.Integer type,
java.lang.Integer pagNo,
java.lang.Integer pageSize,
java.lang.String fileName) |
javax.ws.rs.core.Response |
officeTransStatus(java.lang.Integer picNum,
java.lang.String fileId) |
javax.ws.rs.core.Response |
renameFile(java.lang.Long fileId,
java.lang.String newName) |
javax.ws.rs.core.Response |
upload() |
javax.ws.rs.core.Response |
uploadOfficeTrans() |
copyProperties, decode, error, fail, fail, getFlipInfo, getObjectMapper, getToken, judgeSortId, noContent, ok, required, required, setCurrentUser, setPagination, setVirtualUser, status, status, success, success, success, toJSON, toJSON
public com.seeyon.ctp.common.filemanager.manager.AttachmentManager getAttachmentManager()
public com.seeyon.ctp.common.filemanager.manager.FileManager getFileManager()
public com.seeyon.ctp.common.office.trans.manager.OfficeTransManager getOfficeTransManager()
public com.seeyon.ctp.common.config.SystemConfig getSystemConfig()
public AppSecretLevelManager getAppSecretLevelManager()
@GET @Produces(value="application/json") @Path(value="digestv/{fileId}") public javax.ws.rs.core.Response fileDigestv(@PathParam(value="fileId") java.lang.Long fileId)
fileId
- @GET @Produces(value="application/json") @Path(value="onlineBrowsing/allow/{attachmentId}") public javax.ws.rs.core.Response allowOnlineBrowsing(@PathParam(value="attachmentId") java.lang.Long attachmentId)
@GET @Produces(value="application/json") @Path(value="onlineBrowsing/exist/{attachmentId}") public javax.ws.rs.core.Response isExistOnlineBrowsing(@PathParam(value="attachmentId") java.lang.Long attachmentId)
@GET @Produces(value="application/json") @Path(value="{attachmentId}") public javax.ws.rs.core.Response getAttachmentById(@PathParam(value="attachmentId") java.lang.Long attachmentId)
@GET @Produces(value="application/octet-stream") @Path(value="file/{fileId}") @RestInterfaceAnnotation @SubmitLimit public javax.ws.rs.core.Response download(@PathParam(value="fileId") java.lang.Long fileId, @QueryParam(value="createDate") java.lang.String sCreateDate, @QueryParam(value="fileName") java.lang.String fileName) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
@GET @Path(value="file/batch/{fileIds}") @SubmitLimit public javax.ws.rs.core.Response batchDownload(@PathParam(value="fileIds") java.lang.String fileIds, @QueryParam(value="zipFileName") java.lang.String zipFileName) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
@GET @Produces(value="application/octet-stream") @Path(value="fileforuc/{fileId}") @SubmitLimit public javax.ws.rs.core.Response downloadForUc(@PathParam(value="fileId") java.lang.Long fileId, @QueryParam(value="createDate") java.lang.String sCreateDate, @QueryParam(value="fileName") java.lang.String fileName) throws com.seeyon.ctp.common.exceptions.BusinessException
fileId
- sCreateDate
- fileName
- com.seeyon.ctp.common.exceptions.BusinessException
@GET @Produces(value={"application/json","text/html"}) @Path(value="reference/{reference}") public javax.ws.rs.core.Response listAttachments(@PathParam(value="reference") java.lang.Long reference, @QueryParam(value="type") java.lang.Integer type, @QueryParam(value="pagNo") java.lang.Integer pagNo, @QueryParam(value="pageSize") java.lang.Integer pageSize, @QueryParam(value="fileName") java.lang.String fileName)
@POST @Produces(value={"text/html","application/json"}) @Consumes(value="multipart/form-data") @RestInterfaceAnnotation public javax.ws.rs.core.Response upload()
@POST @Produces(value={"text/html","application/json"}) @Consumes(value="multipart/form-data") @RestInterfaceAnnotation @Path(value="officeTrans") public javax.ws.rs.core.Response uploadOfficeTrans()
@GET @Produces(value="application/json") @Path(value="officeTransStatus") public javax.ws.rs.core.Response officeTransStatus(@QueryParam(value="picNum") java.lang.Integer picNum, @QueryParam(value="fileId") java.lang.String fileId)
@GET @Produces(value={"text/html","application/json"}) @Path(value="removeFile/{fileId}") public javax.ws.rs.core.Response deleteFileForUc(@PathParam(value="fileId") java.lang.Long fileId) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
@POST @Produces(value={"text/html","application/json"}) @Path(value="renameFile/{fileId}/{newName}") public javax.ws.rs.core.Response renameFile(@PathParam(value="fileId") java.lang.Long fileId, @PathParam(value="newName") java.lang.String newName) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
@GET @Path(value="file/batchDownload/{fileIds}") @SubmitLimit public javax.ws.rs.core.Response batchDownloadBySecret(@PathParam(value="fileIds") java.lang.String fileIds, @QueryParam(value="zipFileName") java.lang.String zipFileName) throws com.seeyon.ctp.common.exceptions.BusinessException
fileIds
- 附件IdzipFileName
- 下载文件的文件名,可选com.seeyon.ctp.common.exceptions.BusinessException
@GET @Path(value="file/getMD5Config") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response getMD5Config()