public interface FriendlyService
Modifier and Type | Method and Description |
---|---|
void |
addConfiguration(org.exoplatform.services.wcm.friendly.impl.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.
|
String getServletName()
boolean isEnabled()
void addConfiguration(org.exoplatform.services.wcm.friendly.impl.FriendlyPlugin plugin)
plugin
- The Friendly plugin.String getFriendlyUri(String unfriendlyUri)
unfriendlyUri
- The current unfriendly URI.String getUnfriendlyUri(String friendlyUri)
friendlyUri
- The current friendly URI.void addFriendly(String friendlyUri, String unfriendlyUri)
friendlyUri
- The friendly URI.unfriendlyUri
- The unfriendly URI.void removeFriendly(String friendlyUri)
friendlyUri
- The friendly URI.Copyright © 2003-2017 eXo Platform SAS. All Rights Reserved.