Interface StampService
- 
- All Superinterfaces:
 com.google.gwt.user.client.rpc.RemoteService
@RemoteServiceRelativePath("stamp") public interface StampService extends com.google.gwt.user.client.rpc.RemoteServiceThe client side stub for the Stamp Service. This service gives all needed methods to handle the stamps. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classStampService.Instance 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddUsers(long[] userIds, long stampId)Assigns users to stampvoidapplyStamp(long[] docIds, GUIStamp stamp)Applies a stamp to the given documentvoidchangeStatus(long stampId, boolean enabled)Changes a stamp enabled/disabled statusvoiddelete(long id)Deletes a given stampGUIStampgetStamp(long stampId)Loads a given stamp from the databasevoidremoveUsers(long[] userIds, long stampId)Remove users from stampGUIStampsave(GUIStamp stamp)Creates or updates a stampvoidsaveImage(long stampId)Saves the stamp's image already uploaded 
 - 
 
- 
- 
Method Detail
- 
delete
void delete(long id) throws ServerExceptionDeletes a given stamp- Parameters:
 id- identifier of the stamp to delete- Throws:
 ServerException- an error happened in the server application
 
- 
save
GUIStamp save(GUIStamp stamp) throws ServerException
Creates or updates a stamp- Parameters:
 stamp- the stamp to save- Returns:
 - the saved stamp
 - Throws:
 ServerException- an error happened in the server application
 
- 
saveImage
void saveImage(long stampId) throws ServerExceptionSaves the stamp's image already uploaded- Parameters:
 stampId- identifier of the stamp- Throws:
 ServerException- an error happened in the server application
 
- 
getStamp
GUIStamp getStamp(long stampId) throws ServerException
Loads a given stamp from the database- Parameters:
 stampId- identifier of the stamp- Returns:
 - the stamp retrieved by the server application
 - Throws:
 ServerException- an error happened in the server application
 
- 
changeStatus
void changeStatus(long stampId, boolean enabled) throws ServerExceptionChanges a stamp enabled/disabled status- Parameters:
 stampId- identifier of the stampenabled- the enabled status of the stamp- Throws:
 ServerException- an error happened in the server application
 
- 
applyStamp
void applyStamp(long[] docIds, GUIStamp stamp) throws ServerExceptionApplies a stamp to the given document- Parameters:
 docIds- identifiers of the documentsstamp- the stamp to apply- Throws:
 ServerException- an error happened in the server application
 
- 
removeUsers
void removeUsers(long[] userIds, long stampId) throws ServerExceptionRemove users from stamp- Parameters:
 userIds- identifiers of the users to remove from the stampstampId- identifier of the stamp- Throws:
 ServerException- an error happened in the server application
 
- 
addUsers
void addUsers(long[] userIds, long stampId) throws ServerExceptionAssigns users to stamp- Parameters:
 userIds- identifiers of the users to associate to the stampstampId- identifier of the stamp- Throws:
 ServerException- an error happened in the server application
 
 - 
 
 -