Commit d554744d authored by michael.simon's avatar michael.simon
Browse files

Refactor Audit to new package. Introduce IdpCommunication Audit

parent d2725e67
......@@ -13,8 +13,8 @@ package edu.kit.scc.webreg.dao;
import java.util.List;
import edu.kit.scc.webreg.entity.AuditDetailEntity;
import edu.kit.scc.webreg.entity.AuditEntryEntity;
import edu.kit.scc.webreg.entity.audit.AuditDetailEntity;
import edu.kit.scc.webreg.entity.audit.AuditEntryEntity;
public interface AuditDetailDao extends BaseDao<AuditDetailEntity, Long> {
......
......@@ -13,9 +13,9 @@ package edu.kit.scc.webreg.dao;
import java.util.Date;
import java.util.List;
import edu.kit.scc.webreg.entity.AuditEntryEntity;
import edu.kit.scc.webreg.entity.AuditServiceRegisterEntity;
import edu.kit.scc.webreg.entity.RegistryEntity;
import edu.kit.scc.webreg.entity.audit.AuditEntryEntity;
import edu.kit.scc.webreg.entity.audit.AuditServiceRegisterEntity;
public interface AuditEntryDao extends BaseDao<AuditEntryEntity, Long> {
......
......@@ -16,9 +16,9 @@ import javax.enterprise.context.ApplicationScoped;
import javax.inject.Named;
import edu.kit.scc.webreg.dao.AuditDetailDao;
import edu.kit.scc.webreg.entity.AuditDetailEntity;
import edu.kit.scc.webreg.entity.AuditEntryEntity;
import edu.kit.scc.webreg.entity.AuditStatus;
import edu.kit.scc.webreg.entity.audit.AuditDetailEntity;
import edu.kit.scc.webreg.entity.audit.AuditEntryEntity;
import edu.kit.scc.webreg.entity.audit.AuditStatus;
@Named
@ApplicationScoped
......
......@@ -17,9 +17,9 @@ import javax.enterprise.context.ApplicationScoped;
import javax.inject.Named;
import edu.kit.scc.webreg.dao.AuditEntryDao;
import edu.kit.scc.webreg.entity.AuditEntryEntity;
import edu.kit.scc.webreg.entity.AuditServiceRegisterEntity;
import edu.kit.scc.webreg.entity.RegistryEntity;
import edu.kit.scc.webreg.entity.audit.AuditEntryEntity;
import edu.kit.scc.webreg.entity.audit.AuditServiceRegisterEntity;
@Named
@ApplicationScoped
......
......@@ -8,7 +8,7 @@
* Contributors:
* Michael Simon - initial
******************************************************************************/
package edu.kit.scc.webreg.entity;
package edu.kit.scc.webreg.entity.audit;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
......
package edu.kit.scc.webreg.entity;
package edu.kit.scc.webreg.entity.audit;
import javax.annotation.Generated;
import javax.persistence.metamodel.SingularAttribute;
......
......@@ -8,7 +8,7 @@
* Contributors:
* Michael Simon - initial
******************************************************************************/
package edu.kit.scc.webreg.entity;
package edu.kit.scc.webreg.entity.audit;
import java.util.Date;
......@@ -19,6 +19,8 @@ import javax.persistence.Enumerated;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import edu.kit.scc.webreg.entity.AbstractBaseEntity;
@Entity(name = "AuditDetailEntity")
@Table(name = "audit_detail")
public class AuditDetailEntity extends AbstractBaseEntity {
......
package edu.kit.scc.webreg.entity;
package edu.kit.scc.webreg.entity.audit;
import javax.annotation.Generated;
import javax.persistence.metamodel.SingularAttribute;
......
......@@ -8,7 +8,7 @@
* Contributors:
* Michael Simon - initial
******************************************************************************/
package edu.kit.scc.webreg.entity;
package edu.kit.scc.webreg.entity.audit;
import java.util.Date;
import java.util.Set;
......@@ -23,6 +23,8 @@ import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import edu.kit.scc.webreg.entity.AbstractBaseEntity;
@Entity(name = "AuditEntryEntity")
@Table(name = "audit_entry")
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
......
package edu.kit.scc.webreg.entity;
package edu.kit.scc.webreg.entity.audit;
import javax.annotation.Generated;
import javax.persistence.metamodel.CollectionAttribute;
......
......@@ -8,11 +8,13 @@
* Contributors:
* Michael Simon - initial
******************************************************************************/
package edu.kit.scc.webreg.entity;
package edu.kit.scc.webreg.entity.audit;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import edu.kit.scc.webreg.entity.GroupEntity;
@Entity(name = "AuditGroupEntity")
public class AuditGroupEntity extends AuditEntryEntity {
......
package edu.kit.scc.webreg.entity;
package edu.kit.scc.webreg.entity.audit;
import javax.annotation.Generated;
import javax.persistence.metamodel.SingularAttribute;
......
/*******************************************************************************
* 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.entity.audit;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import edu.kit.scc.webreg.entity.SamlIdpMetadataEntity;
import edu.kit.scc.webreg.entity.SamlSpConfigurationEntity;
@Entity(name = "AuditIdpCommunicationEntity")
public class AuditIdpCommunicationEntity extends AuditEntryEntity {
private static final long serialVersionUID = 1L;
@ManyToOne(targetEntity = SamlIdpMetadataEntity.class)
private SamlIdpMetadataEntity idp;
@ManyToOne(targetEntity = SamlSpConfigurationEntity.class)
private SamlSpConfigurationEntity spConfig;
public SamlIdpMetadataEntity getIdp() {
return idp;
}
public void setIdp(SamlIdpMetadataEntity idp) {
this.idp = idp;
}
public SamlSpConfigurationEntity getSpConfig() {
return spConfig;
}
public void setSpConfig(SamlSpConfigurationEntity spConfig) {
this.spConfig = spConfig;
}
}
package edu.kit.scc.webreg.entity.audit;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
import edu.kit.scc.webreg.entity.SamlIdpMetadataEntity;
import edu.kit.scc.webreg.entity.SamlSpConfigurationEntity;
@StaticMetamodel(AuditUserUpdateEntity.class)
public class AuditIdpCommunicationEntity_ {
public static volatile SingularAttribute<AuditIdpCommunicationEntity, SamlIdpMetadataEntity> idp;
public static volatile SingularAttribute<AuditIdpCommunicationEntity, SamlSpConfigurationEntity> spConfig;
}
......@@ -8,11 +8,13 @@
* Contributors:
* Michael Simon - initial
******************************************************************************/
package edu.kit.scc.webreg.entity;
package edu.kit.scc.webreg.entity.audit;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import edu.kit.scc.webreg.entity.ServiceEntity;
@Entity(name = "AuditServiceEntity")
public class AuditServiceEntity extends AuditEntryEntity {
......
package edu.kit.scc.webreg.entity;
package edu.kit.scc.webreg.entity.audit;
import javax.annotation.Generated;
import javax.persistence.metamodel.SingularAttribute;
......
......@@ -8,11 +8,13 @@
* Contributors:
* Michael Simon - initial
******************************************************************************/
package edu.kit.scc.webreg.entity;
package edu.kit.scc.webreg.entity.audit;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import edu.kit.scc.webreg.entity.RegistryEntity;
@Entity(name = "AuditServiceRegisterEntity")
public class AuditServiceRegisterEntity extends AuditEntryEntity {
......
package edu.kit.scc.webreg.entity;
package edu.kit.scc.webreg.entity.audit;
import javax.annotation.Generated;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
import edu.kit.scc.webreg.entity.RegistryEntity;
@Generated(value="Dali", date="2015-12-17T10:35:38.121+0100")
@StaticMetamodel(AuditServiceRegisterEntity.class)
public class AuditServiceRegisterEntity_ extends AuditEntryEntity_ {
......
......@@ -8,7 +8,7 @@
* Contributors:
* Michael Simon - initial
******************************************************************************/
package edu.kit.scc.webreg.entity;
package edu.kit.scc.webreg.entity.audit;
public enum AuditStatus {
......
......@@ -8,7 +8,7 @@
* Contributors:
* Michael Simon - initial
******************************************************************************/
package edu.kit.scc.webreg.entity;
package edu.kit.scc.webreg.entity.audit;
import javax.persistence.Entity;
......
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