01: package org.emforge;
02:
03: import javax.jws.WebParam;
04: import javax.jws.WebService;
05:
06: import org.emforge.xfer.CommentTO;
07:
08: /**
09: * Interface for save and retrieve comments. Comments are store in different ways,
10: * depends on type of object, what was commented
11: */
12: @WebService
13: public interface CommentService {
14: /** Add comment with using default time and currently logged user information
15: *
16: */
17: public boolean addComment(@WebParam(name="parentName")
18: String parentName, @WebParam(name="comment")
19: String comment) throws EmForgeException;
20:
21: /**
22: *
23: * @param obj - commented object
24: * @return list of all comments for given object
25: */
26: public CommentTO[] getComments(@WebParam(name="parentName")
27: String parentName) throws EmForgeException;
28:
29: /** Is current user allowed to add comment?
30: *
31: **/
32: public boolean canAddComment(@WebParam(name="parentName")
33: String parentName);
34: }
|