org.sonar.api.security
Interface ResourcePermissions

All Superinterfaces:
BatchComponent, ServerComponent

public interface ResourcePermissions
extends BatchComponent, ServerComponent

Grant access to newly created projects.

This component is not supposed to be called by standard plugins.

Since:
3.2

Method Summary
 void grantDefaultRoles(Resource resource)
          Limitation - the resource id is used instead of logical key.
 void grantGroupRole(Resource resource, String groupName, String role)
          Limitation - the resource id is used instead of logical key.
 void grantUserRole(Resource resource, String login, String role)
          Limitation - the resource id is used instead of logical key.
 boolean hasRoles(Resource resource)
          Limitation - the resource id is used instead of logical key.
 

Method Detail

hasRoles

boolean hasRoles(Resource resource)
Limitation - the resource id is used instead of logical key.


grantDefaultRoles

void grantDefaultRoles(Resource resource)
Limitation - the resource id is used instead of logical key.


grantUserRole

void grantUserRole(Resource resource,
                   String login,
                   String role)
Limitation - the resource id is used instead of logical key.


grantGroupRole

void grantGroupRole(Resource resource,
                    String groupName,
                    String role)
Limitation - the resource id is used instead of logical key.



Copyright © 2009-2012 SonarSource. All Rights Reserved.