From c3c10c379bfdd33e4c10b727d2c66ba56ac709c5 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Sat, 23 Jul 2016 01:06:30 +0200 Subject: [PATCH] Renamed project and package. Added headers. --- .project | 2 +- README.MD | 2 +- .../devinsy/gilapic/GitLabAPIException.java | 64 +++++++++++++++ .../{gitlabapic => gilapic}/Utils.java | 20 ++++- .../gitlabapic/GitLabAPIException.java | 79 ------------------- src/fr/devinsy/gitlabapic/v3/GitLab.java | 22 +++++- src/fr/devinsy/gitlabapic/v3/Issue.java | 18 +++++ .../gitlabapic/v3/IssueComparator.java | 42 +++++++--- src/fr/devinsy/gitlabapic/v3/Issues.java | 26 +++++- src/fr/devinsy/gitlabapic/v3/Label.java | 18 +++++ src/fr/devinsy/gitlabapic/v3/Labels.java | 25 +++++- src/fr/devinsy/gitlabapic/v3/Note.java | 18 +++++ src/fr/devinsy/gitlabapic/v3/Notes.java | 27 +++++-- src/fr/devinsy/gitlabapic/v3/Project.java | 22 +++++- src/fr/devinsy/gitlabapic/v3/ProjectRef.java | 44 ++++++++--- src/fr/devinsy/gitlabapic/v3/Projects.java | 24 +++++- 16 files changed, 326 insertions(+), 127 deletions(-) create mode 100644 src/fr/devinsy/gilapic/GitLabAPIException.java rename src/fr/devinsy/{gitlabapic => gilapic}/Utils.java (90%) delete mode 100644 src/fr/devinsy/gitlabapic/GitLabAPIException.java diff --git a/.project b/.project index 16f3741..57e0aea 100644 --- a/.project +++ b/.project @@ -1,6 +1,6 @@ - gitlabapi + Gilapic diff --git a/README.MD b/README.MD index 10ef8f8..9be8b19 100644 --- a/README.MD +++ b/README.MD @@ -1,3 +1,3 @@ -GitLabAPIC is a GitLab API Client. +Gilapic is a Java GitLab API Client. CAUTION: the GitLab API is huge bugged and limited. Lucky you are if it is useful for you… \ No newline at end of file diff --git a/src/fr/devinsy/gilapic/GitLabAPIException.java b/src/fr/devinsy/gilapic/GitLabAPIException.java new file mode 100644 index 0000000..642c35f --- /dev/null +++ b/src/fr/devinsy/gilapic/GitLabAPIException.java @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2016 Christian Pierre MOMON + * + * This file is part of Gilapic. + * + * Gilapic is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +package fr.devinsy.gilapic; + +/** + * + * @author Christian Pierre MOMON (christian.momon@devinsy.fr) + */ +public class GitLabAPIException extends Exception +{ + private static final long serialVersionUID = 2320169742273411056L; + + /** + * + */ + public GitLabAPIException() + { + super(); + } + + /** + * + * @param message + */ + public GitLabAPIException(final String message) + { + super(message); + } + + /** + * + * @param message + * @param cause + */ + public GitLabAPIException(final String message, final Throwable cause) + { + super(message, cause); + } + + /** + * + * @param cause + */ + public GitLabAPIException(final Throwable cause) + { + super(cause); + } +} diff --git a/src/fr/devinsy/gitlabapic/Utils.java b/src/fr/devinsy/gilapic/Utils.java similarity index 90% rename from src/fr/devinsy/gitlabapic/Utils.java rename to src/fr/devinsy/gilapic/Utils.java index 6da6362..82235ba 100644 --- a/src/fr/devinsy/gitlabapic/Utils.java +++ b/src/fr/devinsy/gilapic/Utils.java @@ -1,4 +1,22 @@ -package fr.devinsy.gitlabapic; +/* + * Copyright (C) 2016 Christian Pierre MOMON + * + * This file is part of Gilapic. + * + * Gilapic is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +package fr.devinsy.gilapic; import java.io.ByteArrayOutputStream; import java.io.IOException; diff --git a/src/fr/devinsy/gitlabapic/GitLabAPIException.java b/src/fr/devinsy/gitlabapic/GitLabAPIException.java deleted file mode 100644 index 4fde06d..0000000 --- a/src/fr/devinsy/gitlabapic/GitLabAPIException.java +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Copyright 2015-2016 Christian Pierre MOMON, DEVINSY, TIP, UMR 7186 LESC. - * - * christian.momon@devinsy.fr - * - * This file is part of PuckInstaller. This software (PuckInstaller) is a - * computer program whose purpose is to install PUCK (Program for the Use and - * Computation of Kinship data), an open interactive platform for archiving, - * sharing, analyzing and comparing kinship data used in scientific inquiry. - * - * This software is governed by the CeCILL license under French law and abiding - * by the rules of distribution of free software. You can use, modify and/ or - * redistribute the software under the terms of the CeCILL license as circulated - * by CEA, CNRS and INRIA at the following URL "http://www.cecill.info". - * - * As a counterpart to the access to the source code and rights to copy, modify - * and redistribute granted by the license, users are provided only with a - * limited warranty and the software's author, the holder of the economic - * rights, and the successive licensors have only limited liability. - * - * In this respect, the user's attention is drawn to the risks associated with - * loading, using, modifying and/or developing or reproducing the software by - * the user in light of its specific status of free software, that may mean that - * it is complicated to manipulate, and that also therefore means that it is - * reserved for developers and experienced professionals having in-depth - * computer knowledge. Users are therefore encouraged to load and test the - * software's suitability as regards their requirements in conditions enabling - * the security of their systems and/or data to be ensured and, more generally, - * to use and operate it in the same conditions as regards security. - * - * The fact that you are presently reading this means that you have had - * knowledge of the CeCILL license and that you accept its terms. - */ -package fr.devinsy.gitlabapic; - -/** - * - * @author Christian Pierre MOMON (christian.momon@devinsy.fr) - */ -public class GitLabAPIException extends Exception -{ - private static final long serialVersionUID = 2320169742273411056L; - - /** - * - */ - public GitLabAPIException() - { - super(); - } - - /** - * - * @param message - */ - public GitLabAPIException(final String message) - { - super(message); - } - - /** - * - * @param message - * @param cause - */ - public GitLabAPIException(final String message, final Throwable cause) - { - super(message, cause); - } - - /** - * - * @param cause - */ - public GitLabAPIException(final Throwable cause) - { - super(cause); - } -} diff --git a/src/fr/devinsy/gitlabapic/v3/GitLab.java b/src/fr/devinsy/gitlabapic/v3/GitLab.java index cbeb5c1..31f39ff 100644 --- a/src/fr/devinsy/gitlabapic/v3/GitLab.java +++ b/src/fr/devinsy/gitlabapic/v3/GitLab.java @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2016 Christian Pierre MOMON + * + * This file is part of Gilapic. + * + * Gilapic is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package fr.devinsy.gitlabapic.v3; import java.io.ByteArrayInputStream; @@ -19,8 +37,8 @@ import org.apache.http.HttpException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import fr.devinsy.gitlabapic.GitLabAPIException; -import fr.devinsy.gitlabapic.Utils; +import fr.devinsy.gilapic.GitLabAPIException; +import fr.devinsy.gilapic.Utils; import fr.devinsy.util.strings.StringList; /** diff --git a/src/fr/devinsy/gitlabapic/v3/Issue.java b/src/fr/devinsy/gitlabapic/v3/Issue.java index 855f1b5..611792c 100644 --- a/src/fr/devinsy/gitlabapic/v3/Issue.java +++ b/src/fr/devinsy/gitlabapic/v3/Issue.java @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2016 Christian Pierre MOMON + * + * This file is part of Gilapic. + * + * Gilapic is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package fr.devinsy.gitlabapic.v3; import org.apache.commons.lang3.StringUtils; diff --git a/src/fr/devinsy/gitlabapic/v3/IssueComparator.java b/src/fr/devinsy/gitlabapic/v3/IssueComparator.java index 8ddb3d7..e07cad5 100644 --- a/src/fr/devinsy/gitlabapic/v3/IssueComparator.java +++ b/src/fr/devinsy/gitlabapic/v3/IssueComparator.java @@ -1,12 +1,30 @@ +/* + * Copyright (C) 2016 Christian Pierre MOMON + * + * This file is part of Gilapic. + * + * Gilapic is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package fr.devinsy.gitlabapic.v3; import java.text.Collator; import java.util.Comparator; /** - * + * * @author TIP - * + * */ public class IssueComparator implements Comparator { @@ -21,7 +39,7 @@ public class IssueComparator implements Comparator private Sorting sorting; /** - * + * * @param sorting */ public IssueComparator(final Sorting sorting) @@ -30,8 +48,8 @@ public class IssueComparator implements Comparator } /** - * - */ + * + */ @Override public int compare(final Issue alpha, final Issue bravo) { @@ -44,7 +62,7 @@ public class IssueComparator implements Comparator } /** - * + * * @param alpha * @param bravo * @return @@ -83,8 +101,8 @@ public class IssueComparator implements Comparator } /** - * - */ + * + */ public static int compare(final Issue alpha, final Issue bravo, final Sorting sorting) { int result; @@ -112,7 +130,7 @@ public class IssueComparator implements Comparator } /** - * + * * @param alpha * @param bravo * @return @@ -151,7 +169,7 @@ public class IssueComparator implements Comparator } /** - * + * * @param source * @return */ @@ -176,7 +194,7 @@ public class IssueComparator implements Comparator } /** - * + * * @param source * @return */ @@ -201,7 +219,7 @@ public class IssueComparator implements Comparator } /** - * + * * @param source * @return */ diff --git a/src/fr/devinsy/gitlabapic/v3/Issues.java b/src/fr/devinsy/gitlabapic/v3/Issues.java index aeb41ab..50624b0 100644 --- a/src/fr/devinsy/gitlabapic/v3/Issues.java +++ b/src/fr/devinsy/gitlabapic/v3/Issues.java @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2016 Christian Pierre MOMON + * + * This file is part of Gilapic. + * + * Gilapic is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package fr.devinsy.gitlabapic.v3; import java.util.ArrayList; @@ -6,7 +24,7 @@ import java.util.Collections; import fr.devinsy.gitlabapic.v3.IssueComparator.Sorting; /** - * + * * @author Christian Pierre MOMON (christian.momon@devinsy.fr) */ public class Issues extends ArrayList @@ -14,7 +32,7 @@ public class Issues extends ArrayList private static final long serialVersionUID = 5680167995492232717L; /** - * + * */ public Issues() { @@ -22,7 +40,7 @@ public class Issues extends ArrayList } /** - * + * * @param initialCapacity */ public Issues(final int initialCapacity) @@ -31,7 +49,7 @@ public class Issues extends ArrayList } /** - * + * * @return */ public Issues sort() diff --git a/src/fr/devinsy/gitlabapic/v3/Label.java b/src/fr/devinsy/gitlabapic/v3/Label.java index 3551f6b..34b9bf8 100644 --- a/src/fr/devinsy/gitlabapic/v3/Label.java +++ b/src/fr/devinsy/gitlabapic/v3/Label.java @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2016 Christian Pierre MOMON + * + * This file is part of Gilapic. + * + * Gilapic is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package fr.devinsy.gitlabapic.v3; import org.slf4j.Logger; diff --git a/src/fr/devinsy/gitlabapic/v3/Labels.java b/src/fr/devinsy/gitlabapic/v3/Labels.java index 0a5f792..aada6ce 100644 --- a/src/fr/devinsy/gitlabapic/v3/Labels.java +++ b/src/fr/devinsy/gitlabapic/v3/Labels.java @@ -1,8 +1,27 @@ +/* + * Copyright (C) 2016 Christian Pierre MOMON + * + * This file is part of Gilapic. + * + * Gilapic is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package fr.devinsy.gitlabapic.v3; + import java.util.ArrayList; /** - * + * * @author Christian Pierre MOMON (christian.momon@devinsy.fr) */ public class Labels extends ArrayList