Class UserGroupPropertyUniquenessValidator
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.auth.BasePropertyUniquenessValidator<SUserGroup,UserGroupForm,UserGroupPropertyDefaultValueProvider,UserGroupPropertyValueCanonizer>
-
- jetbrains.buildServer.serverSide.impl.auth.UserGroupPropertyUniquenessValidator
-
- All Implemented Interfaces:
UserGroupPropertyValidator
public class UserGroupPropertyUniquenessValidator extends BasePropertyUniquenessValidator<SUserGroup,UserGroupForm,UserGroupPropertyDefaultValueProvider,UserGroupPropertyValueCanonizer> implements UserGroupPropertyValidator
- Author:
- Maxim.Manuylov Date: 19.09.14
-
-
Field Summary
-
Fields inherited from class jetbrains.buildServer.serverSide.impl.auth.BasePropertyUniquenessValidator
myDefaultValueProvider, mySecurityContext, myValueCanonizer
-
-
Constructor Summary
Constructors Constructor Description UserGroupPropertyUniquenessValidator(UserGroupManager userGroupManager, SecurityContextEx securityContext, PropertyKey propertyKey, String description, UserGroupPropertyDefaultValueProvider defaultValueProvider, UserGroupPropertyValueCanonizer valueCanonizer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
describeAnotherItem()
protected String
describeItem(SUserGroup item)
protected boolean
equal(SUserGroup item, SUserGroup editee)
protected Collection<SUserGroup>
getAllItems()
String
validate(String propertyValue, SUserGroup editee, UserGroupForm form)
Returns error text if property value is not valid, null otherwise-
Methods inherited from class jetbrains.buildServer.serverSide.impl.auth.BasePropertyUniquenessValidator
doFindAnotherItemWithTheSameValue, doValidate
-
-
-
-
Constructor Detail
-
UserGroupPropertyUniquenessValidator
public UserGroupPropertyUniquenessValidator(@NotNull UserGroupManager userGroupManager, @NotNull SecurityContextEx securityContext, @NotNull PropertyKey propertyKey, @NotNull String description, @Nullable UserGroupPropertyDefaultValueProvider defaultValueProvider, @Nullable UserGroupPropertyValueCanonizer valueCanonizer)
-
-
Method Detail
-
validate
@Nullable public String validate(@NotNull String propertyValue, @Nullable SUserGroup editee, @NotNull UserGroupForm form)
Description copied from interface:UserGroupPropertyValidator
Returns error text if property value is not valid, null otherwise- Specified by:
validate
in interfaceUserGroupPropertyValidator
- Parameters:
propertyValue
- property valueeditee
- group that is being edited (null if group is being created)form
- current user group data- Returns:
- see above
-
getAllItems
@NotNull protected Collection<SUserGroup> getAllItems()
-
equal
protected boolean equal(@NotNull SUserGroup item, @NotNull SUserGroup editee)
- Specified by:
equal
in classBasePropertyUniquenessValidator<SUserGroup,UserGroupForm,UserGroupPropertyDefaultValueProvider,UserGroupPropertyValueCanonizer>
-
describeItem
@NotNull protected String describeItem(@NotNull SUserGroup item)
-
describeAnotherItem
@NotNull protected String describeAnotherItem()
-
-