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