01: package ru.emdev.EmForge;
02:
03: import org.hibernate.Session;
04:
05: import ru.emdev.EmForge.security.UserSettingsService;
06:
07: /**
08: * This is root class for getting whole information in EmForge
09: */
10: public interface EmForgeContext {
11:
12: /**
13: * Gets User Factory to access user-related information
14: *
15: * @return User Factory
16: */
17: public UserSettingsService getUserService();
18:
19: /**
20: * Gets Current Hibernate Session
21: *
22: * @return
23: */
24: public Session getSession();
25:
26: /**
27: * Gets application name
28: *
29: * @return
30: */
31: public String getAppName();
32:
33: /**
34: * Gets application Version
35: *
36: * @return version of application
37: */
38: public String getAppVersion();
39:
40: /**
41: * @return
42: */
43: public String getApplicationPath();
44:
45: /**
46: * Is Register Allowed in this EmForge?
47: */
48: public boolean isRegisterAllowed();
49: }
|