Class FieldRestriction
java.lang.Object
com.deiser.jira.profields.api.field.restriction.FieldRestriction
The type Field restriction.
- 
Method SummaryModifier and TypeMethodDescriptionstatic FieldRestrictionBy group field restriction.static FieldRestrictionbyProjectRole(List<String> editors, List<String> viewers) By project role field restriction.static FieldRestrictionCreate field restriction.static FieldRestrictionempty()Empty field restriction.Gets editors.Gets first editor.Gets first viewer.getType()Gets type.com.deiser.jira.profields.impl.field.wrapper.restriction.RestrictionTypeGets type enum.Gets viewers.booleanHas group restriction boolean.booleanHas project role restriction boolean.booleanHas restrictions boolean.booleanisEmpty()Is empty boolean.voidvalidate(FieldType fieldType, com.deiser.jira.profields.impl.field.wrapper.restriction.validation.FieldRestrictionValidator fieldRestrictionValidator) Validate.
- 
Method Details- 
emptyEmpty field restriction.- Returns:
- the field restriction
 
- 
createCreate field restriction.- Parameters:
- type- the type
- editors- the editors
- viewers- the viewers
- Returns:
- the field restriction
 
- 
byProjectRoleBy project role field restriction.- Parameters:
- editors- the editors
- viewers- the viewers
- Returns:
- the field restriction
 
- 
byGroupBy group field restriction.- Parameters:
- editors- the editors
- viewers- the viewers
- Returns:
- the field restriction
 
- 
isEmptypublic boolean isEmpty()Is empty boolean.- Returns:
- the boolean
 
- 
getTypeGets type.- Returns:
- the type
 
- 
getTypeEnumpublic com.deiser.jira.profields.impl.field.wrapper.restriction.RestrictionType getTypeEnum()Gets type enum.- Returns:
- the type enum
 
- 
getEditorsGets editors.- Returns:
- the editors
 
- 
getViewersGets viewers.- Returns:
- the viewers
 
- 
hasProjectRoleRestrictionpublic boolean hasProjectRoleRestriction()Has project role restriction boolean.- Returns:
- the boolean
 
- 
hasGroupRestrictionpublic boolean hasGroupRestriction()Has group restriction boolean.- Returns:
- the boolean
 
- 
getFirstEditorGets first editor.- Returns:
- the first editor
 
- 
getFirstViewerGets first viewer.- Returns:
- the first viewer
 
- 
hasRestrictionspublic boolean hasRestrictions()Has restrictions boolean.- Returns:
- the boolean
 
- 
validatepublic void validate(FieldType fieldType, com.deiser.jira.profields.impl.field.wrapper.restriction.validation.FieldRestrictionValidator fieldRestrictionValidator) Validate.- Parameters:
- fieldType- the field type
- fieldRestrictionValidator- the field restriction validator
 
 
-