public final class SpacePermissions extends Object
Modifier and Type | Method and Description |
---|---|
void |
addGroupPermissionsRow(Group group) |
void |
addUserPermissionsRow(User user) |
void |
editPermissions() |
void |
grantPermission(SpacePermission permission,
Group group) |
void |
grantPermission(SpacePermission permission,
User user) |
void |
grantPermissionOnRow(SpacePermission permission,
Entity entity) |
boolean |
hasAnyPermission(Entity entity) |
boolean |
hasExactPermissions(Entity entity,
Collection<SpacePermission> expectedPermissions) |
boolean |
hasPermission(SpacePermission permission,
Entity entity) |
void |
revokePermission(SpacePermission permission,
Entity entity) |
static SpacePermissions |
view(Space space) |
static SpacePermissions |
view(net.sourceforge.jwebunit.junit.WebTester tester,
Space space) |
static SpacePermissions |
viewDefaults() |
static SpacePermissions |
viewDefaults(net.sourceforge.jwebunit.junit.WebTester tester) |
public static SpacePermissions viewDefaults()
public static SpacePermissions viewDefaults(net.sourceforge.jwebunit.junit.WebTester tester)
public static SpacePermissions view(Space space)
public static SpacePermissions view(net.sourceforge.jwebunit.junit.WebTester tester, Space space)
public boolean hasPermission(SpacePermission permission, Entity entity)
public boolean hasExactPermissions(Entity entity, Collection<SpacePermission> expectedPermissions)
public boolean hasAnyPermission(Entity entity)
public void grantPermission(SpacePermission permission, User user)
public void grantPermission(SpacePermission permission, Group group)
public void editPermissions()
public void addGroupPermissionsRow(Group group)
public void addUserPermissionsRow(User user)
public void grantPermissionOnRow(SpacePermission permission, Entity entity)
public void revokePermission(SpacePermission permission, Entity entity)
Copyright © 2003–2017 Atlassian. All rights reserved.