Class SpaceHomepageProxyManager
- java.lang.Object
-
- org.silverpeas.core.web.look.proxy.SpaceHomepageProxyManager
-
@RequestScoped public class SpaceHomepageProxyManager extends Object
The space homepage proxy allows to set aSpaceHomepageProxy
into context of a request.The method
getProxyOf(SpaceInst)
allows to get the instance ofSpaceHomepageProxy
which allows to override the space homepage displaying.If nothing has been specifically set into provided
SpaceHomepageProxy
, then default space homepage behavior is performed.This manager is request scoped, but it is able to retrieve proxy specifications on a request redirecting by using
setParameterForUrlRedirect(String)
before perform the redirection.- Author:
- silveryocha
-
-
Constructor Summary
Constructors Constructor Description SpaceHomepageProxyManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SpaceHomepageProxyManager
get()
SpaceHomepageProxy
getProxyBySpaceId(String spaceId)
Gets aSpaceHomepageProxy
instance linked to given space.SpaceHomepageProxy
getProxyOf(SpaceInst space)
Gets aSpaceHomepageProxy
instance linked to given space.String
setParameterForUrlRedirect(String url)
Sets on the given URL a parameter that permits to retrieve the proxy specification on request redirect.
-
-
-
Method Detail
-
get
public static SpaceHomepageProxyManager get()
-
setParameterForUrlRedirect
public String setParameterForUrlRedirect(String url)
Sets on the given URL a parameter that permits to retrieve the proxy specification on request redirect.- Parameters:
url
- a string url to handle.- Returns:
- the completed url if proxy is effective.
-
getProxyBySpaceId
public SpaceHomepageProxy getProxyBySpaceId(String spaceId)
Gets aSpaceHomepageProxy
instance linked to given space.- Parameters:
spaceId
- a string representing the identifier of the aimed space.- Returns:
- a
SpaceHomepageProxy
instance.
-
getProxyOf
public SpaceHomepageProxy getProxyOf(SpaceInst space)
Gets aSpaceHomepageProxy
instance linked to given space.- Parameters:
space
- theSpaceInst
of aimed space.- Returns:
- a
SpaceHomepageProxy
instance.
-
-