Class SpaceService
- java.lang.Object
-
- jetbrains.buildServer.serverSide.oauth.space.SpaceService
-
public class SpaceService extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SpaceService.ConnectionType
static class
SpaceService.PendingConnectionType
-
Constructor Summary
Constructors Constructor Description SpaceService(MultiNodeTasks multiNodeTasks, SpaceClientFactory spaceClientFactory, OAuthConnectionsManager oAuthConnectionsManager, ProjectManager projectManager, SpaceOAuthProvider spaceOAuthProvider, OAuthTokensStorage oAuthTokensStorage, WebLinks webLinks, SpaceApplicationInformationManager applicationInformationManager, ExtensionHolder extensionHolder, IdGeneratorRegistry idGeneratorRegistry, UserModel userModel, SpaceEpochHolder epochHolder, SecurityContextEx securityContext, OAuthRedirectSettingsStorage redirectSettingsStorage)
-
Method Summary
-
-
-
Constructor Detail
-
SpaceService
public SpaceService(@NotNull MultiNodeTasks multiNodeTasks, @NotNull SpaceClientFactory spaceClientFactory, @NotNull OAuthConnectionsManager oAuthConnectionsManager, @NotNull ProjectManager projectManager, @NotNull SpaceOAuthProvider spaceOAuthProvider, @NotNull OAuthTokensStorage oAuthTokensStorage, @NotNull WebLinks webLinks, @NotNull SpaceApplicationInformationManager applicationInformationManager, @NotNull ExtensionHolder extensionHolder, @NotNull IdGeneratorRegistry idGeneratorRegistry, @NotNull UserModel userModel, @NotNull SpaceEpochHolder epochHolder, @NotNull SecurityContextEx securityContext, @NotNull OAuthRedirectSettingsStorage redirectSettingsStorage)
-
-
Method Detail
-
prepareCreateApplication
@NotNull public String prepareCreateApplication(@NotNull String createSpaceApplicationId, @NotNull String projectId, long userId, @NotNull Map<String,String> creationParams)
-
getApplication
@NotNull public ApplicationResult getApplication(@NotNull String createSpaceApplicationId)
-
receiveInitPayload
@NotNull public SpacePayloadResponse receiveInitPayload(@NotNull SpacePayloadRequest payloadRequest)
-
createProjectLevelApplication
@NotNull public ApplicationResult createProjectLevelApplication(@NotNull SProject project, @NotNull String parentConnectionId, @NotNull String spaceProjectKey, @Nullable String connectionDisplayName, boolean temporaryConnection, @NotNull SUser user)
-
findMatchingProjectConnections
@NotNull public Map<String,OAuthConnectionDescriptor> findMatchingProjectConnections(@NotNull SProject project, @NotNull OAuthConnectionDescriptor organizationConnection, @NotNull List<SpaceProject> spaceProjects, @NotNull SUser user)
Tries to find all existing project connections in the current context that should belong to the given organization connection. A list of visible Space projects is taken into account.- Parameters:
project
- where in the project hierarchy to start lookingorganizationConnection
- what instance the project connections should belong tospaceProjects
- list of Space project DTOs representing all currently visible projects- Returns:
- Map of Space project key -> OAuth connection
-
getPendingConnectionType
@NotNull public SpaceService.PendingConnectionType getPendingConnectionType(@NotNull OAuthConnectionDescriptor connection)
-
determineConnectionType
@NotNull public SpaceService.ConnectionType determineConnectionType(@NotNull OAuthConnectionDescriptor connection)
-
getApplicationAuthorizationsUrl
@NotNull public String getApplicationAuthorizationsUrl(@NotNull OAuthConnectionDescriptor connection)
-
-