Package com.atlassian.bamboo.deployments
Class OperationsImpl.Builder
- java.lang.Object
-
- com.atlassian.bamboo.deployments.OperationsImpl.Builder
-
- Enclosing class:
- OperationsImpl
public static class OperationsImpl.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationsImpl.Builder
allowedToCreateVersion(boolean allowedToCreateVersion)
OperationsImpl.Builder
allowedToExecute(boolean allowedToExecute)
OperationsImpl.Builder
allowedToSetVersionStatus(boolean allowedToSetVersionStatus)
Operations
build()
OperationsImpl.Builder
canDelete(boolean canDelete)
OperationsImpl.Builder
canEdit(boolean canEdit)
OperationsImpl.Builder
canExecute(boolean canExecute, String cantExecuteReason)
This method can be executed multiple times.OperationsImpl.Builder
canView(boolean canView)
OperationsImpl.Builder
canViewConfiguration(boolean canViewConfiguration)
-
-
-
Method Detail
-
canView
public OperationsImpl.Builder canView(boolean canView)
-
canViewConfiguration
public OperationsImpl.Builder canViewConfiguration(boolean canViewConfiguration)
-
canEdit
public OperationsImpl.Builder canEdit(boolean canEdit)
-
canDelete
public OperationsImpl.Builder canDelete(boolean canDelete)
-
allowedToExecute
public OperationsImpl.Builder allowedToExecute(boolean allowedToExecute)
-
canExecute
public OperationsImpl.Builder canExecute(boolean canExecute, String cantExecuteReason)
This method can be executed multiple times. Final value will be result of logical AND over all calls. Reason of the first call with false value will be stored.
-
allowedToCreateVersion
public OperationsImpl.Builder allowedToCreateVersion(boolean allowedToCreateVersion)
-
allowedToSetVersionStatus
public OperationsImpl.Builder allowedToSetVersionStatus(boolean allowedToSetVersionStatus)
-
build
public Operations build()
-
-