public class ProjectState
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ProjectState.Factory |
Constructor and Description |
---|
ProjectState(SitePaths sitePaths,
ProjectCache projectCache,
AllProjectsName allProjectsName,
ProjectControl.AssistedFactory projectControlFactory,
PrologEnvironment.Factory envFactory,
GitRepositoryManager gitMgr,
RulesCache rulesCache,
java.util.List<CommentLinkInfo> commentLinks,
ProjectConfig config) |
Modifier and Type | Method and Description |
---|---|
ProjectControl |
controlFor(CurrentUser user) |
java.util.Set<com.google.gerrit.reviewdb.client.AccountGroup.UUID> |
getAllOwners() |
BranchOrderSection |
getBranchOrderSection() |
CapabilityCollection |
getCapabilityCollection() |
java.util.List<CommentLinkInfo> |
getCommentLinks() |
ProjectConfig |
getConfig() |
ProjectLevelConfig |
getConfig(java.lang.String fileName) |
com.google.gerrit.common.data.LabelTypes |
getLabelTypes() |
long |
getMaxObjectSizeLimit() |
java.util.Set<com.google.gerrit.reviewdb.client.AccountGroup.UUID> |
getOwners() |
com.google.gerrit.reviewdb.client.Project |
getProject() |
ThemeInfo |
getTheme() |
boolean |
isAllProjects() |
boolean |
isCreateNewChangeForAllNotInTarget() |
boolean |
isRequireChangeID() |
boolean |
isUseContentMerge() |
boolean |
isUseContributorAgreements() |
boolean |
isUseSignedOffBy() |
PrologEnvironment |
newPrologEnvironment() |
PrologEnvironment |
newPrologEnvironment(java.lang.String name,
java.io.InputStream in)
Like
newPrologEnvironment() but instead of reading the rules.pl
read the provided input stream. |
java.lang.Iterable<ProjectState> |
parents() |
java.lang.Iterable<ProjectState> |
tree() |
java.lang.Iterable<ProjectState> |
treeInOrder() |
@Inject public ProjectState(SitePaths sitePaths, ProjectCache projectCache, AllProjectsName allProjectsName, ProjectControl.AssistedFactory projectControlFactory, PrologEnvironment.Factory envFactory, GitRepositoryManager gitMgr, RulesCache rulesCache, java.util.List<CommentLinkInfo> commentLinks, ProjectConfig config)
public CapabilityCollection getCapabilityCollection()
ProjectCache.getAllProjects()
.
Null on any other project.public PrologEnvironment newPrologEnvironment() throws com.googlecode.prolog_cafe.compiler.CompileException
com.googlecode.prolog_cafe.compiler.CompileException
public PrologEnvironment newPrologEnvironment(java.lang.String name, java.io.InputStream in) throws com.googlecode.prolog_cafe.compiler.CompileException
newPrologEnvironment()
but instead of reading the rules.pl
read the provided input stream.name
- a name of the input stream. Could be any name.in
- InputStream to read prolog rules fromcom.googlecode.prolog_cafe.compiler.CompileException
public com.google.gerrit.reviewdb.client.Project getProject()
public ProjectConfig getConfig()
public ProjectLevelConfig getConfig(java.lang.String fileName)
public long getMaxObjectSizeLimit()
public java.util.Set<com.google.gerrit.reviewdb.client.AccountGroup.UUID> getOwners()
AccountGroup
's to which the owner privilege for
'refs/*' is assigned for this project (the local owners), if there
are no local owners the local owners of the nearest parent project
that has local owners are returnedpublic java.util.Set<com.google.gerrit.reviewdb.client.AccountGroup.UUID> getAllOwners()
AccountGroup
's that are allowed to administrate the
complete project. This includes all groups to which the owner
privilege for 'refs/*' is assigned for this project (the local
owners) and all groups to which the owner privilege for 'refs/*' is
assigned for one of the parent projects (the inherited owners).public ProjectControl controlFor(CurrentUser user)
public java.lang.Iterable<ProjectState> tree()
public java.lang.Iterable<ProjectState> treeInOrder()
public java.lang.Iterable<ProjectState> parents()
public boolean isAllProjects()
public boolean isUseContributorAgreements()
public boolean isUseContentMerge()
public boolean isUseSignedOffBy()
public boolean isRequireChangeID()
public boolean isCreateNewChangeForAllNotInTarget()
public com.google.gerrit.common.data.LabelTypes getLabelTypes()
public java.util.List<CommentLinkInfo> getCommentLinks()
public BranchOrderSection getBranchOrderSection()
public ThemeInfo getTheme()