Class RestOperations
- java.lang.Object
-
- com.atlassian.bamboo.rest.model.deployments.RestOperations
-
- All Implemented Interfaces:
Operations
public class RestOperations extends Object implements Operations
-
-
Constructor Summary
Constructors Constructor Description RestOperations(@NotNull Operations operations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable String
getCantExecuteReason()
boolean
isAllowedToCreateVersion()
boolean
isAllowedToExecute()
boolean
isAllowedToSetVersionStatus()
boolean
isCanDelete()
boolean
isCanEdit()
boolean
isCanExecute()
boolean
isCanView()
boolean
isCanViewConfiguration()
-
-
-
Constructor Detail
-
RestOperations
public RestOperations(@NotNull @NotNull Operations operations)
-
-
Method Detail
-
isCanView
public boolean isCanView()
- Specified by:
isCanView
in interfaceOperations
-
isCanViewConfiguration
public boolean isCanViewConfiguration()
- Specified by:
isCanViewConfiguration
in interfaceOperations
-
isCanEdit
public boolean isCanEdit()
- Specified by:
isCanEdit
in interfaceOperations
-
isCanDelete
public boolean isCanDelete()
- Specified by:
isCanDelete
in interfaceOperations
-
isAllowedToExecute
public boolean isAllowedToExecute()
- Specified by:
isAllowedToExecute
in interfaceOperations
- Returns:
- true if user is allowed to execute (effective permissions)
-
isCanExecute
public boolean isCanExecute()
- Specified by:
isCanExecute
in interfaceOperations
- Returns:
- true if user can actually execute (effective business logic)
-
isAllowedToCreateVersion
public boolean isAllowedToCreateVersion()
- Specified by:
isAllowedToCreateVersion
in interfaceOperations
-
isAllowedToSetVersionStatus
public boolean isAllowedToSetVersionStatus()
- Specified by:
isAllowedToSetVersionStatus
in interfaceOperations
-
getCantExecuteReason
@Nullable public @Nullable String getCantExecuteReason()
- Specified by:
getCantExecuteReason
in interfaceOperations
-
-