Class WebEndpointManager
java.lang.Object
de.xima.fc.security.endpoint.WebEndpointManager
Manager for working with formcycle web endpoints.
- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<org.apache.commons.lang3.tuple.Pair<String, Collection<IPluginMenuEntry>>> static Set<IRewriteUriResolver> Returns all registered web endpoints with rewrite uri resolvers.static IWebEndpointgetWebEndpoint(javax.servlet.http.HttpServletRequest req) Get the web endpoint for the given requeststatic IWebEndpointgetWebEndpointById(String webEndpointId) Returns the web endpoint with the given ID if it is registered.static voidregisterPluginMenuEntries(String contextName, IPluginMenuEntries menuEntries, String clientUuid) static voidunregisterPluginMenuEntries(IPluginMenuEntries menuEntries)
-
Method Details
-
getRegisteredPluginMenuEntries
public static List<org.apache.commons.lang3.tuple.Pair<String, Collection<IPluginMenuEntry>>> getRegisteredPluginMenuEntries(Mandant client) -
getRewriteUriResolvers
Returns all registered web endpoints with rewrite uri resolvers. Web endpoints with rewrite uri resolvers perform request rewrites using theRewriteFilter.- Returns:
- all registered web endpoints with rewrite uri resolvers.
-
getWebEndpoint
Get the web endpoint for the given request- Parameters:
req- HTTP request from which the web endpoint is extracted.- Returns:
- The web endpoint requested by the given HTTP request.
-
getWebEndpointById
Returns the web endpoint with the given ID if it is registered.- Parameters:
webEndpointId- ID of the web endpoint to be returned.- Returns:
- The web endpoint with the given ID or
nullif no web endpoint with the given ID is registered. - Throws:
IllegalArgumentException- if no web endpoint ID is given.
-
registerPluginMenuEntries
public static void registerPluginMenuEntries(String contextName, IPluginMenuEntries menuEntries, String clientUuid) -
unregisterPluginMenuEntries
-