Package jetbrains.buildServer.serverSide
Class BranchGroupsUserSelectedProvider
- java.lang.Object
-
- jetbrains.buildServer.serverSide.BranchGroupsUserSelectedProvider
-
- All Implemented Interfaces:
BranchGroupsProvider
,ServerExtension
,TeamCityExtension
,PositionAware
,PositionConstraintAware
public class BranchGroupsUserSelectedProvider extends Object implements BranchGroupsProvider
- Author:
- Yegor.Yarko Date: 25/06/2018
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.serverSide.BranchGroupsProvider
BranchGroupsProvider.BranchGroup, BranchGroupsProvider.Context
-
-
Field Summary
Fields Modifier and Type Field Description protected static List<BranchGroupsProvider.BranchGroup>
BRANCH_GROUPS
protected static String
ID
static String
PROPERTY_PREFIX_SELECTED_BRANCHES_FILTER
-
Constructor Summary
Constructors Constructor Description BranchGroupsUserSelectedProvider(BranchSpecs branchSpecs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
collectBranches(String branchGroupId, BranchGroupsProvider.Context context, ItemProcessor<BranchEx> processor)
Should exit fast on branchGroupId which is not supported by this providerList<BranchGroupsProvider.BranchGroup>
getAvailableBranchGroups(BranchGroupsProvider.Context context)
Reports the branch groups which this extension supports via collectBranches methodString
getId()
unique id of this extension.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.serverSide.BranchGroupsProvider
getOrderId
-
Methods inherited from interface jetbrains.buildServer.util.positioning.PositionConstraintAware
getConstraint
-
-
-
-
Field Detail
-
ID
protected static final String ID
- See Also:
- Constant Field Values
-
BRANCH_GROUPS
protected static final List<BranchGroupsProvider.BranchGroup> BRANCH_GROUPS
-
PROPERTY_PREFIX_SELECTED_BRANCHES_FILTER
public static final String PROPERTY_PREFIX_SELECTED_BRANCHES_FILTER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BranchGroupsUserSelectedProvider
public BranchGroupsUserSelectedProvider(BranchSpecs branchSpecs)
-
-
Method Detail
-
getId
@NotNull public String getId()
Description copied from interface:BranchGroupsProvider
unique id of this extension. Should be a valid Java identifier- Specified by:
getId
in interfaceBranchGroupsProvider
-
getAvailableBranchGroups
public List<BranchGroupsProvider.BranchGroup> getAvailableBranchGroups(@NotNull BranchGroupsProvider.Context context)
Description copied from interface:BranchGroupsProvider
Reports the branch groups which this extension supports via collectBranches method- Specified by:
getAvailableBranchGroups
in interfaceBranchGroupsProvider
-
collectBranches
public boolean collectBranches(@NotNull String branchGroupId, @NotNull BranchGroupsProvider.Context context, @NotNull ItemProcessor<BranchEx> processor)
Description copied from interface:BranchGroupsProvider
Should exit fast on branchGroupId which is not supported by this provider- Specified by:
collectBranches
in interfaceBranchGroupsProvider
- Parameters:
branchGroupId
- id which can match id from earlier returned BranchGroup via getAvailableBranchGroups method- Returns:
- true if branchGroupId belongs to this provider (and matching branches. if any were fed to processor), false otherwise
-
-