Revision 1704842b src/gr/ebs/gss/server/ejb/ExternalAPI.java

b/src/gr/ebs/gss/server/ejb/ExternalAPI.java
345 345
	public void deleteFile(Long userId, Long fileId) throws ObjectNotFoundException, InsufficientPermissionsException;
346 346

  
347 347
	/**
348
	 * Deletes the specified file in the specified user's namespace.
349
	 *
350
	 * @param userId the ID of the current user
351
	 * @param fileIds the IDs of the files to delete
352
	 * @throws ObjectNotFoundException if the user or file was not found, with
353
	 *             the exception message mentioning the precise problem
354
	 * @throws InsufficientPermissionsException if the user does not have the
355
	 *             appropriate privileges
356
	 */
357
	public void deleteFiles(Long userId, List<Long> fileIds)
358
			throws ObjectNotFoundException, InsufficientPermissionsException;
359

  
360
	/**
361 348
	 * Creates a new tag for the specified user and file.
362 349
	 *
363 350
	 * @param userId the creator of the tag
......
648 635
	public void removeFileFromTrash(Long userId, Long fileId) throws ObjectNotFoundException, InsufficientPermissionsException;
649 636

  
650 637
	/**
651
	 * Marks  the specified deleted files as undeleted in the specified user's namespace.
652
	 *
653
	 * @param userId the ID of the current user
654
	 * @param fileIds the IDs of the file to undelete
655
	 * @throws ObjectNotFoundException if the user or file was not found, with
656
	 *             the exception message mentioning the precise problem
657
	 * @throws InsufficientPermissionsException if the user does not have the
658
	 *             appropriate privileges
659
	 */
660
	public void removeFilesFromTrash(Long userId, List<Long> fileIds) throws ObjectNotFoundException, InsufficientPermissionsException;
661

  
662
	/**
663 638
	 * Marks  the specified folder as deleted in the specified user's namespace.
664 639
	 *
665 640
	 * @param userId the ID of the current user
......
1059 1034
			throws ObjectNotFoundException, InsufficientPermissionsException,  GSSIOException, QuotaExceededException;
1060 1035

  
1061 1036
	/**
1062
	 * Remove file version identified by bodyId
1063
	 *
1064
	 * @param userId the ID of the user
1065
	 * @param fileId the ID of the file
1066
	 * @param bodyId the ID of the body
1067
	 *
1068
	 * @throws ObjectNotFoundException
1069
	 * @throws InsufficientPermissionsException
1070
	 *
1071
	 */
1072
	public void removeVersion(Long userId, Long fileId, Long bodyId)
1073
			throws ObjectNotFoundException, InsufficientPermissionsException;
1074

  
1075
	/**
1076 1037
	 * Removes all old file versions for specified file keeping only the current revision
1077 1038
	 *
1078 1039
	 * @param userId the ID of the user

Also available in: Unified diff