Renamed project and package. Added headers.

This commit is contained in:
Christian P. MOMON 2016-07-23 01:06:30 +02:00
parent 2f41a68973
commit c3c10c379b
16 changed files with 326 additions and 127 deletions

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>gitlabapi</name>
<name>Gilapic</name>
<comment></comment>
<projects>
</projects>

View file

@ -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…

View 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);
}
}

View file

@ -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.IOException;

View file

@ -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);
}
}

View file

@ -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;
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;
/**

View file

@ -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;
import org.apache.commons.lang3.StringUtils;

View file

@ -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;
import java.text.Collator;
@ -30,8 +48,8 @@ public class IssueComparator implements Comparator<Issue>
}
/**
*
*/
*
*/
@Override
public int compare(final Issue alpha, final Issue bravo)
{
@ -83,8 +101,8 @@ public class IssueComparator implements Comparator<Issue>
}
/**
*
*/
*
*/
public static int compare(final Issue alpha, final Issue bravo, final Sorting sorting)
{
int result;

View file

@ -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;
import java.util.ArrayList;

View file

@ -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;
import org.slf4j.Logger;

View file

@ -1,4 +1,23 @@
/*
* 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;
import java.util.ArrayList;
/**

View file

@ -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;
import org.slf4j.Logger;

View file

@ -1,9 +1,24 @@
/*
* 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;
import java.util.ArrayList;
import java.util.Collections;
import fr.devinsy.gitlabapic.v3.IssueComparator.Sorting;
/**
*

View file

@ -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;
import org.slf4j.Logger;

View file

@ -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;
import org.slf4j.Logger;
@ -28,31 +46,31 @@ public class ProjectRef
this.privateToken = privateToken;
}
public String getPrivateToken()
{
return this.privateToken;
}
public int getId()
{
return this.id;
}
public String getPrivateToken()
{
return this.privateToken;
}
public String getWebsite()
{
return this.website;
}
public void setPrivateToken(final String privateToken)
{
this.privateToken = privateToken;
}
public void setId(final int id)
{
this.id = id;
}
public void setPrivateToken(final String privateToken)
{
this.privateToken = privateToken;
}
public void setWebsite(final String website)
{
this.website = website;

View file

@ -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;
import java.util.ArrayList;