public class StandardHubService extends Object implements HubService
Modifier and Type | Class and Description |
---|---|
protected static class |
StandardHubService.HubLinkRequest |
PRIORITY_DEFAULT, PRIORITY_NOT_APPLICABLE, PRIORITY_SPECIALIZED
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT
Constructor and Description |
---|
StandardHubService() |
public liquibase.hub.core.HttpClient createHttpClient()
public int getPriority()
getPriority
in interface PrioritizedService
public boolean isOnline()
isOnline
in interface HubService
public boolean isHubAvailable()
public String getApiKey()
public HubUser getMe() throws LiquibaseHubException
getMe
in interface HubService
LiquibaseHubException
public Organization getOrganization() throws LiquibaseHubException
getOrganization
in interface HubService
LiquibaseHubException
public Project getProject(UUID projectId) throws LiquibaseHubException
getProject
in interface HubService
LiquibaseHubException
public Project findProjectByConnectionIdOrJdbcUrl(UUID connectionId, String jdbcUrl) throws LiquibaseHubException
findProjectByConnectionIdOrJdbcUrl
in interface HubService
LiquibaseHubException
public List<Project> getProjects() throws LiquibaseHubException
getProjects
in interface HubService
LiquibaseHubException
public HubRegisterResponse register(String email) throws LiquibaseException
register
in interface HubService
LiquibaseException
public Project createProject(Project project) throws LiquibaseException
createProject
in interface HubService
LiquibaseException
public HubChangeLog createChangeLog(HubChangeLog hubChangeLog) throws LiquibaseException
createChangeLog
in interface HubService
LiquibaseException
public HubChangeLog deactivateChangeLog(HubChangeLog hubChangeLog) throws LiquibaseHubException
deactivateChangeLog
in interface HubService
LiquibaseHubException
public void setRanChangeSets(Connection connection, List<RanChangeSet> ranChangeSets) throws LiquibaseHubException
setRanChangeSets
in interface HubService
LiquibaseHubException
public Connection getConnection(Connection exampleConnection, boolean createIfNotExists) throws LiquibaseHubException
getConnection
in interface HubService
LiquibaseHubException
public List<Connection> getConnections(Connection exampleConnection) throws LiquibaseHubException
getConnections
in interface HubService
LiquibaseHubException
protected Date parseDate(String stringDate) throws ParseException
ParseException
public Connection createConnection(Connection connection) throws LiquibaseHubException
createConnection
in interface HubService
LiquibaseHubException
public String shortenLink(String url) throws LiquibaseException
HubService
shortenLink
in interface HubService
url
- The link to shortenLiquibaseHubException
- If shortening failsLiquibaseException
public HubChangeLog getHubChangeLog(UUID changeLogId) throws LiquibaseHubException
getHubChangeLog
in interface HubService
changeLogId
- Changelog ID for queryLiquibaseHubException
public HubChangeLog getHubChangeLog(UUID changeLogId, String includeStatus)
getHubChangeLog
in interface HubService
changeLogId
- Changelog ID for queryincludeStatus
- Allowable status for returned changelogLiquibaseHubException
public Operation createOperation(String operationType, String operationCommand, HubChangeLog changeLog, Connection connection) throws LiquibaseHubException
createOperation
in interface HubService
LiquibaseHubException
public Operation createOperationInOrganization(String operationType, String operationCommand, UUID organizationId) throws LiquibaseHubException
createOperationInOrganization
in interface HubService
LiquibaseHubException
protected Map<String,String> getCleanOperationParameters(Map<String,String> originalParams)
public OperationEvent sendOperationEvent(Operation operation, OperationEvent operationEvent) throws LiquibaseException
sendOperationEvent
in interface HubService
LiquibaseException
public OperationEvent sendOperationEvent(Operation operation, OperationEvent operationEvent, UUID organizationId) throws LiquibaseException
sendOperationEvent
in interface HubService
LiquibaseException
public void sendOperationChangeEvent(OperationChangeEvent operationChangeEvent) throws LiquibaseException
sendOperationChangeEvent
in interface HubService
LiquibaseException
public void sendOperationChanges(OperationChange operationChange) throws LiquibaseHubException
sendOperationChanges
in interface HubService
LiquibaseHubException
public CoreInitOnboardingResponse validateOnboardingToken(String token) throws LiquibaseHubException
validateOnboardingToken
in interface HubService
LiquibaseHubException
Copyright © 2023 Liquibase.org. All rights reserved.