Package jetbrains.buildServer.users
Class SearchOptions
- java.lang.Object
-
- jetbrains.buildServer.users.SearchOptions
-
public class SearchOptions extends Object
- Author:
- Pavel.Sher Date: 28.09.2007
-
-
Constructor Summary
Constructors Constructor Description SearchOptions(String keyword)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SUserGroupgetGroup()StringgetKeyword()RolegetRole()SProjectgetRoleProject()booleanisInvertRolesCondition()booleanisProjectsFilterDisabled()booleanisStopOnFirstMatch()voidsetGroup(SUserGroup group)Set to a group where to search for users.voidsetInvertRolesCondition(boolean invertRolesCondition)Set to true to invert role/project condition, i.e.voidsetKeyword(String keyword)voidsetProjectsFilterDisabled(boolean projectsFilterDisabled)Set to true to disable filtering by role projectsvoidsetRole(Role role)Seach users with specified role.voidsetRoleProject(SProject roleProject)Search users having specified role in the specified project.voidsetStopOnFirstMatch(boolean stopOnFirstMatch)Set to true if search should be stopped on the first match.
-
-
-
Constructor Detail
-
SearchOptions
public SearchOptions(@Nullable String keyword)
-
-
Method Detail
-
getKeyword
@Nullable public String getKeyword()
-
setKeyword
public void setKeyword(@Nullable String keyword)
-
getRole
@Nullable public Role getRole()
-
setRole
public void setRole(@Nullable Role role)Seach users with specified role. If null then filtering by role is disabled.- Parameters:
role-
-
getRoleProject
@Nullable public SProject getRoleProject()
-
setRoleProject
public void setRoleProject(@Nullable SProject roleProject)Search users having specified role in the specified project. If null then filtering by project is disabled.- Parameters:
roleProject-
-
isProjectsFilterDisabled
public boolean isProjectsFilterDisabled()
-
setProjectsFilterDisabled
public void setProjectsFilterDisabled(boolean projectsFilterDisabled)
Set to true to disable filtering by role projects- Parameters:
projectsFilterDisabled- true to disable filtering by role projects
-
setInvertRolesCondition
public void setInvertRolesCondition(boolean invertRolesCondition)
Set to true to invert role/project condition, i.e. to find users without specified role in specified project.- Parameters:
invertRolesCondition- true to invert condition
-
isInvertRolesCondition
public boolean isInvertRolesCondition()
-
getGroup
public SUserGroup getGroup()
-
setGroup
public void setGroup(SUserGroup group)
Set to a group where to search for users. Users will be searched in this group and in this group parents.- Parameters:
group-
-
isStopOnFirstMatch
public boolean isStopOnFirstMatch()
-
setStopOnFirstMatch
public void setStopOnFirstMatch(boolean stopOnFirstMatch)
Set to true if search should be stopped on the first match.- Parameters:
stopOnFirstMatch-
-
-