public class ProjectState extends 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,
List<CommentLinkInfo> commentLinks,
ProjectConfig config) |
@Inject public ProjectState(SitePaths sitePaths, ProjectCache projectCache, AllProjectsName allProjectsName, ProjectControl.AssistedFactory projectControlFactory, PrologEnvironment.Factory envFactory, GitRepositoryManager gitMgr, RulesCache rulesCache, 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(String name, 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(String fileName)
public long getMaxObjectSizeLimit()
public 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 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 Iterable<ProjectState> tree()
public Iterable<ProjectState> treeInOrder()
public 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 List<CommentLinkInfo> getCommentLinks()
public BranchOrderSection getBranchOrderSection()
public ThemeInfo getTheme()