Package org.javlo.service
Class ReverseLinkService
- java.lang.Object
-
- org.javlo.service.ReverseLinkService
-
public class ReverseLinkService extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
ALL
static List<String>
LINK_TYPES
static String
NONE
static String
ONLY_FIRST
static String
ONLY_PREVIOUS_COMPONENT
static String
ONLY_THIS_PAGE
-
Constructor Summary
Constructors Constructor Description ReverseLinkService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearCache()
List<String>
getAllTextName(ContentContext ctx, MenuElement elem)
Map<String,String>
getDefinitions(ContentContext ctx)
static ReverseLinkService
getInstance(GlobalContext globalContext)
Map<String,MenuElement>
getReversedLinkCache(MenuElement elem)
static void
main(String[] args)
String
replaceLink(ContentContext ctx, IContentVisualComponent comp, String contentValue)
-
-
-
Field Detail
-
NONE
public static final String NONE
- See Also:
- Constant Field Values
-
ONLY_FIRST
public static final String ONLY_FIRST
- See Also:
- Constant Field Values
-
ONLY_THIS_PAGE
public static final String ONLY_THIS_PAGE
- See Also:
- Constant Field Values
-
ONLY_PREVIOUS_COMPONENT
public static final String ONLY_PREVIOUS_COMPONENT
- See Also:
- Constant Field Values
-
ALL
public static final String ALL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static ReverseLinkService getInstance(GlobalContext globalContext) throws ServiceException
- Throws:
ServiceException
-
main
public static void main(String[] args)
-
clearCache
public void clearCache()
-
getAllTextName
public List<String> getAllTextName(ContentContext ctx, MenuElement elem) throws Exception
- Throws:
Exception
-
getReversedLinkCache
public Map<String,MenuElement> getReversedLinkCache(MenuElement elem) throws Exception
- Throws:
Exception
-
getDefinitions
public Map<String,String> getDefinitions(ContentContext ctx) throws Exception
- Throws:
Exception
-
replaceLink
public String replaceLink(ContentContext ctx, IContentVisualComponent comp, String contentValue) throws Exception
- Throws:
Exception
-
-