jetbrains.buildServer.serverSide.auth
Class RoleScope

java.lang.Object
  extended by jetbrains.buildServer.serverSide.auth.RoleScope

public class RoleScope
extends java.lang.Object

Represents scope of the role when role is associated with a user. Role can have either global or project scope.


Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getProjectId()
           
static RoleScope globalScope()
           
 int hashCode()
           
 boolean isGlobal()
           
static RoleScope projectScope(java.lang.String projectId)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getProjectId

public java.lang.String getProjectId()

isGlobal

public boolean isGlobal()

globalScope

public static RoleScope globalScope()

projectScope

public static RoleScope projectScope(@NotNull
                                     java.lang.String projectId)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object