-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
HubService.java
68 lines (41 loc) · 2.73 KB
/
HubService.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
package liquibase.hub;
import liquibase.changelog.RanChangeSet;
import liquibase.exception.LiquibaseException;
import liquibase.hub.model.*;
import liquibase.plugin.Plugin;
import liquibase.servicelocator.PrioritizedService;
import java.util.List;
import java.util.UUID;
public interface HubService extends Plugin, PrioritizedService {
boolean isOnline();
HubUser getMe() throws LiquibaseHubException;
Organization getOrganization() throws LiquibaseHubException;
Project getProject(UUID projectId) throws LiquibaseHubException;
Project findProjectByConnectionIdOrJdbcUrl(UUID connectionId, String jdbcUrl) throws LiquibaseHubException;
List<Project> getProjects() throws LiquibaseHubException;
Project createProject(Project project) throws LiquibaseException;
void setRanChangeSets(Connection connectionId, List<RanChangeSet> ranChangeSets) throws LiquibaseHubException;
HubChangeLog deactivateChangeLog(HubChangeLog hubChangeLog) throws LiquibaseHubException;
Connection getConnection(Connection exampleConnection, boolean createIfNotExists) throws LiquibaseHubException;
List<Connection> getConnections(Connection exampleConnection) throws LiquibaseHubException;
HubRegisterResponse register(String email) throws LiquibaseException;
Connection createConnection(Connection connection) throws LiquibaseHubException;
HubChangeLog createChangeLog(HubChangeLog hubChangeLog) throws LiquibaseException;
HubChangeLog getHubChangeLog(UUID changeLogId) throws LiquibaseHubException;
HubChangeLog getHubChangeLog(UUID changeLogId, String includeStatus) throws LiquibaseHubException;
Operation createOperation(String operationType, String operationCommand, HubChangeLog changeLog, Connection connection) throws LiquibaseHubException;
Operation createOperationInOrganization(String operationType, String operationCommand, UUID organizationId) throws LiquibaseHubException;
OperationEvent sendOperationEvent(Operation operation, OperationEvent operationEvent) throws LiquibaseException;
/**
* Request to shorten a URL to create a more user-friendly link to the user
*
* @param url The link to shorten
* @return New url
* @throws LiquibaseHubException If shortening fails
*/
String shortenLink(String url) throws LiquibaseException;
OperationEvent sendOperationEvent(Operation operation, OperationEvent operationEvent, UUID organizationId) throws LiquibaseException;
void sendOperationChangeEvent(OperationChangeEvent operationChangeEvent) throws LiquibaseException;
void sendOperationChanges(OperationChange operationChange) throws LiquibaseHubException;
CoreInitOnboardingResponse validateOnboardingToken(String token) throws LiquibaseHubException;
}