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,
AllUsersName allUsersName,
ProjectControl.AssistedFactory projectControlFactory,
PrologEnvironment.Factory envFactory,
GitRepositoryManager gitMgr,
RulesCache rulesCache,
java.util.List<com.google.gerrit.extensions.api.projects.CommentLinkInfo> commentLinks,
CapabilityCollection.Factory capabilityFactory,
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<com.google.gerrit.extensions.api.projects.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() |
java.util.Collection<com.google.gerrit.common.data.SubscribeSection> |
getSubscribeSections(com.google.gerrit.reviewdb.client.Branch.NameKey branch) |
com.google.gerrit.extensions.api.projects.ThemeInfo |
getTheme() |
boolean |
isAllProjects() |
boolean |
isAllUsers() |
boolean |
isCreateNewChangeForAllNotInTarget() |
boolean |
isEnableSignedPush() |
boolean |
isRejectImplicitMerges() |
boolean |
isRequireChangeID() |
boolean |
isRequireSignedPush() |
boolean |
isUseContentMerge() |
boolean |
isUseContributorAgreements() |
boolean |
isUseSignedOffBy() |
PrologEnvironment |
newPrologEnvironment() |
PrologEnvironment |
newPrologEnvironment(java.lang.String name,
java.io.Reader 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, AllUsersName allUsersName, ProjectControl.AssistedFactory projectControlFactory, PrologEnvironment.Factory envFactory, GitRepositoryManager gitMgr, RulesCache rulesCache, java.util.List<com.google.gerrit.extensions.api.projects.CommentLinkInfo> commentLinks, CapabilityCollection.Factory capabilityFactory, ProjectConfig config)
public CapabilityCollection getCapabilityCollection()
ProjectCache.getAllProjects()
.
Null on any other project.public PrologEnvironment newPrologEnvironment() throws com.googlecode.prolog_cafe.exceptions.CompileException
com.googlecode.prolog_cafe.exceptions.CompileException
public PrologEnvironment newPrologEnvironment(java.lang.String name, java.io.Reader in) throws com.googlecode.prolog_cafe.exceptions.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
- stream to read prolog rules fromcom.googlecode.prolog_cafe.exceptions.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 isAllUsers()
public boolean isUseContributorAgreements()
public boolean isUseContentMerge()
public boolean isUseSignedOffBy()
public boolean isRequireChangeID()
public boolean isCreateNewChangeForAllNotInTarget()
public boolean isEnableSignedPush()
public boolean isRequireSignedPush()
public boolean isRejectImplicitMerges()
public com.google.gerrit.common.data.LabelTypes getLabelTypes()
public java.util.List<com.google.gerrit.extensions.api.projects.CommentLinkInfo> getCommentLinks()
public BranchOrderSection getBranchOrderSection()
public java.util.Collection<com.google.gerrit.common.data.SubscribeSection> getSubscribeSections(com.google.gerrit.reviewdb.client.Branch.NameKey branch)
public com.google.gerrit.extensions.api.projects.ThemeInfo getTheme()