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 booleanequals(Object o)Map<String,SpaceApplicationRights>getAllRights()StringgetAppId()Set<String>getAuthorizedContexts()SpaceApplicationRightsgetContextRights(String contextIdentifier)SpaceApplicationRightsgetGlobalRights()StringgetOwnerAppId()Set<String>getProjectKeys()inthashCode()booleanisClientCredentialFlowEnabled()booleanisCodeFlowEnabled()static SpaceApplicationInformationnone()Space application information for the case where we couldn't retrieve any actual info from Space.StringtoString()
-
-
-
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()
-
-