@Service(value="fileWebService") @Produces(value="application/json") @Path(value="/file") public class FileWebService extends BaseWebService
| コンストラクタと説明 |
|---|
FileWebService() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
FileItemDTO |
add(String sid,
FileItemDTO file,
InputStream stream)
to add a folder to the private drive, set parentId = 0 and isOwner to 1/true and
externalUserId/externalUserType to a valid user
|
ServiceResult |
delete(String sid,
Long id)
deletes files or folders based on it id
|
ServiceResult |
deleteExternal(String sid,
String externalType,
String externalId)
deletes a file by its external Id and type
|
FileExplorerObject |
getRoom(String sid,
long roomId)
Get a File Explorer Object by a given Room
|
List<FileItemDTO> |
getRoomByParent(String sid,
long roomId,
long parentId)
Get list of
FileItemDTO by parent |
FileItemDTO |
move(String sid,
long id,
long roomId,
long parentId)
move a file or folder
|
FileItemDTO |
rename(String sid,
long id,
String name)
update a file or folder name
|
@DELETE
@Path(value="/{id}")
public ServiceResult delete(@QueryParam(value="sid")
String sid,
@PathParam(value="id")
Long id)
sid - The SID of the User. This SID must be marked as logged inid - the id of the file or folder@DELETE
@Path(value="/{externaltype}/{externalid}")
public ServiceResult deleteExternal(@QueryParam(value="sid")
String sid,
@PathParam(value="externaltype")
String externalType,
@PathParam(value="externalid")
String externalId)
sid - The SID of the User. This SID must be marked as logged inexternalId - the od of the file or folderexternalType - the externalType@POST @Consumes(value="multipart/form-data") @Path(value="/") public FileItemDTO add(@QueryParam(value="sid") String sid, FileItemDTO file, InputStream stream)
sid - The SID of the User. This SID must be marked as logged infile - the The file to be addedstream - the The file to be added@GET
@Path(value="/room/{id}")
public FileExplorerObject getRoom(@QueryParam(value="sid")
String sid,
@PathParam(value="id")
long roomId)
sid - The SID of the User. This SID must be marked as logged inroomId - Room Id@GET
@Path(value="/room/{id}/{parent}")
public List<FileItemDTO> getRoomByParent(@QueryParam(value="sid")
String sid,
@PathParam(value="id")
long roomId,
@PathParam(value="parent")
long parentId)
FileItemDTO by parentsid - SID The SID of the User. This SID must be marked as logged inparentId - the parent folder idroomId - the room id@POST
@Path(value="/rename/{id}/{name}")
public FileItemDTO rename(@QueryParam(value="sid")
String sid,
@PathParam(value="id")
long id,
@PathParam(value="name")
String name)
sid - SID The SID of the User. This SID must be marked as logged inid - file or folder idname - new file or folder name@POST
@Path(value="/move/{roomid}/{id}/{parentid}")
public FileItemDTO move(@QueryParam(value="sid")
String sid,
@PathParam(value="id")
long id,
@PathParam(value="roomid")
long roomId,
@PathParam(value="parentid")
long parentId)
sid - SID The SID of the User. This SID must be marked as logged inid - current file or folder id to be movedparentId - new parent folder idCopyright © 2012–2017 Apache Software Foundation. All rights reserved.