public class VcsRootScope
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
VcsRootScope(java.lang.String projectInternalId)
Creates new scope from internal project id
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getOwnerProjectId()
For local scopes returns internal id of the project - owner of this VCS root
|
static VcsRootScope |
globalScope()
Use to create global scope
|
int |
hashCode() |
boolean |
isAccessibleFrom(SBuildType buildType)
Returns true if VCS roots with this scope are accessible from the specified build configuration.
|
boolean |
isAccessibleFrom(SProject project)
Returns true if VCS roots with this scope are accessible from the specified project.
|
boolean |
isGlobal()
Returns true if scope is global
|
static VcsRootScope |
projectScope(SBuildType buildType)
Use to create project scope
|
static VcsRootScope |
projectScope(SProject project)
Use to create project scope
|
static VcsRootScope |
projectScope(java.lang.String projectInternalId)
Use to create project scope
|
java.lang.String |
toString() |
protected VcsRootScope(@NotNull
java.lang.String projectInternalId)
@NotNull public java.lang.String getOwnerProjectId()
public boolean isGlobal()
@NotNull public static VcsRootScope globalScope()
@NotNull public static VcsRootScope projectScope(@NotNull java.lang.String projectInternalId)
projectInternalId - id of the owner project of the VCS root@NotNull public static VcsRootScope projectScope(@NotNull SProject project)
project - owner project of the VCS root@NotNull public static VcsRootScope projectScope(@NotNull SBuildType buildType)
buildType - build type of the owner project of the VCS rootpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isAccessibleFrom(@NotNull
SBuildType buildType)
buildType - build configurationpublic boolean isAccessibleFrom(@NotNull
SProject project)
project - the projectpublic java.lang.String toString()
toString in class java.lang.Object