Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Copyright 2020 Goldman Sachs
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package org.finos.legend.sdlc.server.domain.api.project;
import org.finos.legend.sdlc.domain.model.project.configuration.ArtifactGeneration;
import org.finos.legend.sdlc.domain.model.project.configuration.ArtifactTypeGenerationConfiguration;
import org.finos.legend.sdlc.domain.model.project.configuration.ProjectConfiguration;
import org.finos.legend.sdlc.domain.model.project.configuration.ProjectDependency;
import org.finos.legend.sdlc.domain.model.project.configuration.ProjectStructureVersion;
import org.finos.legend.sdlc.domain.model.revision.Revision;
import org.finos.legend.sdlc.domain.model.version.VersionId;
import org.finos.legend.sdlc.server.error.LegendSDLCServerException;
import javax.ws.rs.core.Response;
import java.util.List;
public interface ProjectConfigurationApi
{
ProjectConfiguration getProjectProjectConfiguration(String projectId);
ProjectConfiguration getProjectRevisionProjectConfiguration(String projectId, String revisionId); // support revision ID alias
ProjectConfiguration getWorkspaceProjectConfiguration(String projectId, String workspaceId);
ProjectConfiguration getBackupWorkspaceProjectConfiguration(String projectId, String workspaceId);
ProjectConfiguration getWorkspaceWithConflictResolutionProjectConfiguration(String projectId, String workspaceId);
ProjectConfiguration getWorkspaceRevisionProjectConfiguration(String projectId, String workspaceId, String revisionId); // support revision ID alias
ProjectConfiguration getBackupWorkspaceRevisionProjectConfiguration(String projectId, String workspaceId, String revisionId); // support revision ID alias
ProjectConfiguration getWorkspaceWithConflictResolutionRevisionProjectConfiguration(String projectId, String workspaceId, String revisionId); // support revision ID alias
default ProjectConfiguration getVersionProjectConfiguration(String projectId, String versionIdString)
{
VersionId versionId;
try
{
versionId = VersionId.parseVersionId(versionIdString);
}
catch (IllegalArgumentException e)
{
throw new LegendSDLCServerException(e.getMessage(), Response.Status.BAD_REQUEST, e);
}
return getVersionProjectConfiguration(projectId, versionId);
}
ProjectConfiguration getVersionProjectConfiguration(String projectId, VersionId versionId);
ProjectConfiguration getReviewFromProjectConfiguration(String projectId, String reviewId);
ProjectConfiguration getReviewToProjectConfiguration(String projectId, String reviewId);
Revision updateProjectConfiguration(String projectId, String workspaceId, String message, Integer projectStructureVersion, Integer projectStructureExtensionVersion, String groupId, String artifactId, Iterable projectDependenciesToAdd, Iterable projectDependenciesToRemove, List artifactGenerationsToAdd, List artifactGenerationsToRemove);
Revision updateProjectConfigurationForWorkspaceWithConflictResolution(String projectId, String workspaceId, String message, Integer projectStructureVersion, Integer projectStructureExtensionVersion, String groupId, String artifactId, Iterable projectDependenciesToAdd, Iterable projectDependenciesToRemove, List artifactGenerationsToAdd, List artifactGenerationsToRemove);
List getProjectAvailableArtifactGenerations(String projectId);
List getRevisionAvailableArtifactGenerations(String projectId, String revisionId);
List getWorkspaceRevisionAvailableArtifactGenerations(String projectId, String workspaceId, String revisionId);
List getWorkspaceAvailableArtifactGenerations(String projectId, String workspaceId);
List getVersionAvailableArtifactGenerations(String projectId, String versionId);
ProjectStructureVersion getLatestProjectStructureVersion();
List getLatestAvailableArtifactGenerations();
}