Search in sources :

Example 1 with SharedPageStatusCellRenderer

use of org.olat.modules.portfolio.ui.renderer.SharedPageStatusCellRenderer in project OpenOLAT by OpenOLAT.

the class AbstractPageListController method initForm.

@Override
protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {
    timelineEl = new TimelineElement("timeline");
    timelineEl.setContainerId("o_portfolio_entries_timeline_" + timelineEl.getComponent().getDispatchID());
    formLayout.add("timeline", timelineEl);
    initTimeline();
    if (portfolioV2Module.isEntriesTimelineEnabled() && config.isTimeline()) {
        timelineSwitchOnButton = uifactory.addFormLink("timeline.switch.on", formLayout, Link.BUTTON_SMALL);
        timelineSwitchOnButton.setIconLeftCSS("o_icon o_icon-sm o_icon_toggle_on");
        timelineSwitchOnButton.setElementCssClass("o_sel_timeline_on");
        timelineSwitchOffButton = uifactory.addFormLink("timeline.switch.off", formLayout, Link.BUTTON_SMALL);
        timelineSwitchOffButton.setIconLeftCSS("o_icon o_icon-sm o_icon_toggle_off");
        timelineSwitchOffButton.setElementCssClass("o_sel_timeline_off");
        doSwitchTimelineOn();
    } else {
        flc.contextPut("timelineSwitch", Boolean.FALSE);
    }
    FlexiTableColumnModel columnsModel = FlexiTableDataModelFactory.createFlexiTableColumnModel();
    columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(false, PageCols.key, "select-page"));
    columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(PageCols.title, "select-page", new PortfolioElementCellRenderer()));
    columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(PageCols.date, "select-page"));
    if (secCallback.canPageUserInfosStatus()) {
        columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(PageCols.viewerStatus, new SharedPageStatusCellRenderer(getTranslator())));
        columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(PageCols.pageStatus, new StatusCellRenderer(getTranslator())));
    } else {
        columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(PageCols.status, new StatusCellRenderer(getTranslator())));
    }
    columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(PageCols.publicationDate, "select-page"));
    columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(PageCols.categories, new CategoriesCellRenderer()));
    columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(false, PageCols.section, /*, "select-section"*/
    null));
    if (secCallback.canNewAssignment()) {
        columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel("table.header.up", PageCols.up.ordinal(), "up", new BooleanCellRenderer(new StaticFlexiCellRenderer(translate("up"), "up"), null)));
        columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel("table.header.down", PageCols.down.ordinal(), "down", new BooleanCellRenderer(new StaticFlexiCellRenderer(translate("down"), "down"), null)));
    }
    if (!secCallback.canNewAssignment()) {
        columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(PageCols.comment));
    }
    model = new PageListDataModel(columnsModel, getLocale());
    String mapperThumbnailUrl = registerCacheableMapper(ureq, "page-list", new PageImageMapper(model, portfolioService));
    tableEl = uifactory.addTableElement(getWindowControl(), "table", model, 20, false, getTranslator(), formLayout);
    if (portfolioV2Module.isEntriesListEnabled() && portfolioV2Module.isEntriesTableEnabled()) {
        tableEl.setAvailableRendererTypes(FlexiTableRendererType.custom, FlexiTableRendererType.classic);
    } else if (portfolioV2Module.isEntriesTableEnabled()) {
        tableEl.setAvailableRendererTypes(FlexiTableRendererType.classic);
    } else {
        tableEl.setAvailableRendererTypes(FlexiTableRendererType.custom);
    }
    tableEl.setSearchEnabled(portfolioV2Module.isEntriesSearchEnabled());
    tableEl.setCustomizeColumns(true);
    tableEl.setElementCssClass("o_binder_page_listing");
    tableEl.setEmtpyTableMessageKey("table.sEmptyTable");
    tableEl.setPageSize(24);
    // sets its own DOM id in velocity container
    rowVC.setDomReplacementWrapperRequired(false);
    rowVC.contextPut("mapperThumbnailUrl", mapperThumbnailUrl);
    tableEl.setRowRenderer(rowVC, this);
    tableEl.setCssDelegate(new DefaultFlexiTableCssDelegate());
    tableEl.setAndLoadPersistedPreferences(ureq, "page-list");
    FlexiTableRendererType renderType = portfolioV2Module.isEntriesListEnabled() ? FlexiTableRendererType.custom : FlexiTableRendererType.classic;
    tableEl.setRendererType(renderType);
}
Also used : PortfolioElementCellRenderer(org.olat.modules.portfolio.ui.renderer.PortfolioElementCellRenderer) FlexiTableRendererType(org.olat.core.gui.components.form.flexible.impl.elements.table.FlexiTableRendererType) DefaultFlexiTableCssDelegate(org.olat.core.gui.components.form.flexible.impl.elements.table.DefaultFlexiTableCssDelegate) StatusCellRenderer(org.olat.modules.portfolio.ui.renderer.StatusCellRenderer) SharedPageStatusCellRenderer(org.olat.modules.portfolio.ui.renderer.SharedPageStatusCellRenderer) TimelineElement(org.olat.modules.portfolio.ui.component.TimelineElement) StaticFlexiCellRenderer(org.olat.core.gui.components.form.flexible.impl.elements.table.StaticFlexiCellRenderer) SharedPageStatusCellRenderer(org.olat.modules.portfolio.ui.renderer.SharedPageStatusCellRenderer) BooleanCellRenderer(org.olat.core.gui.components.form.flexible.impl.elements.table.BooleanCellRenderer) FlexiTableColumnModel(org.olat.core.gui.components.form.flexible.impl.elements.table.FlexiTableColumnModel) CategoriesCellRenderer(org.olat.modules.portfolio.ui.component.CategoriesCellRenderer) DefaultFlexiColumnModel(org.olat.core.gui.components.form.flexible.impl.elements.table.DefaultFlexiColumnModel)

Example 2 with SharedPageStatusCellRenderer

use of org.olat.modules.portfolio.ui.renderer.SharedPageStatusCellRenderer in project OpenOLAT by OpenOLAT.

the class TableOfContentController method loadPagesModel.

private void loadPagesModel(Map<Long, SectionRow> sectionMap) {
    boolean showUserInfos = secCallback.canPageUserInfosStatus();
    mainVC.contextPut("userInfos", Boolean.valueOf(showUserInfos));
    Map<Long, PageUserInformations> userInfosToPages = new HashMap<>();
    if (showUserInfos) {
        List<PageUserInformations> userInfos = portfolioService.getPageUserInfos(binder, getIdentity());
        for (PageUserInformations userInfo : userInfos) {
            userInfosToPages.put(userInfo.getPage().getKey(), userInfo);
        }
        mainVC.contextPut("userInfosRenderer", new SharedPageStatusCellRenderer(getTranslator()));
    }
    Map<Long, Long> numberOfCommentsMap = portfolioService.getNumberOfComments(binder);
    List<Page> pages = portfolioService.getPages(binder, null);
    for (Page page : pages) {
        Section section = page.getSection();
        if (section != null && sectionMap.containsKey(section.getKey())) {
            boolean viewElement = secCallback.canViewElement(page);
            boolean viewTitleElement = secCallback.canViewTitleOfElement(page);
            if (viewElement || viewTitleElement) {
                SectionRow sectionRow = sectionMap.get(section.getKey());
                PageRow pageRow = forgePageRow(page, numberOfCommentsMap, viewElement);
                sectionRow.getPages().add(pageRow);
                if (showUserInfos) {
                    PageUserInformations userInfos = userInfosToPages.get(pageRow.getPage().getKey());
                    if (userInfos != null) {
                        pageRow.setUserInfosStatus(userInfos.getStatus());
                    }
                }
            }
        }
    }
}
Also used : HashMap(java.util.HashMap) Page(org.olat.modules.portfolio.Page) AssessmentSection(org.olat.modules.portfolio.AssessmentSection) Section(org.olat.modules.portfolio.Section) SharedPageStatusCellRenderer(org.olat.modules.portfolio.ui.renderer.SharedPageStatusCellRenderer) PageUserInformations(org.olat.modules.portfolio.PageUserInformations)

Example 3 with SharedPageStatusCellRenderer

use of org.olat.modules.portfolio.ui.renderer.SharedPageStatusCellRenderer in project openolat by klemens.

the class TableOfContentController method loadPagesModel.

private void loadPagesModel(Map<Long, SectionRow> sectionMap) {
    boolean showUserInfos = secCallback.canPageUserInfosStatus();
    mainVC.contextPut("userInfos", Boolean.valueOf(showUserInfos));
    Map<Long, PageUserInformations> userInfosToPages = new HashMap<>();
    if (showUserInfos) {
        List<PageUserInformations> userInfos = portfolioService.getPageUserInfos(binder, getIdentity());
        for (PageUserInformations userInfo : userInfos) {
            userInfosToPages.put(userInfo.getPage().getKey(), userInfo);
        }
        mainVC.contextPut("userInfosRenderer", new SharedPageStatusCellRenderer(getTranslator()));
    }
    Map<Long, Long> numberOfCommentsMap = portfolioService.getNumberOfComments(binder);
    List<Page> pages = portfolioService.getPages(binder, null);
    for (Page page : pages) {
        Section section = page.getSection();
        if (section != null && sectionMap.containsKey(section.getKey())) {
            boolean viewElement = secCallback.canViewElement(page);
            boolean viewTitleElement = secCallback.canViewTitleOfElement(page);
            if (viewElement || viewTitleElement) {
                SectionRow sectionRow = sectionMap.get(section.getKey());
                PageRow pageRow = forgePageRow(page, numberOfCommentsMap, viewElement);
                sectionRow.getPages().add(pageRow);
                if (showUserInfos) {
                    PageUserInformations userInfos = userInfosToPages.get(pageRow.getPage().getKey());
                    if (userInfos != null) {
                        pageRow.setUserInfosStatus(userInfos.getStatus());
                    }
                }
            }
        }
    }
}
Also used : HashMap(java.util.HashMap) Page(org.olat.modules.portfolio.Page) AssessmentSection(org.olat.modules.portfolio.AssessmentSection) Section(org.olat.modules.portfolio.Section) SharedPageStatusCellRenderer(org.olat.modules.portfolio.ui.renderer.SharedPageStatusCellRenderer) PageUserInformations(org.olat.modules.portfolio.PageUserInformations)

Example 4 with SharedPageStatusCellRenderer

use of org.olat.modules.portfolio.ui.renderer.SharedPageStatusCellRenderer in project openolat by klemens.

the class SharedPagesController method initForm.

@Override
protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {
    FlexiTableColumnModel columnsModel = FlexiTableDataModelFactory.createFlexiTableColumnModel();
    columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(SharePageCols.bookmark));
    columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(SharePageCols.userInfosStatus, new SharedPageStatusCellRenderer(getTranslator())));
    FlexiCellRenderer titleRenderer = new BooleanCellRenderer(new StaticFlexiCellRenderer("select", new PageTitleCellRenderer()), new PageTitleCellRenderer());
    columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(true, true, "select", SharePageCols.pageName.ordinal(), "select", true, SharePageCols.pageName.sortKey(), FlexiColumnModel.ALIGNMENT_LEFT, titleRenderer));
    SortKey defaultSortKey = null;
    if (isAdministrativeUser) {
        columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(ShareItemCols.username));
        defaultSortKey = new SortKey(Cols.username.name(), true);
    }
    // followed by the users fields
    int colPos = USER_PROPS_OFFSET;
    for (int i = 0; i < userPropertyHandlers.size(); i++) {
        UserPropertyHandler userPropertyHandler = userPropertyHandlers.get(i);
        String propName = userPropertyHandler.getName();
        if (defaultSortKey == null && i == 0) {
            defaultSortKey = new SortKey(propName, true);
        } else if (UserConstants.LASTNAME.equals(propName) && !isAdministrativeUser) {
            defaultSortKey = new SortKey(propName, true);
        }
        boolean visible = userManager.isMandatoryUserProperty(USER_PROPS_ID, userPropertyHandler);
        columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(visible, userPropertyHandler.i18nColumnDescriptorLabelKey(), colPos, true, propName));
        colPos++;
    }
    columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(SharePageCols.lastChanges));
    columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(SharePageCols.pageStatus, new StatusCellRenderer(getTranslator())));
    model = new SharedPagesDataModel(columnsModel, getLocale());
    tableEl = uifactory.addTableElement(getWindowControl(), "table", model, 20, false, getTranslator(), formLayout);
    tableEl.setSearchEnabled(true);
    tableEl.setCustomizeColumns(true);
    tableEl.setElementCssClass("o_binder_shared_bookmark_pages_listing");
    tableEl.setEmtpyTableMessageKey("table.sEmptyTable");
    tableEl.setPageSize(24);
    tableEl.setAndLoadPersistedPreferences(ureq, "shared-bookmark-pages");
    if (filters != null && !filters.isEmpty()) {
        List<FlexiTableFilter> tableFilters = new ArrayList<>(filters.size());
        for (PageStatus status : filters) {
            String label = translate(status.i18nKey());
            tableFilters.add(new FlexiTableFilter(label, status.name(), "o_icon ".concat(status.cssClass())));
        }
        tableFilters.add(FlexiTableFilter.SPACER);
        tableFilters.add(new FlexiTableFilter(translate("filter.show.all"), "all", true));
        tableEl.setFilters("Filters", tableFilters, true);
        if (defaultFilter != null) {
            tableEl.setSelectedFilterKey(defaultFilter.name());
        }
    }
}
Also used : PageStatus(org.olat.modules.portfolio.PageStatus) StaticFlexiCellRenderer(org.olat.core.gui.components.form.flexible.impl.elements.table.StaticFlexiCellRenderer) FlexiCellRenderer(org.olat.core.gui.components.form.flexible.impl.elements.table.FlexiCellRenderer) PageTitleCellRenderer(org.olat.modules.portfolio.ui.renderer.PageTitleCellRenderer) ArrayList(java.util.ArrayList) StatusCellRenderer(org.olat.modules.portfolio.ui.renderer.StatusCellRenderer) SharedPageStatusCellRenderer(org.olat.modules.portfolio.ui.renderer.SharedPageStatusCellRenderer) SortKey(org.olat.core.commons.persistence.SortKey) StaticFlexiCellRenderer(org.olat.core.gui.components.form.flexible.impl.elements.table.StaticFlexiCellRenderer) SharedPageStatusCellRenderer(org.olat.modules.portfolio.ui.renderer.SharedPageStatusCellRenderer) BooleanCellRenderer(org.olat.core.gui.components.form.flexible.impl.elements.table.BooleanCellRenderer) FlexiTableFilter(org.olat.core.gui.components.form.flexible.elements.FlexiTableFilter) FlexiTableColumnModel(org.olat.core.gui.components.form.flexible.impl.elements.table.FlexiTableColumnModel) DefaultFlexiColumnModel(org.olat.core.gui.components.form.flexible.impl.elements.table.DefaultFlexiColumnModel) UserPropertyHandler(org.olat.user.propertyhandlers.UserPropertyHandler)

Example 5 with SharedPageStatusCellRenderer

use of org.olat.modules.portfolio.ui.renderer.SharedPageStatusCellRenderer in project OpenOLAT by OpenOLAT.

the class BinderPageListController method loadModel.

@Override
protected void loadModel(UserRequest ureq, String searchString) {
    if (StringHelper.containsNonWhitespace(binder.getSummary())) {
        summaryComp.setText(binder.getSummary());
        flc.getFormItemComponent().put("summary", summaryCtrl.getInitialComponent());
    } else {
        flc.getFormItemComponent().remove("summary");
    }
    List<Section> sections = portfolioService.getSections(binder);
    List<CategoryToElement> categorizedElements = portfolioService.getCategorizedSectionsAndPages(binder);
    Map<OLATResourceable, List<Category>> categorizedElementMap = new HashMap<>();
    Map<Section, Set<String>> sectionAggregatedCategoriesMap = new HashMap<>();
    for (CategoryToElement categorizedElement : categorizedElements) {
        List<Category> categories = categorizedElementMap.get(categorizedElement.getCategorizedResource());
        if (categories == null) {
            categories = new ArrayList<>();
            categorizedElementMap.put(categorizedElement.getCategorizedResource(), categories);
        }
        categories.add(categorizedElement.getCategory());
    }
    // comments
    Map<Long, Long> numberOfCommentsMap = portfolioService.getNumberOfComments(binder);
    // assessment sections
    List<AssessmentSection> assessmentSections = portfolioService.getAssessmentSections(binder, getIdentity());
    Map<Section, AssessmentSection> sectionToAssessmentSectionMap = assessmentSections.stream().collect(Collectors.toMap(as -> as.getSection(), as -> as));
    List<PortfolioElementRow> rows = new ArrayList<>();
    // assignments
    List<Assignment> assignments = portfolioService.getAssignments(binder, searchString);
    Map<Section, List<Assignment>> sectionToAssignmentMap = new HashMap<>();
    for (Assignment assignment : assignments) {
        List<Assignment> assignmentList;
        Section section = assignment.getSection();
        if (sectionToAssignmentMap.containsKey(section)) {
            assignmentList = sectionToAssignmentMap.get(section);
        } else {
            assignmentList = new ArrayList<>();
            sectionToAssignmentMap.put(section, assignmentList);
        }
        assignmentList.add(assignment);
    }
    for (Assignment assignment : assignments) {
        Section section = assignment.getSection();
        if (assignment.getPage() == null && secCallback.canViewPendingAssignments(section)) {
            List<Assignment> sectionAssignments = sectionToAssignmentMap.get(section);
            PortfolioElementRow row = forgePendingAssignmentRow(assignment, section, sectionAssignments);
            rows.add(row);
            if (secCallback.canAddPage(section)) {
                FormLink newEntryButton = uifactory.addFormLink("new.entry." + (++counter), "new.entry", "create.new.page", null, flc, Link.BUTTON);
                newEntryButton.setCustomEnabledLinkCSS("btn btn-primary o_sel_pf_new_entry");
                newEntryButton.setUserObject(row);
                row.setNewEntryLink(newEntryButton);
            }
        }
    }
    boolean userInfos = secCallback.canPageUserInfosStatus();
    Map<Long, PageUserInformations> userInfosToPage = new HashMap<>();
    rowVC.contextPut("userInfos", Boolean.valueOf(userInfos));
    if (userInfos) {
        rowVC.contextPut("userInfosRenderer", new SharedPageStatusCellRenderer(getTranslator()));
        List<PageUserInformations> userInfoList = portfolioService.getPageUserInfos(binder, getIdentity());
        for (PageUserInformations userInfo : userInfoList) {
            userInfosToPage.put(userInfo.getPage().getKey(), userInfo);
        }
    }
    List<Page> pages = portfolioService.getPages(binder, searchString);
    for (Page page : pages) {
        boolean viewElement = secCallback.canViewElement(page);
        boolean viewTitleElement = viewElement || secCallback.canViewTitleOfElement(page);
        if (!viewTitleElement) {
            continue;
        }
        Section section = page.getSection();
        PortfolioElementRow pageRow = forgePageRow(ureq, page, sectionToAssessmentSectionMap.get(section), sectionToAssignmentMap.get(section), categorizedElementMap, numberOfCommentsMap, viewElement);
        rows.add(pageRow);
        if (secCallback.canAddPage(section)) {
            FormLink newEntryButton = uifactory.addFormLink("new.entry." + (++counter), "new.entry", "create.new.page", null, flc, Link.BUTTON);
            newEntryButton.setCustomEnabledLinkCSS("btn btn-primary o_sel_pf_new_entry");
            newEntryButton.setUserObject(pageRow);
            pageRow.setNewEntryLink(newEntryButton);
        }
        if (secCallback.canNewAssignment() && section != null) {
            FormLink newAssignmentButton = uifactory.addFormLink("new.assignment." + (++counter), "new.assignment", "create.new.assignment", null, flc, Link.BUTTON);
            newAssignmentButton.setCustomEnabledLinkCSS("btn btn-primary o_sel_pf_new_assignment");
            newAssignmentButton.setUserObject(pageRow);
            pageRow.setNewAssignmentLink(newAssignmentButton);
        }
        if (userInfos) {
            PageUserInformations infos = userInfosToPage.get(page.getKey());
            if (infos != null) {
                pageRow.setUserInfosStatus(infos.getStatus());
            }
        }
        if (section != null) {
            Set<String> categories = sectionAggregatedCategoriesMap.get(section);
            if (categories == null) {
                categories = new HashSet<>();
                sectionAggregatedCategoriesMap.put(section, categories);
            }
            if (pageRow.getPageCategories() != null && pageRow.getPageCategories().size() > 0) {
                categories.addAll(pageRow.getPageCategories());
            }
            pageRow.setSectionCategories(categories);
        }
    }
    // sections without pages
    if (!StringHelper.containsNonWhitespace(searchString)) {
        for (Section section : sections) {
            if (!secCallback.canViewElement(section)) {
                continue;
            }
            PortfolioElementRow sectionRow = forgeSectionRow(section, sectionToAssessmentSectionMap.get(section), sectionToAssignmentMap.get(section), categorizedElementMap);
            rows.add(sectionRow);
            if (secCallback.canAddPage(section)) {
                FormLink newEntryButton = uifactory.addFormLink("new.entry." + (++counter), "new.entry", "create.new.page", null, flc, Link.BUTTON);
                newEntryButton.setCustomEnabledLinkCSS("btn btn-primary o_sel_pf_new_entry");
                newEntryButton.setUserObject(sectionRow);
                sectionRow.setNewEntryLink(newEntryButton);
            }
            if (secCallback.canNewAssignment() && section != null) {
                FormLink newAssignmentButton = uifactory.addFormLink("new.assignment." + (++counter), "new.assignment", "create.new.assignment", null, flc, Link.BUTTON);
                newAssignmentButton.setCustomEnabledLinkCSS("btn btn-primary o_sel_pf_new_assignment");
                newAssignmentButton.setUserObject(sectionRow);
                sectionRow.setNewAssignmentLink(newAssignmentButton);
            }
        }
    }
    if (newSectionButton != null && rows.isEmpty()) {
        flc.add("create.new.section", newSectionButton);
    } else if (newSectionButton != null) {
        flc.remove(newSectionButton);
    }
    if (newEntryLink != null && !newEntryLink.isVisible()) {
        newEntryLink.setVisible(rows.size() > 0);
        stackPanel.setDirty(true);
    }
    if (newAssignmentLink != null && !newAssignmentLink.isVisible()) {
        newAssignmentLink.setVisible(rows.size() > 0);
        stackPanel.setDirty(true);
    }
    // clean up the posters
    disposeRows();
    model.setObjects(rows);
    if (filteringSection != null) {
        doFilterSection(filteringSection);
    } else {
        tableEl.reloadData();
        updateTimeline();
    }
}
Also used : Autowired(org.springframework.beans.factory.annotation.Autowired) PageUserInformations(org.olat.modules.portfolio.PageUserInformations) TextFactory(org.olat.core.gui.components.text.TextFactory) MediaResource(org.olat.core.gui.media.MediaResource) OLATResourceable(org.olat.core.id.OLATResourceable) BinderConfiguration(org.olat.modules.portfolio.BinderConfiguration) Category(org.olat.modules.portfolio.Category) Assignment(org.olat.modules.portfolio.Assignment) Map(java.util.Map) SortKey(org.olat.core.commons.persistence.SortKey) CategoryToElement(org.olat.modules.portfolio.CategoryToElement) CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) LayoutMain3ColsController(org.olat.core.commons.fullWebApp.LayoutMain3ColsController) Page(org.olat.modules.portfolio.Page) AssessmentSection(org.olat.modules.portfolio.AssessmentSection) TimelinePoint(org.olat.modules.portfolio.ui.component.TimelinePoint) Dropdown(org.olat.core.gui.components.dropdown.Dropdown) WindowControl(org.olat.core.gui.control.WindowControl) FlexiTableRendererType(org.olat.core.gui.components.form.flexible.impl.elements.table.FlexiTableRendererType) Set(java.util.Set) Component(org.olat.core.gui.components.Component) LinkFactory(org.olat.core.gui.components.link.LinkFactory) Collectors(java.util.stream.Collectors) SelectionEvent(org.olat.core.gui.components.form.flexible.impl.elements.table.SelectionEvent) List(java.util.List) ExportBinderAsCPResource(org.olat.modules.portfolio.ui.export.ExportBinderAsCPResource) FormLink(org.olat.core.gui.components.form.flexible.elements.FormLink) Align(org.olat.core.gui.components.stack.TooledStackedPanel.Align) Identity(org.olat.core.id.Identity) SharedPageStatusCellRenderer(org.olat.modules.portfolio.ui.renderer.SharedPageStatusCellRenderer) LinkPopupSettings(org.olat.core.gui.components.link.LinkPopupSettings) ExtendedMediaRenderingHints(org.olat.modules.portfolio.model.ExtendedMediaRenderingHints) FormLayoutContainer(org.olat.core.gui.components.form.flexible.impl.FormLayoutContainer) TooledStackedPanel(org.olat.core.gui.components.stack.TooledStackedPanel) Section(org.olat.modules.portfolio.Section) FormEvent(org.olat.core.gui.components.form.flexible.impl.FormEvent) HashMap(java.util.HashMap) PortfolioElementRow(org.olat.modules.portfolio.ui.model.PortfolioElementRow) FormItem(org.olat.core.gui.components.form.flexible.FormItem) ArrayList(java.util.ArrayList) HashSet(java.util.HashSet) Event(org.olat.core.gui.control.Event) TextComponent(org.olat.core.gui.components.text.TextComponent) FormItemContainer(org.olat.core.gui.components.form.flexible.FormItemContainer) ContextEntry(org.olat.core.id.context.ContextEntry) ExportBinderAsPDFResource(org.olat.modules.portfolio.ui.export.ExportBinderAsPDFResource) StringHelper(org.olat.core.util.StringHelper) StateEntry(org.olat.core.id.context.StateEntry) BinderSecurityCallback(org.olat.modules.portfolio.BinderSecurityCallback) FlexiTableRenderEvent(org.olat.core.gui.components.form.flexible.impl.elements.table.FlexiTableRenderEvent) Link(org.olat.core.gui.components.link.Link) Controller(org.olat.core.gui.control.Controller) CodeHelper(org.olat.core.util.CodeHelper) ControllerCreator(org.olat.core.gui.control.creator.ControllerCreator) UserManager(org.olat.user.UserManager) BaseFullWebappPopupLayoutFactory(org.olat.core.commons.fullWebApp.popup.BaseFullWebappPopupLayoutFactory) ToggleBoxController(org.olat.core.gui.control.generic.spacesaver.ToggleBoxController) FlexiTableSortOptions(org.olat.core.gui.components.form.flexible.elements.FlexiTableSortOptions) PortfolioRoles(org.olat.modules.portfolio.PortfolioRoles) UserRequest(org.olat.core.gui.UserRequest) Binder(org.olat.modules.portfolio.Binder) PortfolioElementRow(org.olat.modules.portfolio.ui.model.PortfolioElementRow) Set(java.util.Set) HashSet(java.util.HashSet) Category(org.olat.modules.portfolio.Category) OLATResourceable(org.olat.core.id.OLATResourceable) HashMap(java.util.HashMap) ArrayList(java.util.ArrayList) Page(org.olat.modules.portfolio.Page) Assignment(org.olat.modules.portfolio.Assignment) SharedPageStatusCellRenderer(org.olat.modules.portfolio.ui.renderer.SharedPageStatusCellRenderer) List(java.util.List) ArrayList(java.util.ArrayList) CategoryToElement(org.olat.modules.portfolio.CategoryToElement) FormLink(org.olat.core.gui.components.form.flexible.elements.FormLink) AssessmentSection(org.olat.modules.portfolio.AssessmentSection) Section(org.olat.modules.portfolio.Section) PageUserInformations(org.olat.modules.portfolio.PageUserInformations) AssessmentSection(org.olat.modules.portfolio.AssessmentSection)

Aggregations

SharedPageStatusCellRenderer (org.olat.modules.portfolio.ui.renderer.SharedPageStatusCellRenderer)8 ArrayList (java.util.ArrayList)4 HashMap (java.util.HashMap)4 SortKey (org.olat.core.commons.persistence.SortKey)4 BooleanCellRenderer (org.olat.core.gui.components.form.flexible.impl.elements.table.BooleanCellRenderer)4 DefaultFlexiColumnModel (org.olat.core.gui.components.form.flexible.impl.elements.table.DefaultFlexiColumnModel)4 FlexiTableColumnModel (org.olat.core.gui.components.form.flexible.impl.elements.table.FlexiTableColumnModel)4 FlexiTableRendererType (org.olat.core.gui.components.form.flexible.impl.elements.table.FlexiTableRendererType)4 StaticFlexiCellRenderer (org.olat.core.gui.components.form.flexible.impl.elements.table.StaticFlexiCellRenderer)4 HashSet (java.util.HashSet)2 List (java.util.List)2 Map (java.util.Map)2 Set (java.util.Set)2 Collectors (java.util.stream.Collectors)2 LayoutMain3ColsController (org.olat.core.commons.fullWebApp.LayoutMain3ColsController)2 BaseFullWebappPopupLayoutFactory (org.olat.core.commons.fullWebApp.popup.BaseFullWebappPopupLayoutFactory)2 UserRequest (org.olat.core.gui.UserRequest)2 Component (org.olat.core.gui.components.Component)2 Dropdown (org.olat.core.gui.components.dropdown.Dropdown)2 FormItem (org.olat.core.gui.components.form.flexible.FormItem)2