com.atlassian.jira.dev.backdoor
Class PermissionSchemesBackdoor

java.lang.Object
  extended by com.atlassian.jira.dev.backdoor.PermissionSchemesBackdoor

public class PermissionSchemesBackdoor
extends Object

Use this backdoor to manipulate Permission Schemes as part of setup for tests. This class should only be called by the PermissionSchemesControl.

Since:
v5.0

Constructor Summary
PermissionSchemesBackdoor(PermissionSchemeManager schemeManager)
           
 
Method Summary
 javax.ws.rs.core.Response addSchemeEntity(long schemeId, long permission, String type, String parameter)
           
 javax.ws.rs.core.Response copyDefault(String newSchemeName)
           
 javax.ws.rs.core.Response removeEntity(long schemeId, long permission, String type, String parameter)
           
 javax.ws.rs.core.Response replaceEntities(long schemeId, long permission, String type, String parameter)
          Removes all matching entities for the given permission and type, and adds the entity with the given parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermissionSchemesBackdoor

public PermissionSchemesBackdoor(PermissionSchemeManager schemeManager)
Method Detail

copyDefault

public javax.ws.rs.core.Response copyDefault(String newSchemeName)

addSchemeEntity

public javax.ws.rs.core.Response addSchemeEntity(long schemeId,
                                                 long permission,
                                                 String type,
                                                 String parameter)

removeEntity

public javax.ws.rs.core.Response removeEntity(long schemeId,
                                              long permission,
                                              String type,
                                              String parameter)

replaceEntities

public javax.ws.rs.core.Response replaceEntities(long schemeId,
                                                 long permission,
                                                 String type,
                                                 String parameter)
Removes all matching entities for the given permission and type, and adds the entity with the given parameter.



Copyright © 2002-2012 Atlassian. All Rights Reserved.