public interface ResolvedMount
Mount
object, where possible wildcard property placeholders have been filled in, similar
to the ResolvedSiteMapItem
and HstSiteMapItem
Modifier and Type | Method and Description |
---|---|
String |
getFormLoginPage()
Returns FORM Login Page
|
String |
getMatchingIgnoredPrefix()
Expert: In most circumstance, this
getMatchingIgnoredPrefix() will return null . |
Mount |
getMount() |
String |
getNamedPipeline() |
int |
getPortNumber() |
String |
getResolvedMountPath()
Returns the mountPath from the backing
Mount where possible wildcard values might have been replaced. |
ResolvedVirtualHost |
getResolvedVirtualHost()
Deprecated.
since 2.28.00 (CMS 7.9). Use
getMount() and then Mount.getVirtualHost()
to get the the virtualhost. This method is deprecated because in case of a preview decorated mount, via the
ResolvedVirtualHost you get to the undecorated hosts and mounts |
Set<String> |
getRoles()
Returns the roles that are allowed to access this Mount when
isAuthenticated() is true. |
Set<String> |
getUsers()
Returns the users that are allowed to access this Mount when
isAuthenticated() is true. |
boolean |
isAuthenticated()
If this method returns true, then only if the user is explicitly allowed or
servletRequest.isUserInRole(role) returns true this
Mount is accessible for the request. |
boolean |
isSessionStateful()
Returns true if subject based jcr session should be statefully managed.
|
boolean |
isSubjectBasedSession()
Returns true if subject based jcr session should be used for this Mount
|
ResolvedSiteMapItem |
matchSiteMapItem(String siteMapPathInfo)
matches a pathInfo to a
ResolvedSiteMapItem item or throws a
MatchException or NotFoundException when cannot resolve to a sitemap item |
@Deprecated ResolvedVirtualHost getResolvedVirtualHost()
getMount()
and then Mount.getVirtualHost()
to get the the virtualhost. This method is deprecated because in case of a preview decorated mount, via the
ResolvedVirtualHost
you get to the undecorated hosts and mountsResolvedVirtualHost
for this ResolvedMount
int getPortNumber()
ResolvedMount
Mount getMount()
Mount
item for this ResolvedMount
instanceString getNamedPipeline()
Mount
or null
when the default pipeline is to be usedString getResolvedMountPath()
Mount
where possible wildcard values might have been replaced. A root
Mount
returns an empty String
("").
When the mountPath is non-empty, it always starts with a "/"
.ResolvedMount
Mount.getMountPath()
String getMatchingIgnoredPrefix()
getMatchingIgnoredPrefix()
will return null
. Only when there
was a pathInfo prefix after the HttpServletRequest.getContextPath()
that should be ignored during matching the request to
a ResolvedMount
, this method returns the ignored prefix. The returned String must have leading and trailing slashes all removed.null
if there wasn't a ignored prefixResolvedSiteMapItem matchSiteMapItem(String siteMapPathInfo) throws MatchException
ResolvedSiteMapItem
item or throws a
MatchException
or NotFoundException
when cannot resolve to a sitemap itemsiteMapPathInfo
- MatchException
boolean isAuthenticated()
servletRequest.isUserInRole(role)
returns true
this
Mount is accessible for the request.
If a Mount does not have a configuration for authenticated, the value from the parent item is taken.true
if the Mount is authenticated.Set<String> getRoles()
isAuthenticated()
is true. If the Mount does not have any roles defined by itself, it
inherits them from the parent. If it defines roles, the roles from any ancestor are ignored. An empty set of roles
in combination with isAuthenticated()
return true
means nobody has access to the itemSet<String> getUsers()
isAuthenticated()
is true. If the Mount does not have any users defined by itself, it
inherits them from the parent. If it defines users, the users from any ancestor are ignored. An empty set of users
in combination with isAuthenticated()
return true
means nobody has access to the itemboolean isSubjectBasedSession()
boolean isSessionStateful()
String getFormLoginPage()
true
if the Mount is authenticated.Copyright © 2008–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.