implement DEV workspace and project automation authority

This commit is contained in:
2026-09-29 07:09:37 +01:00
parent 0ddf3ef70d
commit e3c3b2cbb7
62 changed files with 2180 additions and 354 deletions
@@ -101,18 +101,18 @@ public class StudioApplicationConfiguration {
}
@Bean
AssetCatalog assetCatalog(PackerWorkspaceService packer) {
return new PackerAssetCatalog(packer);
AssetCatalog assetCatalog(PackerWorkspaceService packer, p.studio.api.automation.ProjectAccess access) {
return new PackerAssetCatalog(packer, access);
}
@Bean
AssetCommands assetCommands(PackerWorkspaceService packer) {
return new PackerAssetCommands(packer);
AssetCommands assetCommands(PackerWorkspaceService packer, p.studio.api.automation.ProjectAccess access) {
return new PackerAssetCommands(packer, access);
}
@Bean
AssetPacking assetPacking(PackerWorkspaceService packer, OperationExecutor operations) {
return new PackerAssetPacking(packer, operations);
AssetPacking assetPacking(PackerWorkspaceService packer, OperationExecutor operations, p.studio.api.automation.ProjectAccess access) {
return new PackerAssetPacking(packer, operations, access);
}
@Bean
@@ -126,8 +126,8 @@ public class StudioApplicationConfiguration {
}
@Bean
AssetWorkspaceStorage assetWorkspaceStorage() {
return new FileSystemAssetWorkspaceStorage();
AssetWorkspaceStorage assetWorkspaceStorage(p.studio.api.automation.ProjectAccess access) {
return new FileSystemAssetWorkspaceStorage(access);
}
@Bean
@@ -146,18 +146,18 @@ public class StudioApplicationConfiguration {
}
@Bean
AssetMetadataService assetMetadataService(ObjectMapper mapper) {
return new AssetStudioMetadataService(mapper);
AssetMetadataService assetMetadataService(ObjectMapper mapper, p.studio.api.automation.ProjectAccess access) {
return new AssetStudioMetadataService(mapper, access);
}
@Bean
SceneBankWorkflow sceneBankWorkflow(AssetCatalog assetCatalog, ObjectMapper mapper) {
return new SceneBankWorkflowService(assetCatalog, mapper);
SceneBankWorkflow sceneBankWorkflow(AssetCatalog assetCatalog, ObjectMapper mapper, p.studio.api.automation.ProjectAccess access) {
return new SceneBankWorkflowService(assetCatalog, mapper, access);
}
@Bean
TiledAssetService tiledAssetService(AssetMetadataService metadataService) {
return new TiledAssetGenerationService(metadataService);
TiledAssetService tiledAssetService(AssetMetadataService metadataService, p.studio.api.automation.ProjectAccess access) {
return new TiledAssetGenerationService(metadataService, access);
}
@Bean
@@ -177,8 +177,8 @@ public class StudioApplicationConfiguration {
@Bean
Shipper shipper(CompilerBuildGateway compiler, PackerWorkspaceService packer, ObjectMapper mapper,
OperationExecutor operations) {
return new StudioShipperService(compiler, packer, mapper, operations);
OperationExecutor operations, p.studio.api.automation.ProjectAccess access) {
return new StudioShipperService(compiler, packer, mapper, operations, access);
}
@Bean(destroyMethod = "shutdown")
@@ -198,8 +198,8 @@ public class StudioApplicationConfiguration {
@Bean
ExecutionControllerFactory executionControllerFactory(Shipper shipper, RuntimeGateway runtime,
OperationExecutor operations) {
return new DefaultExecutionControllerFactory(shipper, runtime, operations);
OperationExecutor operations, p.studio.api.automation.ProjectAccess access) {
return new DefaultExecutionControllerFactory(shipper, runtime, operations, access);
}
@Bean
@@ -222,10 +222,16 @@ public class StudioApplicationConfiguration {
return new LspLifecycleAdapter(lifecycle);
}
@Bean
p.studio.core.project.ProjectAccessRegistry projectAccessRegistry() {
return new p.studio.core.project.ProjectAccessRegistry();
}
@Bean
ProjectSessionFactory projectSessionFactory(ProjectLocalStudioStateStore stateStore,
ProjectLocalStudioSetupStore setupStore, LspLifecyclePort lsp) {
return new DefaultProjectSessionFactory(stateStore, setupStore, lsp);
ProjectLocalStudioSetupStore setupStore, LspLifecyclePort lsp,
p.studio.core.project.ProjectAccessRegistry access, OperationExecutor operations) {
return new DefaultProjectSessionFactory(stateStore, setupStore, lsp, access, operations);
}
@Bean