public class FriendlyServiceImpl extends Object implements FriendlyService
| Constructor and Description |
|---|
FriendlyServiceImpl(org.exoplatform.container.xml.InitParams initParams) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConfiguration(FriendlyPlugin plugin)
Allows to add configuration to the Friendly Service.
|
void |
addFriendly(String friendlyUri,
String unfriendlyUri)
Adds a new {friendly, unfriendly} couple.
|
Map<String,String> |
getFriendlies()
Gets all {friendly, unfriendly} entries.
|
String |
getFriendlyUri(String unfriendlyUri)
Gets the friendly URI corresponding to an unfriendly URI.
|
String |
getServletName()
Uses a servlet in the portal app to forward the friendly URL to its corresponding unfriendly one.
|
String |
getUnfriendlyUri(String friendlyUri)
Gets the unfriendly URI corresponding to a friendly URI.
|
boolean |
isEnabled()
Checks if the Friendly Service is active.
|
void |
removeFriendly(String friendlyUri)
Removes a friendly entry based on the friendly key.
|
void |
setEnabled(boolean isEnabled) |
void |
setServletName(String servletName) |
public FriendlyServiceImpl(org.exoplatform.container.xml.InitParams initParams)
public void addConfiguration(FriendlyPlugin plugin)
FriendlyServiceaddConfiguration in interface FriendlyServiceplugin - The Friendly plugin.public boolean isEnabled()
FriendlyServiceisEnabled in interface FriendlyServicepublic void setEnabled(boolean isEnabled)
public String getServletName()
FriendlyServicegetServletName in interface FriendlyServicepublic void setServletName(String servletName)
public void addFriendly(String friendlyUri, String unfriendlyUri)
FriendlyServiceaddFriendly in interface FriendlyServicefriendlyUri - The friendly URI.unfriendlyUri - The unfriendly URI.public String getFriendlyUri(String unfriendlyUri)
FriendlyServicegetFriendlyUri in interface FriendlyServiceunfriendlyUri - The current unfriendly URI.public String getUnfriendlyUri(String friendlyUri)
FriendlyServicegetUnfriendlyUri in interface FriendlyServicefriendlyUri - The current friendly URI.public void removeFriendly(String friendlyUri)
FriendlyServiceremoveFriendly in interface FriendlyServicefriendlyUri - The friendly URI.public Map<String,String> getFriendlies()
FriendlyServicegetFriendlies in interface FriendlyServiceCopyright © 2003–2019 eXo Platform SAS. All rights reserved.