Class ProjectBranchBreadcrumb

  • All Implemented Interfaces:
    org.uberfire.ext.widgets.common.client.breadcrumbs.widget.BreadcrumbPresenter

    @Dependent
    public class ProjectBranchBreadcrumb
    extends Object
    implements org.uberfire.ext.widgets.common.client.breadcrumbs.widget.BreadcrumbPresenter
    • Field Detail

      • BRANCH_ALPHABETICAL_ORDER_COMPARATOR

        public static final Comparator<org.guvnor.structure.repositories.Branch> BRANCH_ALPHABETICAL_ORDER_COMPARATOR
    • Constructor Detail

      • ProjectBranchBreadcrumb

        @Inject
        public ProjectBranchBreadcrumb​(ProjectBranchBreadcrumb.View view,
                                       LibraryPlaces libraryPlaces,
                                       javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> notificationEvent,
                                       org.guvnor.common.services.project.client.security.ProjectController projectController,
                                       org.uberfire.client.promise.Promises promises)
    • Method Detail

      • activate

        public void activate()
        Specified by:
        activate in interface org.uberfire.ext.widgets.common.client.breadcrumbs.widget.BreadcrumbPresenter
      • deactivate

        public void deactivate()
        Specified by:
        deactivate in interface org.uberfire.ext.widgets.common.client.breadcrumbs.widget.BreadcrumbPresenter
      • getCurrentBranch

        public org.guvnor.structure.repositories.Branch getCurrentBranch()
      • getBranches

        public List<org.guvnor.structure.repositories.Branch> getBranches()
      • getView

        public org.uberfire.client.mvp.UberElemental<? extends org.uberfire.ext.widgets.common.client.breadcrumbs.widget.BreadcrumbPresenter> getView()
        Specified by:
        getView in interface org.uberfire.ext.widgets.common.client.breadcrumbs.widget.BreadcrumbPresenter
      • onBranchChanged

        public void onBranchChanged​(org.guvnor.structure.repositories.Branch branch)
      • newBranchEvent

        public void newBranchEvent​(@Observes
                                   org.guvnor.structure.repositories.NewBranchEvent newBranchEvent)
      • repositoryUpdatedEvent

        public void repositoryUpdatedEvent​(@Observes
                                           org.guvnor.structure.repositories.RepositoryUpdatedEvent event)