|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourcePermissions
Grant access to newly created projects.
This component is not supposed to be called by standard plugins.
| 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 |
|---|
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||