Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,061 changes: 400 additions & 661 deletions LICENSE

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions NOTICE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# NOTICE

## Bahmni Java Utils

Copyright © 2013–2017 ThoughtWorks, Inc.
Copyright © 2017–Present OpenMRS Inc

This repository includes software originally developed by ThoughtWorks, Inc.
as part of the Bahmni project.

### Contributors

See the repository's version control history for the complete and
authoritative list of contributors.

### Third-Party Components

This repository may include third-party dependencies.
Such components remain subject to their respective license terms.
License information can be found in relevant dependency configuration
files (e.g., `pom.xml`, `package.json`, `requirements.txt`)
and/or their respective upstream sources.

This repository includes third-party source code that is licensed separately:

- Maven Wrapper (`mvnw`, `mvnw.cmd`, `.mvn/wrapper/*`)
Licensed under the Apache License, Version 2.0.
Copyright © the original authors.


This NOTICE is provided for attribution and historical reference only.
It does not modify or supersede the terms of the license governing this repository.
The applicable license is set forth in the LICENSE file at the root of this repository.
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/. Bahmni is also distributed under
* the terms of the Healthcare Disclaimer located at https://www.bahmni.org/license
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/


package org.bahmni.extensions;

import groovy.lang.GroovyClassLoader;
Expand Down
11 changes: 11 additions & 0 deletions bahmni-migrator/src/main/java/org/bahmni/csv/CSVEntity.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/. Bahmni is also distributed under
* the terms of the Healthcare Disclaimer located at https://www.bahmni.org/license
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/


package org.bahmni.csv;

import java.util.ArrayList;
Expand Down
11 changes: 11 additions & 0 deletions bahmni-migrator/src/main/java/org/bahmni/csv/CSVFile.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/. Bahmni is also distributed under
* the terms of the Healthcare Disclaimer located at https://www.bahmni.org/license
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/


package org.bahmni.csv;

import au.com.bytecode.opencsv.CSVReader;
Expand Down
11 changes: 11 additions & 0 deletions bahmni-migrator/src/main/java/org/bahmni/csv/CSVRow.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/. Bahmni is also distributed under
* the terms of the Healthcare Disclaimer located at https://www.bahmni.org/license
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/


package org.bahmni.csv;

import org.bahmni.csv.column.CSVColumns;
Expand Down
11 changes: 11 additions & 0 deletions bahmni-migrator/src/main/java/org/bahmni/csv/EntityPersister.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/. Bahmni is also distributed under
* the terms of the Healthcare Disclaimer located at https://www.bahmni.org/license
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/


package org.bahmni.csv;

public interface EntityPersister<T extends CSVEntity> {
Expand Down
11 changes: 11 additions & 0 deletions bahmni-migrator/src/main/java/org/bahmni/csv/FailedRowResult.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/. Bahmni is also distributed under
* the terms of the Healthcare Disclaimer located at https://www.bahmni.org/license
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/


package org.bahmni.csv;

public class FailedRowResult<T extends CSVEntity> extends RowResult<T> {
Expand Down
11 changes: 11 additions & 0 deletions bahmni-migrator/src/main/java/org/bahmni/csv/KeyValue.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/. Bahmni is also distributed under
* the terms of the Healthcare Disclaimer located at https://www.bahmni.org/license
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/


package org.bahmni.csv;

public class KeyValue implements Comparable<KeyValue> {
Expand Down
11 changes: 11 additions & 0 deletions bahmni-migrator/src/main/java/org/bahmni/csv/Messages.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/. Bahmni is also distributed under
* the terms of the Healthcare Disclaimer located at https://www.bahmni.org/license
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/


package org.bahmni.csv;

import java.util.ArrayList;
Expand Down
11 changes: 11 additions & 0 deletions bahmni-migrator/src/main/java/org/bahmni/csv/MigrateResult.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/. Bahmni is also distributed under
* the terms of the Healthcare Disclaimer located at https://www.bahmni.org/license
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/


package org.bahmni.csv;

public class MigrateResult<T extends CSVEntity> {
Expand Down
11 changes: 11 additions & 0 deletions bahmni-migrator/src/main/java/org/bahmni/csv/Migrator.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/. Bahmni is also distributed under
* the terms of the Healthcare Disclaimer located at https://www.bahmni.org/license
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/


package org.bahmni.csv;

import org.slf4j.Logger;
Expand Down
11 changes: 11 additions & 0 deletions bahmni-migrator/src/main/java/org/bahmni/csv/MigratorBuilder.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/. Bahmni is also distributed under
* the terms of the Healthcare Disclaimer located at https://www.bahmni.org/license
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/


package org.bahmni.csv;

public class MigratorBuilder<T extends CSVEntity> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/. Bahmni is also distributed under
* the terms of the Healthcare Disclaimer located at https://www.bahmni.org/license
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/


package org.bahmni.csv;

import org.slf4j.Logger;
Expand Down
11 changes: 11 additions & 0 deletions bahmni-migrator/src/main/java/org/bahmni/csv/RowResult.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/. Bahmni is also distributed under
* the terms of the Healthcare Disclaimer located at https://www.bahmni.org/license
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/


package org.bahmni.csv;

import org.apache.commons.lang.StringUtils;
Expand Down
11 changes: 11 additions & 0 deletions bahmni-migrator/src/main/java/org/bahmni/csv/SimpleStage.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/. Bahmni is also distributed under
* the terms of the Healthcare Disclaimer located at https://www.bahmni.org/license
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/


package org.bahmni.csv;

import org.bahmni.csv.exception.MigrationException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/. Bahmni is also distributed under
* the terms of the Healthcare Disclaimer located at https://www.bahmni.org/license
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/


package org.bahmni.csv;

import java.util.List;
Expand Down
11 changes: 11 additions & 0 deletions bahmni-migrator/src/main/java/org/bahmni/csv/Stage.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/. Bahmni is also distributed under
* the terms of the Healthcare Disclaimer located at https://www.bahmni.org/license
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/


package org.bahmni.csv;

import org.slf4j.Logger;
Expand Down
11 changes: 11 additions & 0 deletions bahmni-migrator/src/main/java/org/bahmni/csv/StageCallable.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/. Bahmni is also distributed under
* the terms of the Healthcare Disclaimer located at https://www.bahmni.org/license
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/


package org.bahmni.csv;

import org.apache.commons.lang.StringUtils;
Expand Down
11 changes: 11 additions & 0 deletions bahmni-migrator/src/main/java/org/bahmni/csv/StageResult.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/. Bahmni is also distributed under
* the terms of the Healthcare Disclaimer located at https://www.bahmni.org/license
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/


package org.bahmni.csv;

import java.util.List;
Expand Down
11 changes: 11 additions & 0 deletions bahmni-migrator/src/main/java/org/bahmni/csv/Stages.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/. Bahmni is also distributed under
* the terms of the Healthcare Disclaimer located at https://www.bahmni.org/license
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/


package org.bahmni.csv;

import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/. Bahmni is also distributed under
* the terms of the Healthcare Disclaimer located at https://www.bahmni.org/license
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/


package org.bahmni.csv.annotation;

import java.lang.annotation.ElementType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/. Bahmni is also distributed under
* the terms of the Healthcare Disclaimer located at https://www.bahmni.org/license
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/


package org.bahmni.csv.annotation;

import java.lang.annotation.ElementType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/. Bahmni is also distributed under
* the terms of the Healthcare Disclaimer located at https://www.bahmni.org/license
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/


package org.bahmni.csv.annotation;

import java.lang.annotation.ElementType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/. Bahmni is also distributed under
* the terms of the Healthcare Disclaimer located at https://www.bahmni.org/license
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/


package org.bahmni.csv.annotation;

import java.lang.annotation.ElementType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/. Bahmni is also distributed under
* the terms of the Healthcare Disclaimer located at https://www.bahmni.org/license
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/


package org.bahmni.csv.column;

import org.bahmni.csv.CSVEntity;
Expand Down
Loading