/** * Create an instance of {@link AuditSourceTypeCode } * */ public AuditSourceTypeCode createAuditSourceTypeCode() { return new AuditSourceTypeCode(); }
/** * Create an instance of {@link Accession } * */ public Accession createAccession() { return new Accession(); }
public static AuditMessage createMessage( EventIdentificationBuilder eventIdentificationBuilder, ActiveParticipantBuilder[] activeParticipantBuilders, ParticipantObjectIdentificationBuilder... participantObjectIdentificationBuilders) { AuditMessage msg = new AuditMessage(); msg.setEventIdentification(toEventIdentification(eventIdentificationBuilder)); for (ActiveParticipantBuilder activeParticipantBuilder : activeParticipantBuilders) if (activeParticipantBuilder != null) msg.getActiveParticipant().add(toActiveParticipant(activeParticipantBuilder)); for (ParticipantObjectIdentificationBuilder participantObjectIdentificationBuilder : participantObjectIdentificationBuilders) msg.getParticipantObjectIdentification().add(toParticipantObjectIdentification(participantObjectIdentificationBuilder)); return msg; }
public static SOPClass createSOPClass(HashSet<String> instances, String uid, Integer numI) { SOPClass sopClass = new SOPClass(); sopClass.setUID(uid); sopClass.setNumberOfInstances(numI); if (null != instances) for (String i : instances) sopClass.getInstance().add(createInstance(i)); return sopClass; }
/** * Create an instance of {@link EventTypeCode } * */ public EventTypeCode createEventTypeCode() { return new EventTypeCode(); }
public static AuditMessages.UserIDTypeCode userIDTypeCode(String userID) { return AuditMessages.isIP(userID) ? AuditMessages.UserIDTypeCode.NodeID : AuditMessages.UserIDTypeCode.PersonID; } }
/** * Create an instance of {@link AuditSourceIdentification } * */ public AuditSourceIdentification createAuditSourceIdentification() { return new AuditSourceIdentification(); }
/** * Create an instance of {@link ActiveParticipant } * */ public ActiveParticipant createActiveParticipant() { return new ActiveParticipant(); }
/** * Create an instance of {@link ParticipantObjectDetail } * */ public ParticipantObjectDetail createParticipantObjectDetail() { return new ParticipantObjectDetail(); }
/** * Create an instance of {@link StudyIDs } * */ public StudyIDs createStudyIDs() { return new StudyIDs(); }
/** * Create an instance of {@link ParticipantObjectIdentification } * */ public ParticipantObjectIdentification createParticipantObjectIdentification() { return new ParticipantObjectIdentification(); }
/** * Create an instance of {@link SOPClass } * */ public SOPClass createSOPClass() { return new SOPClass(); }
/** * Create an instance of {@link ParticipantObjectContainsStudy } * */ public ParticipantObjectContainsStudy createParticipantObjectContainsStudy() { return new ParticipantObjectContainsStudy(); }
/** * Create an instance of {@link ParticipantObjectDescription } * */ public ParticipantObjectDescription createParticipantObjectDescription() { return new ParticipantObjectDescription(); }
/** * Create an instance of {@link EventIdentification } * */ public EventIdentification createEventIdentification() { return new EventIdentification(); }
/** * Create an instance of {@link AuditMessage } * */ public AuditMessage createAuditMessage() { return new AuditMessage(); }
public Builder(String userID, String napID) { this.userID = userID; this.napID = napID; this.napTypeCode = napID != null ? AuditMessages.isIP(napID) ? AuditMessages.NetworkAccessPointTypeCode.IPAddress : AuditMessages.NetworkAccessPointTypeCode.MachineName : null; }