@ScannerSide @ServerSide public interface ResourcePermissions
This component is not supposed to be called by standard plugins.
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
boolean hasRoles(Resource resource)
void grantDefaultRoles(Resource resource)
hasRoles(org.sonar.api.resources.Resource) is
 false before executing this method.void grantUserRole(Resource resource, String login, String role)
void grantGroupRole(Resource resource, String groupName, String role)
Copyright © 2009–2016 SonarSource. All rights reserved.