info.magnolia.module.blossom.view
Class UuidRedirectViewResolver
java.lang.Object
info.magnolia.module.blossom.view.UuidRedirectViewResolver
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean, org.springframework.core.Ordered, org.springframework.web.servlet.ViewResolver
public class UuidRedirectViewResolver
- extends Object
- implements org.springframework.web.servlet.ViewResolver, org.springframework.core.Ordered, org.springframework.beans.factory.InitializingBean
Adds support for redirects based on uuids. By default supports the formats "website:uuid" and "dms:uuid" for sending
redirects for the website and dms workspaces. The prefixes and the workspaces they map to are configurable and
can be changed to support more workspaces.
- Since:
- 1.2
- See Also:
UuidRedirectView
Fields inherited from interface org.springframework.core.Ordered |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REDIRECT_MAIN_CONTENT_PLACEHOLDER
public static final String REDIRECT_MAIN_CONTENT_PLACEHOLDER
- See Also:
- Constant Field Values
REDIRECT_CURRENT_CONTENT_PLACEHOLDER
public static final String REDIRECT_CURRENT_CONTENT_PLACEHOLDER
- See Also:
- Constant Field Values
UuidRedirectViewResolver
public UuidRedirectViewResolver()
getOrder
public int getOrder()
- Specified by:
getOrder
in interface org.springframework.core.Ordered
setOrder
public void setOrder(int order)
getWorkspaces
public String[] getWorkspaces()
setWorkspaces
public void setWorkspaces(String[] workspaces)
setWorkspace
public void setWorkspace(String workspace)
getRepositories
@Deprecated
public String[] getRepositories()
- Deprecated.
setRepositories
@Deprecated
public void setRepositories(String[] repositories)
- Deprecated.
setRepository
@Deprecated
public void setRepository(String repository)
- Deprecated.
getPrefixes
public String[] getPrefixes()
setPrefixes
public void setPrefixes(String[] prefixes)
setPrefix
public void setPrefix(String prefix)
isHttp10Compatible
public boolean isHttp10Compatible()
setHttp10Compatible
public void setHttp10Compatible(boolean http10Compatible)
isExposeModelAttributes
public boolean isExposeModelAttributes()
setExposeModelAttributes
public void setExposeModelAttributes(boolean exposeModelAttributes)
resolveViewName
public org.springframework.web.servlet.View resolveViewName(String viewName,
Locale locale)
throws Exception
- Specified by:
resolveViewName
in interface org.springframework.web.servlet.ViewResolver
- Throws:
Exception
createView
protected org.springframework.web.servlet.View createView(javax.jcr.Node node)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
createView
protected org.springframework.web.servlet.View createView(String workspace,
String uuid)
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
Exception
Copyright © 2009-2014 Magnolia International Ltd.. All Rights Reserved.