public final class GlobalPermissions extends Object
Modifier and Type | Method and Description |
---|---|
static GlobalPermissions |
edit() |
void |
editIfViewing() |
void |
grantPermission(GlobalPermission permission,
Entity entity) |
void |
grantPermission(GlobalPermission permission,
Group group) |
void |
grantPermission(GlobalPermission permission,
User user) |
boolean |
hasAnyPermission(Entity entity) |
boolean |
hasPermission(GlobalPermission permission,
Entity entity) |
void |
revokePermission(GlobalPermission permission,
Entity entity) |
void |
save() |
static GlobalPermissions |
view() |
public static GlobalPermissions view()
public static GlobalPermissions edit()
public boolean hasPermission(GlobalPermission permission, Entity entity)
public boolean hasAnyPermission(Entity entity)
public void editIfViewing()
public void grantPermission(GlobalPermission permission, Entity entity)
public void grantPermission(GlobalPermission permission, User user)
public void grantPermission(GlobalPermission permission, Group group)
public void revokePermission(GlobalPermission permission, Entity entity)
public void save()
Copyright © 2003–2016 Atlassian. All rights reserved.