Class SpaceApplicationInformation
- java.lang.Object
-
- jetbrains.buildServer.serverSide.oauth.space.application.SpaceApplicationInformation
-
public class SpaceApplicationInformation extends Object
Value-Object encapsulating what we know about a Space application.
-
-
Constructor Summary
Constructors Constructor Description SpaceApplicationInformation(boolean codeFlowEnabled, boolean clientCredentialFlowEnabled, Map<String,SpaceApplicationRights> rights, String appId, String ownerAppId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Map<String,SpaceApplicationRights>
getAllRights()
String
getAppId()
Set<String>
getAuthorizedContexts()
SpaceApplicationRights
getContextRights(String contextIdentifier)
SpaceApplicationRights
getGlobalRights()
String
getOwnerAppId()
Set<String>
getProjectKeys()
int
hashCode()
boolean
isClientCredentialFlowEnabled()
boolean
isCodeFlowEnabled()
static SpaceApplicationInformation
none()
Space application information for the case where we couldn't retrieve any actual info from Space.String
toString()
-
-
-
Constructor Detail
-
SpaceApplicationInformation
public SpaceApplicationInformation(boolean codeFlowEnabled, boolean clientCredentialFlowEnabled, @NotNull Map<String,SpaceApplicationRights> rights, @Nullable String appId, @Nullable String ownerAppId)
-
-
Method Detail
-
none
public static SpaceApplicationInformation none()
Space application information for the case where we couldn't retrieve any actual info from Space.- Returns:
- a null-object
-
isCodeFlowEnabled
public boolean isCodeFlowEnabled()
-
isClientCredentialFlowEnabled
public boolean isClientCredentialFlowEnabled()
-
getAppId
@Nullable public String getAppId()
-
getOwnerAppId
@Nullable public String getOwnerAppId()
-
getGlobalRights
@NotNull public SpaceApplicationRights getGlobalRights()
-
getContextRights
@NotNull public SpaceApplicationRights getContextRights(@NotNull String contextIdentifier)
-
getAllRights
@NotNull public Map<String,SpaceApplicationRights> getAllRights()
-
-