01: package org.enhydra.dm.api;
02:
03: import java.util.Map;
04:
05: import org.enhydra.dm.api.exceptions.BaseException;
06: import org.enhydra.dm.api.loggers.Log;
07:
08: public interface FoDocumentManager {
09:
10: /**
11: * Method that creates foDocument in database.
12: *
13: * @param name
14: * @param date
15: * @param subject
16: * @param content
17: * @param userPwd
18: * @param ownerPwd
19: * @param allowPrint
20: * @param allowCopyContent
21: * @param allowEditContent
22: * @param allowEditAnnotations
23: * @return foDocumentOid
24: * @throws BaseException
25: */
26: public String create(Map parameters, String userPwd,
27: String ownerPwd, boolean allowPrint,
28: boolean allowCopyContent, boolean allowEditContent,
29: boolean allowEditAnnotations) throws BaseException;
30:
31: /**
32: * Method to get foDocument from database by foDocument id.
33: *
34: * @param id
35: * @return
36: * @throws BaseException
37: */
38: public FoDocument getFoDocumentById(String id) throws BaseException;
39:
40: /**
41: * Method to get foDocument parameters from database by foDocument id.
42: *
43: * @param id
44: * @return
45: * @throws BaseException
46: */
47: public FoDocumentParam[] getFoDocumentParametersById(String id)
48: throws BaseException;
49:
50: /**
51: * Getter for logger
52: *
53: * @return
54: */
55: public Log getLogger();
56:
57: /**
58: * Setter for logger
59: *
60: * @param logger
61: */
62: public void setLogger(Log logger);
63: }
|