Renamed project and package. Added headers.
This commit is contained in:
parent
2f41a68973
commit
c3c10c379b
16 changed files with 326 additions and 127 deletions
2
.project
2
.project
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<projectDescription>
|
<projectDescription>
|
||||||
<name>gitlabapi</name>
|
<name>Gilapic</name>
|
||||||
<comment></comment>
|
<comment></comment>
|
||||||
<projects>
|
<projects>
|
||||||
</projects>
|
</projects>
|
||||||
|
|
|
@ -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…
|
CAUTION: the GitLab API is huge bugged and limited. Lucky you are if it is useful for you…
|
64
src/fr/devinsy/gilapic/GitLabAPIException.java
Normal file
64
src/fr/devinsy/gilapic/GitLabAPIException.java
Normal file
|
@ -0,0 +1,64 @@
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2016 Christian Pierre MOMON <christian.momon@devinsy.fr>
|
||||||
|
*
|
||||||
|
* 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,4 +1,22 @@
|
||||||
package fr.devinsy.gitlabapic;
|
/*
|
||||||
|
* Copyright (C) 2016 Christian Pierre MOMON <christian.momon@devinsy.fr>
|
||||||
|
*
|
||||||
|
* 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
package fr.devinsy.gilapic;
|
||||||
|
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
|
@ -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);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,3 +1,21 @@
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2016 Christian Pierre MOMON <christian.momon@devinsy.fr>
|
||||||
|
*
|
||||||
|
* 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package fr.devinsy.gitlabapic.v3;
|
package fr.devinsy.gitlabapic.v3;
|
||||||
|
|
||||||
import java.io.ByteArrayInputStream;
|
import java.io.ByteArrayInputStream;
|
||||||
|
@ -19,8 +37,8 @@ import org.apache.http.HttpException;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import fr.devinsy.gitlabapic.GitLabAPIException;
|
import fr.devinsy.gilapic.GitLabAPIException;
|
||||||
import fr.devinsy.gitlabapic.Utils;
|
import fr.devinsy.gilapic.Utils;
|
||||||
import fr.devinsy.util.strings.StringList;
|
import fr.devinsy.util.strings.StringList;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,3 +1,21 @@
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2016 Christian Pierre MOMON <christian.momon@devinsy.fr>
|
||||||
|
*
|
||||||
|
* 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package fr.devinsy.gitlabapic.v3;
|
package fr.devinsy.gitlabapic.v3;
|
||||||
|
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
|
|
@ -1,12 +1,30 @@
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2016 Christian Pierre MOMON <christian.momon@devinsy.fr>
|
||||||
|
*
|
||||||
|
* 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package fr.devinsy.gitlabapic.v3;
|
package fr.devinsy.gitlabapic.v3;
|
||||||
|
|
||||||
import java.text.Collator;
|
import java.text.Collator;
|
||||||
import java.util.Comparator;
|
import java.util.Comparator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author TIP
|
* @author TIP
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class IssueComparator implements Comparator<Issue>
|
public class IssueComparator implements Comparator<Issue>
|
||||||
{
|
{
|
||||||
|
@ -21,7 +39,7 @@ public class IssueComparator implements Comparator<Issue>
|
||||||
private Sorting sorting;
|
private Sorting sorting;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param sorting
|
* @param sorting
|
||||||
*/
|
*/
|
||||||
public IssueComparator(final Sorting sorting)
|
public IssueComparator(final Sorting sorting)
|
||||||
|
@ -30,8 +48,8 @@ public class IssueComparator implements Comparator<Issue>
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int compare(final Issue alpha, final Issue bravo)
|
public int compare(final Issue alpha, final Issue bravo)
|
||||||
{
|
{
|
||||||
|
@ -44,7 +62,7 @@ public class IssueComparator implements Comparator<Issue>
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param alpha
|
* @param alpha
|
||||||
* @param bravo
|
* @param bravo
|
||||||
* @return
|
* @return
|
||||||
|
@ -83,8 +101,8 @@ public class IssueComparator implements Comparator<Issue>
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public static int compare(final Issue alpha, final Issue bravo, final Sorting sorting)
|
public static int compare(final Issue alpha, final Issue bravo, final Sorting sorting)
|
||||||
{
|
{
|
||||||
int result;
|
int result;
|
||||||
|
@ -112,7 +130,7 @@ public class IssueComparator implements Comparator<Issue>
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param alpha
|
* @param alpha
|
||||||
* @param bravo
|
* @param bravo
|
||||||
* @return
|
* @return
|
||||||
|
@ -151,7 +169,7 @@ public class IssueComparator implements Comparator<Issue>
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param source
|
* @param source
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
@ -176,7 +194,7 @@ public class IssueComparator implements Comparator<Issue>
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param source
|
* @param source
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
@ -201,7 +219,7 @@ public class IssueComparator implements Comparator<Issue>
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param source
|
* @param source
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,3 +1,21 @@
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2016 Christian Pierre MOMON <christian.momon@devinsy.fr>
|
||||||
|
*
|
||||||
|
* 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package fr.devinsy.gitlabapic.v3;
|
package fr.devinsy.gitlabapic.v3;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
@ -6,7 +24,7 @@ import java.util.Collections;
|
||||||
import fr.devinsy.gitlabapic.v3.IssueComparator.Sorting;
|
import fr.devinsy.gitlabapic.v3.IssueComparator.Sorting;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Christian Pierre MOMON (christian.momon@devinsy.fr)
|
* @author Christian Pierre MOMON (christian.momon@devinsy.fr)
|
||||||
*/
|
*/
|
||||||
public class Issues extends ArrayList<Issue>
|
public class Issues extends ArrayList<Issue>
|
||||||
|
@ -14,7 +32,7 @@ public class Issues extends ArrayList<Issue>
|
||||||
private static final long serialVersionUID = 5680167995492232717L;
|
private static final long serialVersionUID = 5680167995492232717L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public Issues()
|
public Issues()
|
||||||
{
|
{
|
||||||
|
@ -22,7 +40,7 @@ public class Issues extends ArrayList<Issue>
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param initialCapacity
|
* @param initialCapacity
|
||||||
*/
|
*/
|
||||||
public Issues(final int initialCapacity)
|
public Issues(final int initialCapacity)
|
||||||
|
@ -31,7 +49,7 @@ public class Issues extends ArrayList<Issue>
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public Issues sort()
|
public Issues sort()
|
||||||
|
|
|
@ -1,3 +1,21 @@
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2016 Christian Pierre MOMON <christian.momon@devinsy.fr>
|
||||||
|
*
|
||||||
|
* 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package fr.devinsy.gitlabapic.v3;
|
package fr.devinsy.gitlabapic.v3;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
|
|
|
@ -1,8 +1,27 @@
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2016 Christian Pierre MOMON <christian.momon@devinsy.fr>
|
||||||
|
*
|
||||||
|
* 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package fr.devinsy.gitlabapic.v3;
|
package fr.devinsy.gitlabapic.v3;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Christian Pierre MOMON (christian.momon@devinsy.fr)
|
* @author Christian Pierre MOMON (christian.momon@devinsy.fr)
|
||||||
*/
|
*/
|
||||||
public class Labels extends ArrayList<Label>
|
public class Labels extends ArrayList<Label>
|
||||||
|
@ -10,7 +29,7 @@ public class Labels extends ArrayList<Label>
|
||||||
private static final long serialVersionUID = -304537741944657014L;
|
private static final long serialVersionUID = -304537741944657014L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public Labels()
|
public Labels()
|
||||||
{
|
{
|
||||||
|
@ -18,7 +37,7 @@ public class Labels extends ArrayList<Label>
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param initialCapacity
|
* @param initialCapacity
|
||||||
*/
|
*/
|
||||||
public Labels(final int initialCapacity)
|
public Labels(final int initialCapacity)
|
||||||
|
|
|
@ -1,3 +1,21 @@
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2016 Christian Pierre MOMON <christian.momon@devinsy.fr>
|
||||||
|
*
|
||||||
|
* 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package fr.devinsy.gitlabapic.v3;
|
package fr.devinsy.gitlabapic.v3;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
|
|
|
@ -1,12 +1,27 @@
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2016 Christian Pierre MOMON <christian.momon@devinsy.fr>
|
||||||
|
*
|
||||||
|
* 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package fr.devinsy.gitlabapic.v3;
|
package fr.devinsy.gitlabapic.v3;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
|
||||||
|
|
||||||
import fr.devinsy.gitlabapic.v3.IssueComparator.Sorting;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Christian Pierre MOMON (christian.momon@devinsy.fr)
|
* @author Christian Pierre MOMON (christian.momon@devinsy.fr)
|
||||||
*/
|
*/
|
||||||
public class Notes extends ArrayList<Note>
|
public class Notes extends ArrayList<Note>
|
||||||
|
@ -14,7 +29,7 @@ public class Notes extends ArrayList<Note>
|
||||||
private static final long serialVersionUID = 5126712173655206727L;
|
private static final long serialVersionUID = 5126712173655206727L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public Notes()
|
public Notes()
|
||||||
{
|
{
|
||||||
|
@ -22,7 +37,7 @@ public class Notes extends ArrayList<Note>
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param initialCapacity
|
* @param initialCapacity
|
||||||
*/
|
*/
|
||||||
public Notes(final int initialCapacity)
|
public Notes(final int initialCapacity)
|
||||||
|
|
|
@ -1,10 +1,28 @@
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2016 Christian Pierre MOMON <christian.momon@devinsy.fr>
|
||||||
|
*
|
||||||
|
* 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package fr.devinsy.gitlabapic.v3;
|
package fr.devinsy.gitlabapic.v3;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Christian Pierre MOMON (christian.momon@devinsy.fr)
|
* @author Christian Pierre MOMON (christian.momon@devinsy.fr)
|
||||||
*/
|
*/
|
||||||
public class Project
|
public class Project
|
||||||
|
@ -218,7 +236,7 @@ public class Project
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public String toString()
|
public String toString()
|
||||||
|
|
|
@ -1,10 +1,28 @@
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2016 Christian Pierre MOMON <christian.momon@devinsy.fr>
|
||||||
|
*
|
||||||
|
* 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package fr.devinsy.gitlabapic.v3;
|
package fr.devinsy.gitlabapic.v3;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Christian Pierre MOMON (christian.momon@devinsy.fr)
|
* @author Christian Pierre MOMON (christian.momon@devinsy.fr)
|
||||||
*/
|
*/
|
||||||
public class ProjectRef
|
public class ProjectRef
|
||||||
|
@ -16,7 +34,7 @@ public class ProjectRef
|
||||||
private String privateToken;
|
private String privateToken;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param website
|
* @param website
|
||||||
* @param id
|
* @param id
|
||||||
* @param privateToken
|
* @param privateToken
|
||||||
|
@ -28,38 +46,38 @@ public class ProjectRef
|
||||||
this.privateToken = privateToken;
|
this.privateToken = privateToken;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getPrivateToken()
|
|
||||||
{
|
|
||||||
return this.privateToken;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getId()
|
public int getId()
|
||||||
{
|
{
|
||||||
return this.id;
|
return this.id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getPrivateToken()
|
||||||
|
{
|
||||||
|
return this.privateToken;
|
||||||
|
}
|
||||||
|
|
||||||
public String getWebsite()
|
public String getWebsite()
|
||||||
{
|
{
|
||||||
return this.website;
|
return this.website;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPrivateToken(final String privateToken)
|
|
||||||
{
|
|
||||||
this.privateToken = privateToken;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setId(final int id)
|
public void setId(final int id)
|
||||||
{
|
{
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setPrivateToken(final String privateToken)
|
||||||
|
{
|
||||||
|
this.privateToken = privateToken;
|
||||||
|
}
|
||||||
|
|
||||||
public void setWebsite(final String website)
|
public void setWebsite(final String website)
|
||||||
{
|
{
|
||||||
this.website = website;
|
this.website = website;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public String toString()
|
public String toString()
|
||||||
|
|
|
@ -1,9 +1,27 @@
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2016 Christian Pierre MOMON <christian.momon@devinsy.fr>
|
||||||
|
*
|
||||||
|
* 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package fr.devinsy.gitlabapic.v3;
|
package fr.devinsy.gitlabapic.v3;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Christian Pierre MOMON (christian.momon@devinsy.fr)
|
* @author Christian Pierre MOMON (christian.momon@devinsy.fr)
|
||||||
*/
|
*/
|
||||||
public class Projects extends ArrayList<Project>
|
public class Projects extends ArrayList<Project>
|
||||||
|
@ -11,7 +29,7 @@ public class Projects extends ArrayList<Project>
|
||||||
private static final long serialVersionUID = -344012762727758273L;
|
private static final long serialVersionUID = -344012762727758273L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public Projects()
|
public Projects()
|
||||||
{
|
{
|
||||||
|
@ -19,7 +37,7 @@ public class Projects extends ArrayList<Project>
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param initialCapacity
|
* @param initialCapacity
|
||||||
*/
|
*/
|
||||||
public Projects(final int initialCapacity)
|
public Projects(final int initialCapacity)
|
||||||
|
|
Loading…
Reference in a new issue