Commit 818972b8 authored by michael.simon's avatar michael.simon
Browse files

Add project dao to scripting environment

parent 0f3be7e3
...@@ -11,6 +11,7 @@ import edu.kit.scc.webreg.dao.RegistryDao; ...@@ -11,6 +11,7 @@ import edu.kit.scc.webreg.dao.RegistryDao;
import edu.kit.scc.webreg.dao.ScriptDao; import edu.kit.scc.webreg.dao.ScriptDao;
import edu.kit.scc.webreg.dao.ServiceDao; import edu.kit.scc.webreg.dao.ServiceDao;
import edu.kit.scc.webreg.dao.UserDao; import edu.kit.scc.webreg.dao.UserDao;
import edu.kit.scc.webreg.dao.project.ProjectDao;
import edu.kit.scc.webreg.service.saml.SsoHelper; import edu.kit.scc.webreg.service.saml.SsoHelper;
@Named @Named
...@@ -28,6 +29,9 @@ public class ScriptingEnv implements Serializable { ...@@ -28,6 +29,9 @@ public class ScriptingEnv implements Serializable {
@Inject @Inject
private GroupDao groupDao; private GroupDao groupDao;
@Inject
private ProjectDao projectDao;
@Inject @Inject
private ServiceDao serviceDao; private ServiceDao serviceDao;
...@@ -84,5 +88,13 @@ public class ScriptingEnv implements Serializable { ...@@ -84,5 +88,13 @@ public class ScriptingEnv implements Serializable {
public void setSsoHelper(SsoHelper ssoHelper) { public void setSsoHelper(SsoHelper ssoHelper) {
this.ssoHelper = ssoHelper; this.ssoHelper = ssoHelper;
} }
public ProjectDao getProjectDao() {
return projectDao;
}
public void setProjectDao(ProjectDao projectDao) {
this.projectDao = projectDao;
}
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment