com.atlassian.confluence.it.space
Class SpacePermissions

java.lang.Object
  extended by com.atlassian.confluence.it.space.SpacePermissions

public final class SpacePermissions
extends Object


Method Summary
 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(net.sourceforge.jwebunit.junit.WebTester tester, Space space)
           
static SpacePermissions viewDefaults(net.sourceforge.jwebunit.junit.WebTester tester)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

viewDefaults

public static SpacePermissions viewDefaults(net.sourceforge.jwebunit.junit.WebTester tester)

view

public static SpacePermissions view(net.sourceforge.jwebunit.junit.WebTester tester,
                                    Space space)

hasPermission

public boolean hasPermission(SpacePermission permission,
                             Entity entity)

hasExactPermissions

public boolean hasExactPermissions(Entity entity,
                                   Collection<SpacePermission> expectedPermissions)

hasAnyPermission

public boolean hasAnyPermission(Entity entity)

grantPermission

public void grantPermission(SpacePermission permission,
                            User user)

grantPermission

public void grantPermission(SpacePermission permission,
                            Group group)

editPermissions

public void editPermissions()

addGroupPermissionsRow

public void addGroupPermissionsRow(Group group)

addUserPermissionsRow

public void addUserPermissionsRow(User user)

grantPermissionOnRow

public void grantPermissionOnRow(SpacePermission permission,
                                 Entity entity)

revokePermission

public void revokePermission(SpacePermission permission,
                             Entity entity)


Copyright © 2003-2012 Atlassian. All Rights Reserved.