1 16 package org.jmanage.webui.util; 17 18 import org.jmanage.core.services.ServiceContext; 19 import org.jmanage.core.auth.User; 20 import org.jmanage.core.config.ApplicationConfig; 21 import org.jmanage.core.management.ObjectName; 22 import org.jmanage.core.management.ServerConnection; 23 24 30 public class ServiceContextImpl implements ServiceContext { 31 32 private WebContext webContext; 33 34 public ServiceContextImpl(WebContext webContext){ 35 this.webContext = webContext; 36 } 37 38 public User getUser() { 39 return webContext.getUser(); 40 } 41 42 public void _setUser(User user){ 43 this.webContext.setUser(user); 44 } 45 46 public ApplicationConfig getApplicationConfig() { 47 return webContext.getApplicationConfig(); 48 } 49 50 public ObjectName getObjectName() { 51 return webContext.getObjectName(); 52 } 53 54 public ServerConnection getServerConnection() { 55 return webContext.getServerConnection(); 56 } 57 } 58 | Popular Tags |