Package org.dcm4che3.net.audit

Examples of org.dcm4che3.net.audit.AuditRecordRepository


        main.setRspHandlerFactory(new StoreSCU.RSPHandlerFactory() {

            @Override
            public DimseRSPHandler createDimseRSPHandler(final File f) {

                return new DimseRSPHandler(0) {

                    @Override
                    public void onDimseRSP(Association as, Attributes cmd,
                            Attributes data) {
                        super.onDimseRSP(as, cmd, data);
View Full Code Here


    private static void configureTransferCapability(ApplicationEntity ae,
            CommandLine cl) throws IOException {
        if (cl.hasOption("accept-unknown")) {
            ae.addTransferCapability(
                    new TransferCapability(null,
                            "*",
                            TransferCapability.Role.SCP,
                            "*"));
        } else {
            Properties p = CLIUtils.loadProperties(
                    cl.getOptionValue("sop-classes",
                            "resource:sop-classes.properties"),
                    null);
            for (String cuid : p.stringPropertyNames()) {
                String ts = p.getProperty(cuid);
                TransferCapability tc = new TransferCapability(null,
                        CLIUtils.toUID(cuid),
                        TransferCapability.Role.SCP,
                        CLIUtils.toUIDs(ts));
                ae.addTransferCapability(tc);
            }
View Full Code Here

        rq.addPresentationContext(
                new PresentationContext(2,
                        UID.StorageCommitmentPushModelSOPClass,
                        tss));
        ae.addTransferCapability(
                new TransferCapability(null,
                        UID.VerificationSOPClass,
                        TransferCapability.Role.SCP,
                        UID.ImplicitVRLittleEndian));
        ae.addTransferCapability(
                new TransferCapability(null,
                        UID.StorageCommitmentPushModelSOPClass,
                        TransferCapability.Role.SCU,
                        tss));
    }
View Full Code Here

        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

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

        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

    }

    @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

        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

        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

        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

TOP

Related Classes of org.dcm4che3.net.audit.AuditRecordRepository

Copyright © 2018 www.massapicom. 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.