Class RoleScope
- java.lang.Object
-
- jetbrains.buildServer.serverSide.auth.RoleScope
-
- All Implemented Interfaces:
jetbrains.buildServer.log.Loggable
public class RoleScope extends java.lang.Object implements jetbrains.buildServer.log.Loggable
Represents scope of the role when role is associated with a user. Role can have either global or project scope.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
describe(boolean verbose)
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()
-
-
-
Method Detail
-
getProjectId
public java.lang.String getProjectId()
- Returns:
- internal id of the associated project
-
isGlobal
public boolean isGlobal()
-
globalScope
public static RoleScope globalScope()
-
projectScope
public static RoleScope projectScope(@NotNull java.lang.String projectId)
- Parameters:
projectId
- project internal id
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
describe
@NotNull public java.lang.String describe(boolean verbose)
- Specified by:
describe
in interfacejetbrains.buildServer.log.Loggable
-
-