|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hippoecm.hst.site.request.ResolvedMountImpl
public class ResolvedMountImpl
Constructor Summary | |
---|---|
ResolvedMountImpl(Mount mount,
ResolvedVirtualHost resolvedVirtualHost,
String resolvedMountPath,
String matchingIgnoredPrefix)
|
Method Summary | |
---|---|
String |
getFormLoginPage()
Returns FORM Login Page |
String |
getMatchingIgnoredPrefix()
Expert: In most circumstance, this ResolvedMount.getMatchingIgnoredPrefix() will return null . |
Mount |
getMount()
|
String |
getNamedPipeline()
|
String |
getResolvedMountPath()
Returns the mountPath from the backing Mount where possible wildcard values might have been replaced. |
ResolvedVirtualHost |
getResolvedVirtualHost()
|
Set<String> |
getRoles()
Returns the roles that are allowed to access this Mount when ResolvedMount.isAuthenticated() is true. |
Set<String> |
getUsers()
Returns the users that are allowed to access this Mount when ResolvedMount.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 |
void |
setMount(Mount mount)
Sets the backing Mount behind the ResolvedMount to the new mount . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResolvedMountImpl(Mount mount, ResolvedVirtualHost resolvedVirtualHost, String resolvedMountPath, String matchingIgnoredPrefix)
Method Detail |
---|
public Mount getMount()
getMount
in interface ResolvedMount
Mount
item for this ResolvedMount
instancepublic void setMount(Mount mount)
MutableResolvedMount
Mount
behind the ResolvedMount
to the new mount
. This is useful
to for example decorate a Mount
: For example, to decorate a Mount
representing a live environment
in such a way that it shows the preview.
setMount
in interface MutableResolvedMount
public ResolvedVirtualHost getResolvedVirtualHost()
getResolvedVirtualHost
in interface ResolvedMount
ResolvedVirtualHost
for this ResolvedMount
public String getResolvedMountPath()
ResolvedMount
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 "/"
.
getResolvedMountPath
in interface ResolvedMount
ResolvedMount
Mount.getMountPath()
public String getMatchingIgnoredPrefix()
ResolvedMount
ResolvedMount.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.
getMatchingIgnoredPrefix
in interface ResolvedMount
null
if there wasn't a ignored prefixpublic String getNamedPipeline()
getNamedPipeline
in interface ResolvedMount
Mount
or null
when the default pipeline is to be usedpublic ResolvedSiteMapItem matchSiteMapItem(String siteMapPathInfo) throws MatchException
ResolvedMount
ResolvedSiteMapItem
item or throws a
MatchException
or NotFoundException
when cannot resolve to a sitemap item
matchSiteMapItem
in interface ResolvedMount
MatchException
public boolean isAuthenticated()
ResolvedMount
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.
isAuthenticated
in interface ResolvedMount
true
if the Mount is authenticated.public Set<String> getRoles()
ResolvedMount
ResolvedMount.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 ResolvedMount.isAuthenticated()
return true
means nobody has access to the item
getRoles
in interface ResolvedMount
public Set<String> getUsers()
ResolvedMount
ResolvedMount.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 ResolvedMount.isAuthenticated()
return true
means nobody has access to the item
getUsers
in interface ResolvedMount
public boolean isSubjectBasedSession()
ResolvedMount
isSubjectBasedSession
in interface ResolvedMount
public boolean isSessionStateful()
ResolvedMount
isSessionStateful
in interface ResolvedMount
public String getFormLoginPage()
ResolvedMount
getFormLoginPage
in interface ResolvedMount
true
if the Mount is authenticated.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |