HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2016-11-16 77fc48aaa73b40e271e9d7e93bf7e6ce899afd22
code formatting
3 files modified
26 ■■■■■ changed files
hsarback/src/de/hsadmin/core/qserv/EntityProcessorFactory.java 20 ●●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/core/qserv/QueueStatusReceiverServlet.java 1 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java 5 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/core/qserv/EntityProcessorFactory.java
@@ -4,19 +4,15 @@
import de.hsadmin.core.model.AbstractEntity;
/**
 * Most processor factories need only these methods.
 *
 * @author peter
 */
public interface EntityProcessorFactory {
    public <T extends AbstractEntity> Processor createCreateProcessor(EntityManager em,
            T entity) throws ProcessorException;
public interface EntityProcessorFactory
{
    public <T extends AbstractEntity> Processor
        createCreateProcessor(EntityManager em, T entity) throws ProcessorException;
    public <T extends AbstractEntity> Processor createUpdateProcessor(EntityManager em,
            T newEntity) throws ProcessorException;
    public <T extends AbstractEntity> Processor
        createUpdateProcessor(EntityManager em, T newEntity) throws ProcessorException;
    public <T extends AbstractEntity> Processor createDeleteProcessor(EntityManager em,
            T entity) throws ProcessorException;
    public <T extends AbstractEntity> Processor
        createDeleteProcessor(EntityManager em, T entity) throws ProcessorException;
}
hsarback/src/de/hsadmin/core/qserv/QueueStatusReceiverServlet.java
@@ -117,7 +117,6 @@
            transaction = new Transaction("statusreceiver");
            transaction.beginTransaction();
            EntityManager em = transaction.getEntityManager();
            // merging detachedQT directly makes Hibernate run into an endless recursion (stack overflow)
            em.clear();
            QueueTask persistentQT = em.find(QueueTask.class, detachedQT.getId());
            persistentQT.assign(detachedQT);
hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java
@@ -115,10 +115,7 @@
    }
    private Processor createNetworkInterfacesProc(final Hive hive) throws ProcessorException {
//        VelocityProcessor interfacesProc = new VelocityProcessor("/de/hsadmin/mods/pac/interfaces.vm", hive, "/etc/network/interfaces", true);
        final VelocityProcessor pacIPv4Proc = new VelocityProcessor("/de/hsadmin/mods/pac/pac-addr-ipv4.vm", hive, "/etc/network/pac-addr-ipv4", true);
        return pacIPv4Proc;
//        return new CompoundProcessor(interfacesProc, pacIPv4Proc);
        return new VelocityProcessor("/de/hsadmin/mods/pac/pac-addr-ipv4.vm", hive, "/etc/network/pac-addr-ipv4", true);
    }
    private Processor createIPTablesProc() {