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 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

      public ProjectRoleFieldRestrictionBuilder removeEditors()
      Remove editors project role restriction.
      Returns:
      the project role field restriction builder
    • removeViewers

      public ProjectRoleFieldRestrictionBuilder removeViewers()
      Remove viewers project role restriction.
      Returns:
      the project role field restriction builder
    • getEditors

      public List<com.atlassian.jira.security.roles.ProjectRole> getEditors()
      Gets editors.
      Returns:
      the editors
    • getViewers

      public List<com.atlassian.jira.security.roles.ProjectRole> getViewers()
      Gets viewers.
      Returns:
      the viewers
    • completed

      public FieldRestrictionBuilder completed()
      Complete the specific creation for any type of field restriction builder
      Specified by:
      completed in interface FieldRestrictionTypeBuilder
      Returns:
      the field restriction builder