@Service public class WebCmsMultiDomainAdminUiService extends Object
| Constructor and Description |
|---|
WebCmsMultiDomainAdminUiService() |
| Modifier and Type | Method and Description |
|---|---|
com.querydsl.core.types.Predicate |
applyVisibleDomainsPredicate(com.querydsl.core.types.Predicate predicate,
QWebCmsDomain domain)
Automatically append the domain binding predicate to an existing QueryDSL predicate.
|
Collection<WebCmsDomain> |
getAccessibleDomains(com.foreach.across.modules.spring.security.actions.AllowableAction... actions)
Returns all domains that the current principal can select.
|
WebCmsDomain |
getSelectedDomain()
Always returns the current domain, bound to the
WebCmsDomainContextHolder. |
Collection<WebCmsDomain> |
getVisibleDomains()
Returns the domains from which entities are currently selectable (visible domains).
|
com.querydsl.core.types.Predicate |
visibleDomainsPredicate(QWebCmsDomain domain)
Create a domain binding predicate for a QueryDSL path of a
WebCmsDomain property. |
public WebCmsDomain getSelectedDomain()
WebCmsDomainContextHolder.
This method will return a single domain only or none.public Collection<WebCmsDomain> getVisibleDomains()
null.null valuepublic Collection<WebCmsDomain> getAccessibleDomains(com.foreach.across.modules.spring.security.actions.AllowableAction... actions)
AllowableAction parameters that the principal should
have for that domain. Note that in case of multiple parameters, it is an OR construct: as soon as the user has
any of those actions allowed the domain will be included.
If no AllowableAction is specified, it will default to AllowableAction.READ.
If no-domain is allowed, will check if the user has the permissions to manage the WebCmsDomain type itself.public com.querydsl.core.types.Predicate visibleDomainsPredicate(QWebCmsDomain domain)
WebCmsDomain property.
This will check the multi-domain configuration and create a domain predicate if necessary.
This method can return a null value but should be safe to use with QueryDSL expression utils.domain - expression (property linked to the WebCmsDomain)nullpublic com.querydsl.core.types.Predicate applyVisibleDomainsPredicate(com.querydsl.core.types.Predicate predicate,
QWebCmsDomain domain)
predicate - to append the domain predicate todomain - representing the domain property for the expression objectCopyright © 2020. All rights reserved.