Class ProjectRoleFieldRestrictionBuilder
java.lang.Object
com.deiser.jira.profields.api.field.restriction.ProjectRoleFieldRestrictionBuilder
- All Implemented Interfaces:
FieldRestrictionTypeBuilder
public class ProjectRoleFieldRestrictionBuilder
extends Object
implements FieldRestrictionTypeBuilder
The type Project role field restriction builder.
-
Method Summary
Modifier and TypeMethodDescriptionaddEditor
(com.atlassian.jira.security.roles.ProjectRole projectRole) Add editor project role restriction.addViewer
(com.atlassian.jira.security.roles.ProjectRole projectRole) Add viewer project role restriction.Complete the specific creation for any type of field restriction builderList<com.atlassian.jira.security.roles.ProjectRole>
Gets editors.List<com.atlassian.jira.security.roles.ProjectRole>
Gets viewers.Remove editors project role restriction.Remove viewers project role restriction.
-
Method Details
-
addEditor
public ProjectRoleFieldRestrictionBuilder addEditor(com.atlassian.jira.security.roles.ProjectRole projectRole) Add editor project role restriction. Only will be checked one project role- Parameters:
projectRole
- the project role- Returns:
- the project role field restriction builder
-
addViewer
public ProjectRoleFieldRestrictionBuilder addViewer(com.atlassian.jira.security.roles.ProjectRole projectRole) Add viewer project role restriction. Only will be checked one project role- Parameters:
projectRole
- the project role- Returns:
- the project role field restriction builder
-
removeEditors
Remove editors project role restriction.- Returns:
- the project role field restriction builder
-
removeViewers
Remove viewers project role restriction.- Returns:
- the project role field restriction builder
-
getEditors
Gets editors.- Returns:
- the editors
-
getViewers
Gets viewers.- Returns:
- the viewers
-
completed
Complete the specific creation for any type of field restriction builder- Specified by:
completed
in interfaceFieldRestrictionTypeBuilder
- Returns:
- the field restriction builder
-