Class UriResolverFactory

java.lang.Object
de.xima.fc.security.endpoint.uri.UriResolverFactory

public class UriResolverFactory extends Object
Factory for creating default IUriResolver.
Since:
8.0.0
Author:
XIMA Media GmbH
  • Method Details

    • publicUri

      public static IUriResolver publicUri(List<String> viewParts, String extension)
      Parameters:
      viewParts - ordered list of path parts of the URI. These parts are part of the rewrite URI template as well as the internal URI.
      extension - Extension to add to the last view part, e.g. .xhtml. Can be an empty string when no extension is required.
      Returns:
      Rewrite URI resolver for public views.
    • protectedUri

      public static IUriResolver protectedUri(List<String> viewParts, String extension)
      Parameters:
      viewParts - ordered list of path parts of the URI. These parts are part of the rewrite URI template as well as the internal URI.
      extension - Extension to add to the last view part, e.g. .xhtml. Can be an empty string when no extension is required.
      Returns:
      Rewrite URI resolver for protected views.
    • clientUri

      public static IUriResolver clientUri(List<String> viewParts, String extension)
      Parameters:
      viewParts - ordered list of path parts of the URI. These parts are part of the rewrite URI template as well as the internal URI.
      extension - Extension to add to the last view part, e.g. .xhtml. Can be an empty string when no extension is required.
      Returns:
      Rewrite URI resolver for client scoped views.
    • designerUri

      public static IUriResolver designerUri(List<String> viewParts, String extension)
      Parameters:
      viewParts - ordered list of path parts of the URI. These parts are part of the rewrite URI template as well as the internal URI.
      extension - Extension to add to the last view part, e.g. .xhtml. Can be an empty string when no extension is required.
      Returns:
      Rewrite URI resolver for designer / form version scoped views.
    • systemUri

      public static IUriResolver systemUri(List<String> viewParts, String extension)
      Parameters:
      viewParts - ordered list of path parts of the URI. These parts are part of the rewrite URI template as well as the internal URI.
      extension - Extension to add to the last view part, e.g. .xhtml. Can be an empty string when no extension is required.
      Returns:
      Rewrite URI resolver for system scoped views.
    • profileUri

      public static IUriResolver profileUri(List<String> viewParts, String extension)
      Parameters:
      viewParts - ordered list of path parts of the URI. These parts are part of the rewrite URI template as well as the internal URI.
      extension - Extension to add to the last view part, e.g. .xhtml. Can be an empty string when no extension is required.
      Returns:
      Rewrite URI resolver for profile views.
    • pluginMenuEntryUriResolver

      public static IUriResolver pluginMenuEntryUriResolver(IPluginMenuEntry pluginEntry, String contextName)
      Parameters:
      pluginEntry - menu entry provided by a plugin.
      contextName - name of the portal context
      Returns:
      Plugin menu entry URI resolver