Class ServerCloudSecurityImpl
- java.lang.Object
-
- jetbrains.buildServer.clouds.server.impl.auth.ServerCloudSecurityImpl
-
- All Implemented Interfaces:
CloudSecurity
public class ServerCloudSecurityImpl extends Object implements CloudSecurity
- Author:
- Eugene Petrenko Created: 11.11.2009 22:34:34
-
-
Constructor Summary
Constructors Constructor Description ServerCloudSecurityImpl(SecurityContextEx securityContext, CloudManagerBase cloudManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
canStartInstancesInProjectCloud(String projectId)
boolean
canViewCloudAgentsInAnyProject()
boolean
canViewProjectCloudAgents(String projectId)
void
checkReadAccess(String projectId)
void
checkStartStopInstanceAccess(String profileId)
void
checkStartStopInstanceAccess(String profileId, String imageId)
Deprecated.void
checkStartStopInstanceAccess(String projectId, String profileId, String imageId)
void
checkStartStopInstanceAccessInProject(String projectId)
void
checkWriteAccess(String projectId)
-
-
-
Constructor Detail
-
ServerCloudSecurityImpl
public ServerCloudSecurityImpl(@NotNull SecurityContextEx securityContext, @NotNull CloudManagerBase cloudManager)
-
-
Method Detail
-
checkStartStopInstanceAccessInProject
public void checkStartStopInstanceAccessInProject(@NotNull String projectId)
- Specified by:
checkStartStopInstanceAccessInProject
in interfaceCloudSecurity
-
checkStartStopInstanceAccess
public void checkStartStopInstanceAccess(@NotNull String projectId, @NotNull String profileId, @NotNull String imageId)
- Specified by:
checkStartStopInstanceAccess
in interfaceCloudSecurity
-
checkStartStopInstanceAccess
public void checkStartStopInstanceAccess(@NotNull String profileId, @NotNull String imageId)
Deprecated.- Specified by:
checkStartStopInstanceAccess
in interfaceCloudSecurity
- Parameters:
profileId
-imageId
-
-
checkStartStopInstanceAccess
public void checkStartStopInstanceAccess(@NotNull String profileId)
- Specified by:
checkStartStopInstanceAccess
in interfaceCloudSecurity
-
checkReadAccess
public void checkReadAccess(@NotNull String projectId)
- Specified by:
checkReadAccess
in interfaceCloudSecurity
-
checkWriteAccess
public void checkWriteAccess(@NotNull String projectId)
- Specified by:
checkWriteAccess
in interfaceCloudSecurity
-
canViewProjectCloudAgents
public boolean canViewProjectCloudAgents(@NotNull String projectId)
- Specified by:
canViewProjectCloudAgents
in interfaceCloudSecurity
-
canViewCloudAgentsInAnyProject
public boolean canViewCloudAgentsInAnyProject()
- Specified by:
canViewCloudAgentsInAnyProject
in interfaceCloudSecurity
- Returns:
- true if there is at least one project where current user can see cloud images/instances
-
canStartInstancesInProjectCloud
public boolean canStartInstancesInProjectCloud(@NotNull String projectId)
- Specified by:
canStartInstancesInProjectCloud
in interfaceCloudSecurity
-
-