Class GroupFieldRestrictionBuilder

java.lang.Object
com.deiser.jira.profields.api.field.restriction.GroupFieldRestrictionBuilder
All Implemented Interfaces:
FieldRestrictionTypeBuilder

public class GroupFieldRestrictionBuilder extends Object implements FieldRestrictionTypeBuilder
The type Group field restriction builder.
  • Method Details

    • addEditor

      public GroupFieldRestrictionBuilder addEditor(com.atlassian.crowd.embedded.api.Group group)
      Add editor group restriction. Only will be checked one group
      Parameters:
      group - the group
      Returns:
      the group field restriction builder
    • addViewer

      public GroupFieldRestrictionBuilder addViewer(com.atlassian.crowd.embedded.api.Group group)
      Add viewer group restriction. Only will be checked one group
      Parameters:
      group - the group
      Returns:
      the group field restriction builder
    • removeEditors

      public GroupFieldRestrictionBuilder removeEditors()
      Remove editors restriction
      Returns:
      the group field restriction builder
    • removeViewers

      public GroupFieldRestrictionBuilder removeViewers()
      Remove viewers restriction
      Returns:
      the group field restriction builder
    • getEditors

      public List<com.atlassian.crowd.embedded.api.Group> getEditors()
      Gets editors.
      Returns:
      the editors
    • getViewers

      public List<com.atlassian.crowd.embedded.api.Group> 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