public class VisibilityVisitors extends Object
VisibilityVisitor
which return groupLevel or roleLevelId from given Visibility
or validate it.Modifier and Type | Method and Description |
---|---|
static VisibilityVisitor<io.atlassian.fugue.Option<String>> |
returningGroupLevelVisitor() |
static VisibilityVisitor<io.atlassian.fugue.Option<Long>> |
returningRoleLevelIdVisitor() |
public static VisibilityVisitor<io.atlassian.fugue.Option<String>> returningGroupLevelVisitor()
RoleVisibility
.
In other way it returns Option.NONE.
WARNING This visitor returns Option.NONE for invalid visibility too, so if you want to transform empty option
to null and then pass it to worklog or comment you have to validate this visibility first.
If you don't valid it, the invalid visibility make this comment or worklog public.public static VisibilityVisitor<io.atlassian.fugue.Option<Long>> returningRoleLevelIdVisitor()
GroupVisibility
.
In other way it returns Option.NONE.
WARNING This visitor returns Option.NONE for invalid visibility too, so if you want to transform empty option
to null and then pass it to worklog or comment you have to validate this visibility first.
If you don't valid it, the invalid visibility make this comment or worklog public.Copyright © 2002-2022 Atlassian. All Rights Reserved.