Commit 062ad72d authored by michael.simon's avatar michael.simon
Browse files

Refactor auditing

parent e0df8fa2
...@@ -8,11 +8,12 @@ ...@@ -8,11 +8,12 @@
* Contributors: * Contributors:
* Michael Simon - initial * Michael Simon - initial
******************************************************************************/ ******************************************************************************/
package edu.kit.scc.webreg.dao; package edu.kit.scc.webreg.dao.audit;
import java.util.List; import java.util.List;
import edu.kit.scc.webreg.dao.BaseDao;
import edu.kit.scc.webreg.entity.audit.AuditDetailEntity; import edu.kit.scc.webreg.entity.audit.AuditDetailEntity;
import edu.kit.scc.webreg.entity.audit.AuditEntryEntity; import edu.kit.scc.webreg.entity.audit.AuditEntryEntity;
......
...@@ -8,11 +8,12 @@ ...@@ -8,11 +8,12 @@
* Contributors: * Contributors:
* Michael Simon - initial * Michael Simon - initial
******************************************************************************/ ******************************************************************************/
package edu.kit.scc.webreg.dao; package edu.kit.scc.webreg.dao.audit;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import edu.kit.scc.webreg.dao.BaseDao;
import edu.kit.scc.webreg.entity.RegistryEntity; import edu.kit.scc.webreg.entity.RegistryEntity;
import edu.kit.scc.webreg.entity.audit.AuditEntryEntity; import edu.kit.scc.webreg.entity.audit.AuditEntryEntity;
import edu.kit.scc.webreg.entity.audit.AuditServiceRegisterEntity; import edu.kit.scc.webreg.entity.audit.AuditServiceRegisterEntity;
......
/*******************************************************************************
* Copyright (c) 2014 Michael Simon.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/gpl.html
*
* Contributors:
* Michael Simon - initial
******************************************************************************/
package edu.kit.scc.webreg.dao.audit;
import edu.kit.scc.webreg.dao.BaseDao;
import edu.kit.scc.webreg.entity.audit.AuditUserEntity;
public interface AuditUserEntryDao extends BaseDao<AuditUserEntity, Long> {
}
...@@ -8,14 +8,15 @@ ...@@ -8,14 +8,15 @@
* Contributors: * Contributors:
* Michael Simon - initial * Michael Simon - initial
******************************************************************************/ ******************************************************************************/
package edu.kit.scc.webreg.dao.jpa; package edu.kit.scc.webreg.dao.jpa.audit;
import java.util.List; import java.util.List;
import javax.enterprise.context.ApplicationScoped; import javax.enterprise.context.ApplicationScoped;
import javax.inject.Named; import javax.inject.Named;
import edu.kit.scc.webreg.dao.AuditDetailDao; import edu.kit.scc.webreg.dao.audit.AuditDetailDao;
import edu.kit.scc.webreg.dao.jpa.JpaBaseDao;
import edu.kit.scc.webreg.entity.audit.AuditDetailEntity; import edu.kit.scc.webreg.entity.audit.AuditDetailEntity;
import edu.kit.scc.webreg.entity.audit.AuditEntryEntity; import edu.kit.scc.webreg.entity.audit.AuditEntryEntity;
import edu.kit.scc.webreg.entity.audit.AuditStatus; import edu.kit.scc.webreg.entity.audit.AuditStatus;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* Contributors: * Contributors:
* Michael Simon - initial * Michael Simon - initial
******************************************************************************/ ******************************************************************************/
package edu.kit.scc.webreg.dao.jpa; package edu.kit.scc.webreg.dao.jpa.audit;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
...@@ -16,7 +16,8 @@ import java.util.List; ...@@ -16,7 +16,8 @@ import java.util.List;
import javax.enterprise.context.ApplicationScoped; import javax.enterprise.context.ApplicationScoped;
import javax.inject.Named; import javax.inject.Named;
import edu.kit.scc.webreg.dao.AuditEntryDao; import edu.kit.scc.webreg.dao.audit.AuditEntryDao;
import edu.kit.scc.webreg.dao.jpa.JpaBaseDao;
import edu.kit.scc.webreg.entity.RegistryEntity; import edu.kit.scc.webreg.entity.RegistryEntity;
import edu.kit.scc.webreg.entity.audit.AuditEntryEntity; import edu.kit.scc.webreg.entity.audit.AuditEntryEntity;
import edu.kit.scc.webreg.entity.audit.AuditServiceRegisterEntity; import edu.kit.scc.webreg.entity.audit.AuditServiceRegisterEntity;
......
/*******************************************************************************
* Copyright (c) 2014 Michael Simon.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/gpl.html
*
* Contributors:
* Michael Simon - initial
******************************************************************************/
package edu.kit.scc.webreg.dao.jpa.audit;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Named;
import edu.kit.scc.webreg.dao.audit.AuditUserEntryDao;
import edu.kit.scc.webreg.dao.jpa.JpaBaseDao;
import edu.kit.scc.webreg.entity.audit.AuditUserEntity;
@Named
@ApplicationScoped
public class JpaAuditUserEntryDao extends JpaBaseDao<AuditUserEntity, Long> implements AuditUserEntryDao {
@Override
public Class<AuditUserEntity> getEntityClass() {
return AuditUserEntity.class;
}
}
...@@ -14,8 +14,8 @@ import java.util.Date; ...@@ -14,8 +14,8 @@ import java.util.Date;
import java.util.HashSet; import java.util.HashSet;
import edu.kit.scc.webreg.bootstrap.ApplicationConfig; import edu.kit.scc.webreg.bootstrap.ApplicationConfig;
import edu.kit.scc.webreg.dao.AuditDetailDao; import edu.kit.scc.webreg.dao.audit.AuditDetailDao;
import edu.kit.scc.webreg.dao.AuditEntryDao; import edu.kit.scc.webreg.dao.audit.AuditEntryDao;
import edu.kit.scc.webreg.entity.audit.AuditDetailEntity; import edu.kit.scc.webreg.entity.audit.AuditDetailEntity;
import edu.kit.scc.webreg.entity.audit.AuditEntryEntity; import edu.kit.scc.webreg.entity.audit.AuditEntryEntity;
import edu.kit.scc.webreg.entity.audit.AuditStatus; import edu.kit.scc.webreg.entity.audit.AuditStatus;
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
package edu.kit.scc.webreg.audit; package edu.kit.scc.webreg.audit;
import edu.kit.scc.webreg.bootstrap.ApplicationConfig; import edu.kit.scc.webreg.bootstrap.ApplicationConfig;
import edu.kit.scc.webreg.dao.AuditDetailDao; import edu.kit.scc.webreg.dao.audit.AuditDetailDao;
import edu.kit.scc.webreg.dao.AuditEntryDao; import edu.kit.scc.webreg.dao.audit.AuditEntryDao;
import edu.kit.scc.webreg.entity.as.ASUserAttrEntity; import edu.kit.scc.webreg.entity.as.ASUserAttrEntity;
import edu.kit.scc.webreg.entity.audit.AuditAttributeSourceEntity; import edu.kit.scc.webreg.entity.audit.AuditAttributeSourceEntity;
import edu.kit.scc.webreg.entity.audit.AuditEntryEntity; import edu.kit.scc.webreg.entity.audit.AuditEntryEntity;
......
...@@ -8,12 +8,13 @@ ...@@ -8,12 +8,13 @@
* Contributors: * Contributors:
* Michael Simon - initial * Michael Simon - initial
******************************************************************************/ ******************************************************************************/
package edu.kit.scc.webreg.service; package edu.kit.scc.webreg.audit;
import java.util.List; import java.util.List;
import edu.kit.scc.webreg.entity.audit.AuditDetailEntity; import edu.kit.scc.webreg.entity.audit.AuditDetailEntity;
import edu.kit.scc.webreg.entity.audit.AuditEntryEntity; import edu.kit.scc.webreg.entity.audit.AuditEntryEntity;
import edu.kit.scc.webreg.service.BaseService;
public interface AuditDetailService extends BaseService<AuditDetailEntity, Long> { public interface AuditDetailService extends BaseService<AuditDetailEntity, Long> {
......
...@@ -8,18 +8,18 @@ ...@@ -8,18 +8,18 @@
* Contributors: * Contributors:
* Michael Simon - initial * Michael Simon - initial
******************************************************************************/ ******************************************************************************/
package edu.kit.scc.webreg.service.impl; package edu.kit.scc.webreg.audit;
import java.util.List; import java.util.List;
import javax.ejb.Stateless; import javax.ejb.Stateless;
import javax.inject.Inject; import javax.inject.Inject;
import edu.kit.scc.webreg.dao.AuditDetailDao;
import edu.kit.scc.webreg.dao.BaseDao; import edu.kit.scc.webreg.dao.BaseDao;
import edu.kit.scc.webreg.dao.audit.AuditDetailDao;
import edu.kit.scc.webreg.entity.audit.AuditDetailEntity; import edu.kit.scc.webreg.entity.audit.AuditDetailEntity;
import edu.kit.scc.webreg.entity.audit.AuditEntryEntity; import edu.kit.scc.webreg.entity.audit.AuditEntryEntity;
import edu.kit.scc.webreg.service.AuditDetailService; import edu.kit.scc.webreg.service.impl.BaseServiceImpl;
@Stateless @Stateless
public class AuditDetailServiceImpl extends BaseServiceImpl<AuditDetailEntity, Long> implements AuditDetailService { public class AuditDetailServiceImpl extends BaseServiceImpl<AuditDetailEntity, Long> implements AuditDetailService {
......
...@@ -8,13 +8,14 @@ ...@@ -8,13 +8,14 @@
* Contributors: * Contributors:
* Michael Simon - initial * Michael Simon - initial
******************************************************************************/ ******************************************************************************/
package edu.kit.scc.webreg.service; package edu.kit.scc.webreg.audit;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import edu.kit.scc.webreg.entity.RegistryEntity; import edu.kit.scc.webreg.entity.RegistryEntity;
import edu.kit.scc.webreg.entity.audit.AuditEntryEntity; import edu.kit.scc.webreg.entity.audit.AuditEntryEntity;
import edu.kit.scc.webreg.service.BaseService;
public interface AuditEntryService extends BaseService<AuditEntryEntity, Long> { public interface AuditEntryService extends BaseService<AuditEntryEntity, Long> {
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* Contributors: * Contributors:
* Michael Simon - initial * Michael Simon - initial
******************************************************************************/ ******************************************************************************/
package edu.kit.scc.webreg.service.impl; package edu.kit.scc.webreg.audit;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
...@@ -18,12 +18,12 @@ import javax.inject.Inject; ...@@ -18,12 +18,12 @@ import javax.inject.Inject;
import org.slf4j.Logger; import org.slf4j.Logger;
import edu.kit.scc.webreg.dao.AuditDetailDao;
import edu.kit.scc.webreg.dao.AuditEntryDao;
import edu.kit.scc.webreg.dao.BaseDao; import edu.kit.scc.webreg.dao.BaseDao;
import edu.kit.scc.webreg.dao.audit.AuditDetailDao;
import edu.kit.scc.webreg.dao.audit.AuditEntryDao;
import edu.kit.scc.webreg.entity.audit.AuditDetailEntity; import edu.kit.scc.webreg.entity.audit.AuditDetailEntity;
import edu.kit.scc.webreg.entity.audit.AuditEntryEntity; import edu.kit.scc.webreg.entity.audit.AuditEntryEntity;
import edu.kit.scc.webreg.service.AuditEntryService; import edu.kit.scc.webreg.service.impl.BaseServiceImpl;
@Stateless @Stateless
public class AuditEntryServiceImpl extends BaseServiceImpl<AuditEntryEntity, Long> implements AuditEntryService { public class AuditEntryServiceImpl extends BaseServiceImpl<AuditEntryEntity, Long> implements AuditEntryService {
......
/*******************************************************************************
* Copyright (c) 2014 Michael Simon.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/gpl.html
*
* Contributors:
* Michael Simon - initial
******************************************************************************/
package edu.kit.scc.webreg.audit;
import edu.kit.scc.webreg.entity.audit.AuditUserEntity;
import edu.kit.scc.webreg.service.BaseService;
public interface AuditUserEntryService extends BaseService<AuditUserEntity, Long> {
}
/*******************************************************************************
* Copyright (c) 2014 Michael Simon.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/gpl.html
*
* Contributors:
* Michael Simon - initial
******************************************************************************/
package edu.kit.scc.webreg.audit;
import javax.ejb.Stateless;
import javax.inject.Inject;
import edu.kit.scc.webreg.dao.BaseDao;
import edu.kit.scc.webreg.dao.audit.AuditUserEntryDao;
import edu.kit.scc.webreg.entity.audit.AuditUserEntity;
import edu.kit.scc.webreg.service.impl.BaseServiceImpl;
@Stateless
public class AuditUserEntryServiceImpl extends BaseServiceImpl<AuditUserEntity, Long> implements AuditUserEntryService {
private static final long serialVersionUID = 1L;
@Inject
private AuditUserEntryDao dao;
@Override
protected BaseDao<AuditUserEntity, Long> getDao() {
return dao;
}
}
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
package edu.kit.scc.webreg.audit; package edu.kit.scc.webreg.audit;
import edu.kit.scc.webreg.bootstrap.ApplicationConfig; import edu.kit.scc.webreg.bootstrap.ApplicationConfig;
import edu.kit.scc.webreg.dao.AuditDetailDao; import edu.kit.scc.webreg.dao.audit.AuditDetailDao;
import edu.kit.scc.webreg.dao.AuditEntryDao; import edu.kit.scc.webreg.dao.audit.AuditEntryDao;
import edu.kit.scc.webreg.entity.GroupEntity; import edu.kit.scc.webreg.entity.GroupEntity;
import edu.kit.scc.webreg.entity.audit.AuditGroupEntity; import edu.kit.scc.webreg.entity.audit.AuditGroupEntity;
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
package edu.kit.scc.webreg.audit; package edu.kit.scc.webreg.audit;
import edu.kit.scc.webreg.bootstrap.ApplicationConfig; import edu.kit.scc.webreg.bootstrap.ApplicationConfig;
import edu.kit.scc.webreg.dao.AuditDetailDao; import edu.kit.scc.webreg.dao.audit.AuditDetailDao;
import edu.kit.scc.webreg.dao.AuditEntryDao; import edu.kit.scc.webreg.dao.audit.AuditEntryDao;
import edu.kit.scc.webreg.entity.SamlIdpMetadataEntity; import edu.kit.scc.webreg.entity.SamlIdpMetadataEntity;
import edu.kit.scc.webreg.entity.SamlSpConfigurationEntity; import edu.kit.scc.webreg.entity.SamlSpConfigurationEntity;
import edu.kit.scc.webreg.entity.audit.AuditIdpCommunicationEntity; import edu.kit.scc.webreg.entity.audit.AuditIdpCommunicationEntity;
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
package edu.kit.scc.webreg.audit; package edu.kit.scc.webreg.audit;
import edu.kit.scc.webreg.bootstrap.ApplicationConfig; import edu.kit.scc.webreg.bootstrap.ApplicationConfig;
import edu.kit.scc.webreg.dao.AuditDetailDao; import edu.kit.scc.webreg.dao.audit.AuditDetailDao;
import edu.kit.scc.webreg.dao.AuditEntryDao; import edu.kit.scc.webreg.dao.audit.AuditEntryDao;
import edu.kit.scc.webreg.entity.ServiceEntity; import edu.kit.scc.webreg.entity.ServiceEntity;
import edu.kit.scc.webreg.entity.audit.AuditEntryEntity; import edu.kit.scc.webreg.entity.audit.AuditEntryEntity;
import edu.kit.scc.webreg.entity.audit.AuditServiceEntity; import edu.kit.scc.webreg.entity.audit.AuditServiceEntity;
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
package edu.kit.scc.webreg.audit; package edu.kit.scc.webreg.audit;
import edu.kit.scc.webreg.bootstrap.ApplicationConfig; import edu.kit.scc.webreg.bootstrap.ApplicationConfig;
import edu.kit.scc.webreg.dao.AuditDetailDao; import edu.kit.scc.webreg.dao.audit.AuditDetailDao;
import edu.kit.scc.webreg.dao.AuditEntryDao; import edu.kit.scc.webreg.dao.audit.AuditEntryDao;
import edu.kit.scc.webreg.entity.RegistryEntity; import edu.kit.scc.webreg.entity.RegistryEntity;
import edu.kit.scc.webreg.entity.audit.AuditEntryEntity; import edu.kit.scc.webreg.entity.audit.AuditEntryEntity;
import edu.kit.scc.webreg.entity.audit.AuditServiceRegisterEntity; import edu.kit.scc.webreg.entity.audit.AuditServiceRegisterEntity;
......
...@@ -13,8 +13,8 @@ package edu.kit.scc.webreg.audit; ...@@ -13,8 +13,8 @@ package edu.kit.scc.webreg.audit;
import java.util.Map.Entry; import java.util.Map.Entry;
import edu.kit.scc.webreg.bootstrap.ApplicationConfig; import edu.kit.scc.webreg.bootstrap.ApplicationConfig;
import edu.kit.scc.webreg.dao.AuditDetailDao; import edu.kit.scc.webreg.dao.audit.AuditDetailDao;
import edu.kit.scc.webreg.dao.AuditEntryDao; import edu.kit.scc.webreg.dao.audit.AuditEntryDao;
import edu.kit.scc.webreg.entity.UserEntity; import edu.kit.scc.webreg.entity.UserEntity;
import edu.kit.scc.webreg.entity.audit.AuditEntryEntity; import edu.kit.scc.webreg.entity.audit.AuditEntryEntity;
import edu.kit.scc.webreg.entity.audit.AuditStatus; import edu.kit.scc.webreg.entity.audit.AuditStatus;
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
package edu.kit.scc.webreg.audit; package edu.kit.scc.webreg.audit;
import edu.kit.scc.webreg.bootstrap.ApplicationConfig; import edu.kit.scc.webreg.bootstrap.ApplicationConfig;
import edu.kit.scc.webreg.dao.AuditDetailDao; import edu.kit.scc.webreg.dao.audit.AuditDetailDao;
import edu.kit.scc.webreg.dao.AuditEntryDao; import edu.kit.scc.webreg.dao.audit.AuditEntryDao;
import edu.kit.scc.webreg.entity.UserEntity; import edu.kit.scc.webreg.entity.UserEntity;
import edu.kit.scc.webreg.entity.audit.AuditUserUpdateEntity; import edu.kit.scc.webreg.entity.audit.AuditUserUpdateEntity;
......
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