mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-01-22 04:18:20 +00:00
Moved files to portal
This commit is contained in:
parent
f22a603f01
commit
1091d44009
@ -1,6 +1,5 @@
|
|||||||
package hirs.attestationca;
|
package hirs.attestationca;
|
||||||
|
|
||||||
import hirs.attestationca.configuration.PersistenceConfiguration;
|
|
||||||
import hirs.attestationca.persist.DBAppraiserManager;
|
import hirs.attestationca.persist.DBAppraiserManager;
|
||||||
import hirs.attestationca.persist.DBDeviceGroupManager;
|
import hirs.attestationca.persist.DBDeviceGroupManager;
|
||||||
import hirs.attestationca.persist.DBPolicyManager;
|
import hirs.attestationca.persist.DBPolicyManager;
|
||||||
@ -8,7 +7,6 @@ import hirs.utils.HIRSProfiles;
|
|||||||
import org.hibernate.SessionFactory;
|
import org.hibernate.SessionFactory;
|
||||||
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
|
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
|
||||||
import org.springframework.orm.hibernate5.LocalSessionFactoryBean;
|
import org.springframework.orm.hibernate5.LocalSessionFactoryBean;
|
||||||
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;
|
|
||||||
|
|
||||||
import javax.servlet.ServletContextEvent;
|
import javax.servlet.ServletContextEvent;
|
||||||
import javax.servlet.ServletContextListener;
|
import javax.servlet.ServletContextListener;
|
||||||
@ -16,8 +14,7 @@ import javax.servlet.ServletContextListener;
|
|||||||
/**
|
/**
|
||||||
* Simply holds a contextInitialized method which will be called when the web app starts.
|
* Simply holds a contextInitialized method which will be called when the web app starts.
|
||||||
*/
|
*/
|
||||||
public class InitializationListener extends AbstractAnnotationConfigDispatcherServletInitializer
|
public class InitializationListener implements ServletContextListener {
|
||||||
implements ServletContextListener {
|
|
||||||
@Override
|
@Override
|
||||||
public void contextInitialized(final ServletContextEvent event) {
|
public void contextInitialized(final ServletContextEvent event) {
|
||||||
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
|
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
|
||||||
@ -40,25 +37,4 @@ public class InitializationListener extends AbstractAnnotationConfigDispatcherSe
|
|||||||
public void contextDestroyed(final ServletContextEvent event) {
|
public void contextDestroyed(final ServletContextEvent event) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
protected Class<?>[] getRootConfigClasses() {
|
|
||||||
return new Class[] {
|
|
||||||
AttestationCertificateAuthorityConfiguration.class
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected Class<?>[] getServletConfigClasses() {
|
|
||||||
return new Class[] {
|
|
||||||
PersistenceConfiguration.class,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected String[] getServletMappings() {
|
|
||||||
return new String[] {
|
|
||||||
"/"
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,30 @@
|
|||||||
|
package hirs.attestationca.portal.page;
|
||||||
|
|
||||||
|
import hirs.attestationca.AttestationCertificateAuthorityConfiguration;
|
||||||
|
import hirs.attestationca.portal.persistence.PersistenceConfiguration;
|
||||||
|
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;
|
||||||
|
|
||||||
|
public class AcaInitializer extends AbstractAnnotationConfigDispatcherServletInitializer {
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected Class<?>[] getRootConfigClasses() {
|
||||||
|
return new Class[] {
|
||||||
|
AttestationCertificateAuthorityConfiguration.class
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected Class<?>[] getServletConfigClasses() {
|
||||||
|
return new Class[] {
|
||||||
|
CommonPageConfiguration.class, AttestationCertificateAuthorityConfiguration.class
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String[] getServletMappings() {
|
||||||
|
return new String[] {
|
||||||
|
"/"
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
package hirs.attestationca.configuration;
|
package hirs.attestationca.portal.persistence;
|
||||||
|
|
||||||
import hirs.attestationca.AttestationCertificateAuthorityConfiguration;
|
import hirs.attestationca.AttestationCertificateAuthorityConfiguration;
|
||||||
import hirs.attestationca.persist.DBCertificateManager;
|
import hirs.attestationca.persist.DBCertificateManager;
|
Loading…
Reference in New Issue
Block a user