| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- package com.nju.edu.gitlab;
- import com.nju.edu.gitlab.dto.commit.CommitActionForm;
- import com.nju.edu.gitlab.dto.member.AccessLevelForm;
- import com.nju.edu.gitlab.dto.project.VisibilityForm;
- import com.nju.edu.gitlab.vo.*;
- import com.nju.edu.gitlab.vo.commit.CommitVO;
- import org.gitlab4j.api.GitLabApiException;
- import org.gitlab4j.api.models.User;
- import java.util.List;
- import java.util.Set;
- public interface SeecoderGitlabApi{
- public GitlabUserVO createGitlabUser(int userId,String username, String password, String email) throws SeecoderGitlabException;
- public boolean changePassword(int userId,String password) throws SeecoderGitlabException;
- public boolean changeUserName(int userId, String password, String username) throws SeecoderGitlabException;
- public boolean deleteUser(int userId) throws SeecoderGitlabException;
- public String getUserEmail(int userId) throws SeecoderGitlabException;
- public User getUserByUserName(String userName) throws SeecoderGitlabException;
- public GitlabUserVO getUserByUserNameNew(String userName) throws SeecoderGitlabException;
- public GitlabGroup createGroup(String groupName) throws SeecoderGitlabException;
- public boolean addMember(int groupId, int userId, AccessLevelForm accessLevel) throws SeecoderGitlabException;
- public ProjectVO createProject(String projectName,VisibilityForm visibility) throws SeecoderGitlabException;
- public ProjectVO createPrivateProject(String projectName,VisibilityForm visibility, Integer userId) throws SeecoderGitlabException;
- public boolean deleteProject(int projectId) throws SeecoderGitlabException;
- public Integer forkProject(int projectId, int userId) throws SeecoderGitlabException;
- public Integer forkGroupProject(int projectId,int groupId) throws SeecoderGitlabException;
- public Set<DiffVO> compare(int projectId, String fromBash, String toBash) throws SeecoderGitlabException;
- public boolean addWebHook(int projectId,String url,boolean doPushEvents,boolean doIssueEvents,boolean doMergeRequestsEvents) throws SeecoderGitlabException;
- public boolean archiveProject(int projectId) throws SeecoderGitlabException;
- public String getProjectFile(int projectId, String branch,String path) throws SeecoderGitlabException;
- public String getProjectRawFile(int projectId,String commitOrBranchName,String path) throws SeecoderGitlabException;
- public CommitVO createCommit(int projectId, String branch,String commitMessage,String email,String username,List<CommitActionForm> actions) throws SeecoderGitlabException;
- public List<CommitVO> getAllCommitMessage(int projectId, String commitHash) throws SeecoderGitlabException;
- public List<CommitVO> getCommitsByBranch(int projectId, String branchName) throws SeecoderGitlabException;
- public CommitVO getCommitByHash(int projectId, String hash) throws SeecoderGitlabException;
- public List<BranchVO> getProjectBranches(int projectId) throws SeecoderGitlabException;
- public boolean addAuthorization(int projectId, int userId, AccessLevelForm accessLevel) throws GitLabApiException, SeecoderGitlabException;
- public List<ProjectVO> getAllProjectsByUserId(int userId) throws SeecoderGitlabException;
- public List<Integer> getJoinedUserByProject(int projectId) throws SeecoderGitlabException;
- public List<String> getFilePaths(int projectId, String basePath, String branch) throws SeecoderGitlabException;
- }
|