Examples of AuditRecordRepository


Examples of org.dcm4che3.net.audit.AuditRecordRepository

        assertEquals(SPOOL_DIRECTORY, logger.getSpoolDirectory());
        assertTrue(logger.isIncludeInstanceUID());
        validate(logger.getAuditSuppressCriteriaList());
        Device arrDevice = logger.getAuditRecordRepositoryDevice();
        assertNotNull(arrDevice);
        AuditRecordRepository arr = arrDevice.getDeviceExtension(AuditRecordRepository.class);
        assertNotNull(arr);
        assertEquals(2, arr.getConnections().size());
    }
View Full Code Here

Examples of org.dcm4che3.net.audit.AuditRecordRepository

public class PreferencesAuditRecordRepositoryConfiguration extends
        PreferencesDicomConfigurationExtension {

    @Override
    protected void storeChilds(Device device, Preferences deviceNode) {
        AuditRecordRepository arr =
                device.getDeviceExtension(AuditRecordRepository.class);
        if (arr != null)
            storeTo(arr, deviceNode.node("dcmAuditRecordRepository"));
    }
View Full Code Here

Examples of org.dcm4che3.net.audit.AuditRecordRepository

        if (!deviceNode.nodeExists("dcmAuditRecordRepository"))
            return;
       
        List<Connection> devConns = device.listConnections();
        Preferences arrNode = deviceNode.node("dcmAuditRecordRepository");
        AuditRecordRepository arr = new AuditRecordRepository();
        loadFrom(arr, arrNode);
        int n = arrNode.getInt("dicomNetworkConnectionReference.#", 0);
        for (int i = 0; i < n; i++) {
            arr.addConnection(devConns.get(
                    arrNode.getInt("dicomNetworkConnectionReference." + (i+1), 0) - 1));
        }
        device.addDeviceExtension(arr);
    }
View Full Code Here

Examples of org.dcm4che3.net.audit.AuditRecordRepository

    }

    @Override
    protected void mergeChilds(Device prev, Device device, Preferences deviceNode)
            throws BackingStoreException {
        AuditRecordRepository prevARR =
                prev.getDeviceExtension(AuditRecordRepository.class);
        AuditRecordRepository arr =
                device.getDeviceExtension(AuditRecordRepository.class);
        if (arr == null && prevARR == null)
            return;
       
        Preferences arrNode = deviceNode.node("dcmAuditRecordRepository");
View Full Code Here

Examples of org.dcm4che3.net.audit.AuditRecordRepository

        return device ;
    }

    private void addAuditRecordRepository(Device device, Connection udp,
            Connection tls) {
        AuditRecordRepository arr = new AuditRecordRepository();
        device.addDeviceExtension(arr);
        arr.addConnection(udp);
        arr.addConnection(tls);
    }
View Full Code Here

Examples of org.dcm4che3.net.audit.AuditRecordRepository

        assertEquals(SPOOL_DIRECTORY, logger.getSpoolDirectory());
        assertTrue(logger.isIncludeInstanceUID());
        validate(logger.getAuditSuppressCriteriaList());
        Device arrDevice = logger.getAuditRecordRepositoryDevice();
        assertNotNull(arrDevice);
        AuditRecordRepository arr = arrDevice.getDeviceExtension(AuditRecordRepository.class);
        assertNotNull(arr);
        assertEquals(2, arr.getConnections().size());
    }
View Full Code Here

Examples of org.dcm4che3.net.audit.AuditRecordRepository

        return device ;
    }

    private void addAuditRecordRepository(Device device, Connection udp,
            Connection tls) {
        AuditRecordRepository arr = new AuditRecordRepository();
        device.addDeviceExtension(arr);
        arr.addConnection(udp);
        arr.addConnection(tls);
    }
View Full Code Here

Examples of org.dcm4che3.net.audit.AuditRecordRepository

            "cn=Audit Record Repository,";

    @Override
    protected void storeChilds(String deviceDN, Device device)
            throws NamingException {
        AuditRecordRepository arr =
                device.getDeviceExtension(AuditRecordRepository.class);
        if (arr != null)
            store(deviceDN, arr);
    }
View Full Code Here

Examples of org.dcm4che3.net.audit.AuditRecordRepository

        try {
            attrs = config.getAttributes(CN_AUDIT_RECORD_REPOSITORY + deviceDN);
        } catch (NameNotFoundException e) {
            return;
        }
        AuditRecordRepository arr = new AuditRecordRepository();
        loadFrom(arr, attrs);
        for (String connDN : LdapUtils.stringArray(
                attrs.get("dicomNetworkConnectionReference")))
            arr.addConnection(
                    LdapUtils.findConnection(connDN, deviceDN, device));
        device.addDeviceExtension(arr);
    }
View Full Code Here

Examples of org.dcm4che3.net.audit.AuditRecordRepository

    }

    @Override
    protected void mergeChilds(Device prev, Device device, String deviceDN)
            throws NamingException {
        AuditRecordRepository prevARR = prev.getDeviceExtension(AuditRecordRepository.class);
        AuditRecordRepository arr = device.getDeviceExtension(AuditRecordRepository.class);
        if (arr == null) {
            if (prevARR != null)
                config.destroySubcontextWithChilds(CN_AUDIT_RECORD_REPOSITORY + deviceDN);
            return;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.