public interface ResourcePermissions extends BatchComponent, ServerComponent
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)
void grantUserRole(Resource resource, String login, String role)
void grantGroupRole(Resource resource, String groupName, String role)
Copyright © 2009-2012 SonarSource. All Rights Reserved.