org.sonar.api.security
Class GroupRole

java.lang.Object
  extended by org.sonar.api.database.BaseIdentifiable
      extended by org.sonar.api.security.GroupRole

public class GroupRole
extends BaseIdentifiable

Since:
1.12

Field Summary
static Integer ANYONE_GROUP_ID
           
 
Constructor Summary
GroupRole()
           
 
Method Summary
static GroupRole buildGlobalRole(Integer groupId, String role)
           
static GroupRole buildResourceRole(Integer groupId, String role, Integer resourceId)
           
 Integer getGroupId()
           
 Integer getResourceId()
           
 String getRole()
           
 boolean isAnyone()
           
 GroupRole setGroupId(Integer groupId)
           
 GroupRole setResourceId(Integer resourceId)
           
 GroupRole setRole(String role)
           
 
Methods inherited from class org.sonar.api.database.BaseIdentifiable
getId, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANYONE_GROUP_ID

public static final Integer ANYONE_GROUP_ID
Constructor Detail

GroupRole

public GroupRole()
Method Detail

buildGlobalRole

public static GroupRole buildGlobalRole(Integer groupId,
                                        String role)

buildResourceRole

public static GroupRole buildResourceRole(Integer groupId,
                                          String role,
                                          Integer resourceId)

getGroupId

public Integer getGroupId()

setGroupId

public GroupRole setGroupId(Integer groupId)

getRole

public String getRole()

setRole

public GroupRole setRole(String role)

getResourceId

public Integer getResourceId()

setResourceId

public GroupRole setResourceId(Integer resourceId)

isAnyone

public boolean isAnyone()


Copyright © 2009-2010 SonarSource. All Rights Reserved.