Search in sources :

Example 11 with Presentations

use of com.haulmont.cuba.gui.presentations.Presentations in project cuba by cuba-platform.

the class PresentationActionsBuilder method isGlobalPresentation.

protected boolean isGlobalPresentation() {
    Presentations presentations = table.getPresentations();
    Presentation presentation = presentations.getCurrent();
    return presentation != null && (!presentations.isGlobal(presentation) || userSessionSource.getUserSession().isSpecificPermitted("cuba.gui.presentations.global"));
}
Also used : Presentation(com.haulmont.cuba.security.entity.Presentation) Presentations(com.haulmont.cuba.gui.presentations.Presentations)

Aggregations

Presentations (com.haulmont.cuba.gui.presentations.Presentations)11 Presentation (com.haulmont.cuba.security.entity.Presentation)6 Element (org.dom4j.Element)4 HasPresentations (com.haulmont.cuba.gui.components.HasPresentations)3 AbstractSearchFolder (com.haulmont.cuba.core.entity.AbstractSearchFolder)1 AppFolder (com.haulmont.cuba.core.entity.AppFolder)1 HasSettings (com.haulmont.cuba.gui.components.HasSettings)1 SearchFolder (com.haulmont.cuba.security.entity.SearchFolder)1 User (com.haulmont.cuba.security.entity.User)1 TablePresentations (com.haulmont.cuba.web.gui.components.presentations.TablePresentations)1 CubaMenuBar (com.haulmont.cuba.web.widgets.CubaMenuBar)1 Document (org.dom4j.Document)1