All Downloads are FREE. Search and download functionalities are using the official Maven repository.

liquibase.hub.HubService Maven / Gradle / Ivy

There is a newer version: 4.29.2
Show newest version
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 getProjects() throws LiquibaseHubException;

    Project createProject(Project project) throws LiquibaseException;

    void setRanChangeSets(Connection connectionId, List ranChangeSets) throws LiquibaseHubException;

    HubChangeLog deactivateChangeLog(HubChangeLog hubChangeLog) throws LiquibaseHubException;

    Connection getConnection(Connection exampleConnection, boolean createIfNotExists) throws LiquibaseHubException;

    List 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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy