Class UserApprovalRule
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.approval.UserApprovalRule
-
- All Implemented Interfaces:
ApprovalRule
public class UserApprovalRule extends Object implements ApprovalRule
-
-
Constructor Summary
Constructors Constructor Description UserApprovalRule(SUser user)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerapprovalsCount()Return count of approvals required for this rule.Stringdescribe()Provide human-readable description of approval rule.StringdescribeShort()Provide short description that allows to distinguish this rule from othersAuthorityHoldergetAuthorityHolder()Retrieve authority holder which is used in the rule.BooleanisMet(Set<SUser> users)Return true if current set of users who have approved build fits this rule, or false otherwise.BooleanisUserAllowedToApprove(SUser user)Return true if specified user may apply to this rule, or false otherwise.Set<SUser>matchingUsers(Set<SUser> users)Return subset of users who have approved given build.
-
-
-
Constructor Detail
-
UserApprovalRule
public UserApprovalRule(@NotNull SUser user)
-
-
Method Detail
-
approvalsCount
public Integer approvalsCount()
Description copied from interface:ApprovalRuleReturn count of approvals required for this rule.- Specified by:
approvalsCountin interfaceApprovalRule
-
isMet
public Boolean isMet(Set<SUser> users)
Description copied from interface:ApprovalRuleReturn true if current set of users who have approved build fits this rule, or false otherwise.- Specified by:
isMetin interfaceApprovalRule
-
matchingUsers
public Set<SUser> matchingUsers(Set<SUser> users)
Description copied from interface:ApprovalRuleReturn subset of users who have approved given build.- Specified by:
matchingUsersin interfaceApprovalRule
-
isUserAllowedToApprove
public Boolean isUserAllowedToApprove(SUser user)
Description copied from interface:ApprovalRuleReturn true if specified user may apply to this rule, or false otherwise.- Specified by:
isUserAllowedToApprovein interfaceApprovalRule
-
getAuthorityHolder
public AuthorityHolder getAuthorityHolder()
Description copied from interface:ApprovalRuleRetrieve authority holder which is used in the rule.- Specified by:
getAuthorityHolderin interfaceApprovalRule
-
describe
public String describe()
Description copied from interface:ApprovalRuleProvide human-readable description of approval rule.- Specified by:
describein interfaceApprovalRule
-
describeShort
public String describeShort()
Description copied from interface:ApprovalRuleProvide short description that allows to distinguish this rule from others- Specified by:
describeShortin interfaceApprovalRule- Returns:
-
-