Class OrganizationFolder

    • Constructor Detail

      • OrganizationFolder

        public OrganizationFolder​(ItemGroup parent,
                                  String name)
    • Method Detail

      • onCreatedFromScratch

        public void onCreatedFromScratch()
        Specified by:
        onCreatedFromScratch in interface Item
        Overrides:
        onCreatedFromScratch in class com.cloudbees.hudson.plugins.folder.computed.ComputedFolder<MultiBranchProject<?,​?>>
      • getItem

        public MultiBranchProject<?,​?> getItem​(String name)
                                              throws org.springframework.security.access.AccessDeniedException
        Specified by:
        getItem in interface ItemGroup<MultiBranchProject<?,​?>>
        Overrides:
        getItem in class com.cloudbees.hudson.plugins.folder.AbstractFolder<MultiBranchProject<?,​?>>
        Throws:
        org.springframework.security.access.AccessDeniedException
      • getItemByProjectName

        @CheckForNull
        public MultiBranchProject<?,​?> getItemByProjectName​(@NonNull
                                                                  String projectName)
        Returns the child job with the specified project name or null if no such child job exists.
        Parameters:
        projectName - the name of the project.
        Returns:
        the child job or null if no such job exists or if the requesting user does ave permission to view it.
        Since:
        2.0.0
      • getNavigators

        public DescribableList<jenkins.scm.api.SCMNavigator,​jenkins.scm.api.SCMNavigatorDescriptor> getNavigators()
      • getSCMNavigators

        @NonNull
        public List<jenkins.scm.api.SCMNavigator> getSCMNavigators()
        Specified by:
        getSCMNavigators in interface jenkins.scm.api.SCMNavigatorOwner
      • getStrategy

        public BranchPropertyStrategy getStrategy()
        Gets the strategy.
        Returns:
        the strategy.
        Since:
        2.5.9
      • setStrategy

        public void setStrategy​(BranchPropertyStrategy strategy)
        Sets the branch property strategy.
        Parameters:
        strategy - chosen.
        Since:
        2.5.9
      • createComputation

        @NonNull
        protected com.cloudbees.hudson.plugins.folder.computed.FolderComputation<MultiBranchProject<?,​?>> createComputation​(@CheckForNull
                                                                                                                                  com.cloudbees.hudson.plugins.folder.computed.FolderComputation<MultiBranchProject<?,​?>> previous)
        Overrides:
        createComputation in class com.cloudbees.hudson.plugins.folder.computed.ComputedFolder<MultiBranchProject<?,​?>>
      • isHasEvents

        public boolean isHasEvents()
        Overrides:
        isHasEvents in class com.cloudbees.hudson.plugins.folder.computed.ComputedFolder<MultiBranchProject<?,​?>>
      • isBuildable

        public boolean isBuildable()
        Overrides:
        isBuildable in class com.cloudbees.hudson.plugins.folder.computed.ComputedFolder<MultiBranchProject<?,​?>>
      • newFolderViewHolder

        protected com.cloudbees.hudson.plugins.folder.views.AbstractFolderViewHolder newFolderViewHolder()
        Overrides:
        newFolderViewHolder in class com.cloudbees.hudson.plugins.folder.AbstractFolder<MultiBranchProject<?,​?>>
      • newDefaultFolderIcon

        protected com.cloudbees.hudson.plugins.folder.FolderIcon newDefaultFolderIcon()
        Overrides:
        newDefaultFolderIcon in class com.cloudbees.hudson.plugins.folder.AbstractFolder<MultiBranchProject<?,​?>>
      • getSourcePronoun

        public String getSourcePronoun()
        Get the term used in the UI to represent the source for this kind of Item. Must start with a capital letter.
        Returns:
        term used in the UI to represent the souce
      • getSCMSources

        @NonNull
        public List<jenkins.scm.api.SCMSource> getSCMSources()
        Specified by:
        getSCMSources in interface jenkins.scm.api.SCMSourceOwner
      • getSCMSource

        public jenkins.scm.api.SCMSource getSCMSource​(String sourceId)
        Specified by:
        getSCMSource in interface jenkins.scm.api.SCMSourceOwner
      • onSCMSourceUpdated

        public void onSCMSourceUpdated​(@NonNull
                                       jenkins.scm.api.SCMSource source)
        Specified by:
        onSCMSourceUpdated in interface jenkins.scm.api.SCMSourceOwner
      • getSCMSourceCriteria

        public jenkins.scm.api.SCMSourceCriteria getSCMSourceCriteria​(@NonNull
                                                                      jenkins.scm.api.SCMSource source)
        Specified by:
        getSCMSourceCriteria in interface jenkins.scm.api.SCMSourceOwner
      • getPrimaryView

        public View getPrimaryView()
        Will create an specialized view when there are no repositories or branches found, which contain a Jenkinsfile or other MARKER file.
        Specified by:
        getPrimaryView in interface ViewGroup
        Overrides:
        getPrimaryView in class com.cloudbees.hudson.plugins.folder.AbstractFolder<MultiBranchProject<?,​?>>
      • getWelcomeView

        protected View getWelcomeView()
        Creates a place-holder view when there's no active repositories indexed.
        Returns:
        a place-holder view for when there's no active repositories indexed.