public class ProjectState
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ProjectState.EffectiveMaxObjectSizeLimit |
static interface |
ProjectState.Factory |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
INHERITED_FROM_GLOBAL |
static java.lang.String |
INHERITED_FROM_PARENT |
static java.lang.String |
OVERRIDDEN_BY_GLOBAL |
static java.lang.String |
OVERRIDDEN_BY_PARENT |
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<CommentLinkInfo> commentLinks,
CapabilityCollection.Factory capabilityFactory,
TransferConfig transferConfig,
ProjectConfig config) |
public static final java.lang.String INHERITED_FROM_PARENT
public static final java.lang.String OVERRIDDEN_BY_PARENT
public static final java.lang.String INHERITED_FROM_GLOBAL
public static final java.lang.String OVERRIDDEN_BY_GLOBAL
@Inject public ProjectState(SitePaths sitePaths, ProjectCache projectCache, AllProjectsName allProjectsName, AllUsersName allUsersName, ProjectControl.AssistedFactory projectControlFactory, PrologEnvironment.Factory envFactory, GitRepositoryManager gitMgr, RulesCache rulesCache, java.util.List<CommentLinkInfo> commentLinks, CapabilityCollection.Factory capabilityFactory, TransferConfig transferConfig, 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 Project getProject()
public ProjectConfig getConfig()
public ProjectLevelConfig getConfig(java.lang.String fileName)
public ProjectState.EffectiveMaxObjectSizeLimit getEffectiveMaxObjectSizeLimit()
public java.util.Set<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<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 com.google.common.collect.FluentIterable<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 LabelTypes getLabelTypes()
public java.util.List<CommentLinkInfo> getCommentLinks()
public BranchOrderSection getBranchOrderSection()
public java.util.Collection<SubscribeSection> getSubscribeSections(Branch.NameKey branch)
public ThemeInfo getTheme()