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 StringgetCantExecuteReason()booleanisAllowedToCreateVersion()booleanisAllowedToExecute()booleanisAllowedToSetVersionStatus()booleanisCanDelete()booleanisCanEdit()booleanisCanExecute()booleanisCanView()booleanisCanViewConfiguration()
-
-
-
Constructor Detail
-
RestOperations
public RestOperations(@NotNull @NotNull Operations operations)
-
-
Method Detail
-
isCanView
public boolean isCanView()
- Specified by:
isCanViewin interfaceOperations
-
isCanViewConfiguration
public boolean isCanViewConfiguration()
- Specified by:
isCanViewConfigurationin interfaceOperations
-
isCanEdit
public boolean isCanEdit()
- Specified by:
isCanEditin interfaceOperations
-
isCanDelete
public boolean isCanDelete()
- Specified by:
isCanDeletein interfaceOperations
-
isAllowedToExecute
public boolean isAllowedToExecute()
- Specified by:
isAllowedToExecutein interfaceOperations- Returns:
- true if user is allowed to execute (effective permissions)
-
isCanExecute
public boolean isCanExecute()
- Specified by:
isCanExecutein interfaceOperations- Returns:
- true if user can actually execute (effective business logic)
-
isAllowedToCreateVersion
public boolean isAllowedToCreateVersion()
- Specified by:
isAllowedToCreateVersionin interfaceOperations
-
isAllowedToSetVersionStatus
public boolean isAllowedToSetVersionStatus()
- Specified by:
isAllowedToSetVersionStatusin interfaceOperations
-
getCantExecuteReason
@Nullable public @Nullable String getCantExecuteReason()
- Specified by:
getCantExecuteReasonin interfaceOperations
-
-