public class ProjectState extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ProjectState.EffectiveMaxObjectSizeLimit |
static interface |
ProjectState.Factory |
Modifier and Type | Field and Description |
---|---|
static String |
INHERITED_FROM_GLOBAL |
static String |
INHERITED_FROM_PARENT |
static String |
OVERRIDDEN_BY_GLOBAL |
static 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,
List<CommentLinkInfo> commentLinks,
CapabilityCollection.Factory capabilityFactory,
TransferConfig transferConfig,
ProjectConfig config) |
public static final String INHERITED_FROM_PARENT
public static final String OVERRIDDEN_BY_PARENT
public static final String INHERITED_FROM_GLOBAL
public static final 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, 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(String name, 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(String fileName)
public ProjectState.EffectiveMaxObjectSizeLimit getEffectiveMaxObjectSizeLimit()
public 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 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 Iterable<ProjectState> tree()
public 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 List<CommentLinkInfo> getCommentLinks()
public BranchOrderSection getBranchOrderSection()
public Collection<SubscribeSection> getSubscribeSections(Branch.NameKey branch)
public ThemeInfo getTheme()