Package de.xima.fc
Class PathHandler.Web
- java.lang.Object
-
- de.xima.fc.PathHandler.Web
-
- Enclosing class:
- PathHandler
public static final class PathHandler.Web extends Object
Zentrale Behandlung von Formcycle-URLs
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static StringaliasFor(Mandant mandant)static StringaliasFormImageFor(Projekt project, String basePath)Liefert die allgemeine (offizielle und nach außen sichtbare) URL zum Aufruf des Thumbnail des aktiven Formulars einesstatic StringaliasFormImageFor(Long projectId, String basePath)static StringaliasFormImageFor(String projectId, String basePath)static StringaliasFormImageFor(String projectId, String basePath, String type)static StringaliasFormRequestFor(MandantFrontendServer mfs, Projekt p)static StringaliasFormRequestFor(Projekt p)Liefert die allgemeine (offizielle und nach außen sichtbare) URL zum Aufruf des aktiven Formulars eines Projektes.static StringaliasFormRequestWithoutAlias(Mandant client)static StringaliasFormRequestWithoutAlias(MandantFrontendServer mfs, Mandant client)static StringbaseFormIncludeUrlFor(Mandant client)Determines the path to the JavaScript file for including the form via AJAX.static StringbaseFormIncludeUrlFor(MandantFrontendServer mfs)static StringbaseFormUrlFor(Mandant mandant)Returns the clients base-url with form servlet sub-dirstatic StringbaseFormUrlFor(MandantFrontendServer mfs)static StringbaseIncludesFor(Mandant client)Generates the base URL for form includes,/form/includes.static StringbaseIncludesFor(MandantFrontendServer mfs)Generates the base URL for form includes,/form/includes.static StringbaseUrlFor(Mandant mandant)Liefert die (ggfs mandantenabhängige) Basis-Adresse zum Aufruf von Formcycle.static StringbaseUrlFor(MandantFrontendServer mfs)static Stringfd2CurrentEditFor(Projekt project, String baseUrl)static Stringfd2NewFor(Projekt project, String baseUrl)static Stringfd2VersionEditFor(FormVersion fv, WorkflowVersion workflowVersion)static Stringfd2VersionEditFor(FormVersion fv, WorkflowVersion workflowVersion, String baseUrl)static Stringfd2VersionEditFor(Projekt project)static Stringfd2VersionEditFor(Projekt project, String baseUrl)static Stringfd2VersionEditFor(Long projectId, Long versionId, Long workflowVersionId, String baseUrl)static Stringfd2VersionEditFor(Long projectId, Long versionId, Long workflowVersionId, String baseUrl, String initialViewId)static StringformActionFor(Projekt project, int formVersion)Returns the URL for processing submitted forms of the given project.static StringformAttachmentDownload(String baseUrl)static StringformCorrectionFor(Projekt project, int formVersion)Similar toformActionFor(Projekt, int), but with additional options that influence workflow processing.static StringformIncludeUrlFor(Projekt p)Builds the link to the form include JavaScript (/form/include.js).static StringformIncludeUrlFor(Projekt p, MandantFrontendServer mfs)Builds the link to the form include JavaScript (/form/include.js) for the given frontend server.static StringformPreviewFor(FormVersion fv, WorkflowVersion workflowVersion, String baseURL)static StringformPreviewFor(Long projectId, String baseURL)static StringformReprovideFor(Vorgang process, String baseURL)Liefert die URL zum Aufrufen eines bereits ausgefüllten Formularsstatic StringformRequestFor(FormVersion fv, String baseURL)Liefert die allgemeine (offizielle und nach außen sichtbare) URL zum Aufruf des Formulars zur übergebenen Formularversion.static StringformRequestFor(Projekt project)Liefert die allgemeine (offizielle und nach außen sichtbare) URL zum Aufruf des aktiven Formulars eines Projektes.static StringformRequestFor(Projekt project, MandantFrontendServer mfs)Liefert die allgemeine (offizielle und nach außen sichtbare) URL zum Aufruf des aktiven Formulars eines Projektes.static StringformRequestFor(Long projectId, String baseURL)static StringformRequestFor(String projectId, String baseURL)static StringformReviewFor(Vorgang v, String baseURL)static StringformVerifyFor(Vorgang v, String baseURL)Deprecated.static StringformVerifyFor(String baseURL, Vorgang v, WorkflowNode workflowNode)static intformVersionNumFrom(String formReqUrl)Extrahiert aus der übergebenen URL die Form-Versions-Nummerstatic StringformVersionStringFrom(String formReqUrl)static StringgetBaseProvideUrl(Mandant client)static StringgetBaseProvideUrl(MandantFrontendServer frontendServer)static StringgetContentUri(String baseUrl, String viewUrl, IPathParams params)static StringgetDesignerBase(String baseUrl)static StringgetFormSessionParamName()static StringiCalDownload(String baseUrl)static StringinboxReviewFor(Vorgang process, String baseURL)static StringincludeUrlFor(MandantFrontendServer mfs, String resourceName)Returns the URL to the given form resource, eg.static StringincludeUrlFor(Mandant client, String resourceName)Returns the URL to the given form resource, eg.static StringincludeUrlFor(String baseIncludesUrl, String resourceName)Returns the URL to the given form resource, eg.static StringloginRequestFor(Mandant mandant)Diese Methode liefert die URL zur Startseite von XFC.static StringprintFormRequestFor(Projekt p)static LongprojektIdFrom(String formReqUrl)Extrahiert aus der übergebenen URL die XFC-Projekt-IDstatic StringprozessIdFrom(String formReqUrl)Extrahiert aus der übergebenen URL die Form-Versions-Nummer
-
-
-
Method Detail
-
baseUrlFor
public static String baseUrlFor(Mandant mandant)
Liefert die (ggfs mandantenabhängige) Basis-Adresse zum Aufruf von Formcycle.- Parameters:
mandant- -Mandantder die Basis-URL definiert haben sollte- Returns:
- Basis URL zu Formcycle
-
baseUrlFor
public static String baseUrlFor(MandantFrontendServer mfs)
-
getFormSessionParamName
public static String getFormSessionParamName()
-
baseFormUrlFor
public static String baseFormUrlFor(Mandant mandant)
Returns the clients base-url with form servlet sub-dir- Parameters:
mandant-Mandantfor which the url should be returned- Returns:
- base-url with form servlet sub-dir
-
baseFormIncludeUrlFor
public static String baseFormIncludeUrlFor(Mandant client)
Determines the path to the JavaScript file for including the form via AJAX. For example:https://demo.formcycle.eu/formcycle/form/include.js
- Parameters:
client- The clientMandantfor the base URL.- Returns:
- Path to the include script without options.
-
baseFormIncludeUrlFor
public static String baseFormIncludeUrlFor(MandantFrontendServer mfs)
-
baseIncludesFor
public static String baseIncludesFor(Mandant client)
Generates the base URL for form includes,/form/includes.- Parameters:
client- A client for which to generate the URL.- Returns:
- The URL for form includes for the client.
-
baseIncludesFor
public static String baseIncludesFor(MandantFrontendServer mfs)
Generates the base URL for form includes,/form/includes.- Parameters:
mfs- A frontend server for which to generate the URL.- Returns:
- The URL for form includes for the client.
-
formIncludeUrlFor
public static String formIncludeUrlFor(Projekt p)
Builds the link to the form include JavaScript (/form/include.js). This uses the URL to the master server.- Parameters:
p- The project for which to get the URL.- Returns:
- The link to the include script.
-
formIncludeUrlFor
public static String formIncludeUrlFor(Projekt p, MandantFrontendServer mfs)
Builds the link to the form include JavaScript (/form/include.js) for the given frontend server.- Parameters:
p- The project for which to get the URL.mfs- The frontend server to use.- Returns:
- The link to the include script.
-
baseFormUrlFor
public static String baseFormUrlFor(MandantFrontendServer mfs)
-
fd2VersionEditFor
public static String fd2VersionEditFor(Long projectId, Long versionId, Long workflowVersionId, String baseUrl)
-
fd2VersionEditFor
public static String fd2VersionEditFor(Long projectId, Long versionId, Long workflowVersionId, String baseUrl, String initialViewId)
-
getContentUri
public static final String getContentUri(String baseUrl, String viewUrl, IPathParams params)
-
fd2VersionEditFor
public static String fd2VersionEditFor(FormVersion fv, WorkflowVersion workflowVersion)
-
fd2VersionEditFor
public static String fd2VersionEditFor(FormVersion fv, WorkflowVersion workflowVersion, String baseUrl)
-
formRequestFor
public static String formRequestFor(Projekt project)
Liefert die allgemeine (offizielle und nach außen sichtbare) URL zum Aufruf des aktiven Formulars eines Projektes. Diese Adresse ist für alle FormVersionen und FormTypen gleich, sie leitet intern auf die konkrete Formular-Adresse weiter.- Parameters:
project- - das betreffende Projekt- Returns:
- URL zum Aufruf des aktiven Formulars
-
formRequestFor
public static String formRequestFor(Projekt project, MandantFrontendServer mfs)
Liefert die allgemeine (offizielle und nach außen sichtbare) URL zum Aufruf des aktiven Formulars eines Projektes. Diese Adresse ist für alle FormVersionen und FormTypen gleich, sie leitet intern auf die konkrete Formular-Adresse weiter.- Parameters:
project- - das betreffende Projekt- Returns:
- URL zum Aufruf des aktiven Formulars
-
getBaseProvideUrl
public static String getBaseProvideUrl(MandantFrontendServer frontendServer)
- Parameters:
frontendServer-MandantFrontendServer- Returns:
Stringbase url for accessing forms via the given client frontend server
-
aliasFormRequestFor
public static String aliasFormRequestFor(Projekt p)
Liefert die allgemeine (offizielle und nach außen sichtbare) URL zum Aufruf des aktiven Formulars eines Projektes. Diese Adresse ist für alle FormVersionen und FormTypen gleich, sie leitet intern auf die konkrete Formular-Adresse weiter.- Parameters:
p- - das betreffende Projekt- Returns:
- URL zum Aufruf des aktiven Formulars
-
aliasFormImageFor
public static String aliasFormImageFor(Projekt project, String basePath)
Liefert die allgemeine (offizielle und nach außen sichtbare) URL zum Aufruf des Thumbnail des aktiven Formulars eines- Parameters:
project- - das betreffende Projekt- Returns:
- URL zum Aufruf des aktiven Formulars
-
aliasFormImageFor
public static String aliasFormImageFor(String projectId, String basePath, String type)
-
aliasFormRequestFor
public static String aliasFormRequestFor(MandantFrontendServer mfs, Projekt p)
-
aliasFormRequestWithoutAlias
public static String aliasFormRequestWithoutAlias(MandantFrontendServer mfs, Mandant client)
-
formRequestFor
public static String formRequestFor(FormVersion fv, String baseURL)
Liefert die allgemeine (offizielle und nach außen sichtbare) URL zum Aufruf des Formulars zur übergebenen Formularversion. Diese Adresse ist für alle FormVersionen und FormTypen gleich, sie leitet intern auf die konkrete Formular-Adresse weiter.- Parameters:
fv- - die betreffende FormularversionbaseURL-Stringdie Base-URL- Returns:
- URL zum Aufruf des aktiven Formulars
-
formPreviewFor
public static String formPreviewFor(FormVersion fv, WorkflowVersion workflowVersion, String baseURL)
-
formActionFor
public static String formActionFor(Projekt project, int formVersion)
Returns the URL for processing submitted forms of the given project. When rendering an HTML form, this is used as the valueactionfor the attributeactionof theFORMHTML element.
Example:http://localhost/xima-formcycle/form/process/742/2/- Parameters:
formVersion- The version number of the form.project- The project for which the URL is generated.- Returns:
- URL URL for processing submitted forms of the given project.
- See Also:
baseUrlFor(Mandant)
-
formCorrectionFor
public static String formCorrectionFor(Projekt project, int formVersion)
Similar toformActionFor(Projekt, int), but with additional options that influence workflow processing.
Example:http://localhost/xima-formcycle/form/workflow/742/2/- Parameters:
formVersion- The version number of the form.project- The project for which the URL is generated.- Returns:
- URL URL for processing submitted forms of the given project.
- See Also:
baseUrlFor(Mandant)
-
formReprovideFor
public static String formReprovideFor(Vorgang process, String baseURL)
Liefert die URL zum Aufrufen eines bereits ausgefüllten Formulars- Parameters:
process- -Vorgang, anhand dessenVorgang.getProzessId()das ausgefüllte Formular ermittelt wirdbaseURL-Stringdie Base-URL- Returns:
- Link zum ausgefüllten Formular
-
includeUrlFor
public static String includeUrlFor(String baseIncludesUrl, String resourceName)
Returns the URL to the given form resource, eg.form/includes/010-jquery-min.js?_nc=20190904014040- Parameters:
baseIncludesUrl- ThebaseIncludesFor(Mandant)orbaseIncludesFor(MandantFrontendServer)resourceName- Name of a resource- Returns:
- The URL for the form resource.
-
includeUrlFor
public static String includeUrlFor(Mandant client, String resourceName)
Returns the URL to the given form resource, eg.form/includes/010-jquery-min.js?_nc=20190904014040- Parameters:
client- Client for which to generate the URL.resourceName- Name of a resource- Returns:
- The URL for the form resource.
-
includeUrlFor
public static String includeUrlFor(MandantFrontendServer mfs, String resourceName)
Returns the URL to the given form resource, eg.form/includes/010-jquery-min.js?_nc=20190904014040- Parameters:
mfs- Frontend server for which to generate the URL.resourceName- Name of a resource- Returns:
- The URL for the form resource.
-
formVerifyFor
@Deprecated public static String formVerifyFor(Vorgang v, String baseURL)
Deprecated.
-
formVerifyFor
public static String formVerifyFor(String baseURL, Vorgang v, WorkflowNode workflowNode)
-
loginRequestFor
public static String loginRequestFor(Mandant mandant)
Diese Methode liefert die URL zur Startseite von XFC. Hier kann der Nutzer sich mit deinem Account anmelden- Parameters:
mandant- -Mandantdessen gesetzte Basis-URL genutzt werden soll- Returns:
- URL zur XFC-Startseite
-
projektIdFrom
public static Long projektIdFrom(String formReqUrl)
Extrahiert aus der übergebenen URL die XFC-Projekt-ID- Parameters:
formReqUrl- - die zu verarbeitende URL- Returns:
- die extrahierte Projekt-ID oder
ITransferableEntity.INVALID_ID, wenn kein entsprechender Wert gefunden wurde
-
formVersionNumFrom
public static int formVersionNumFrom(String formReqUrl)
Extrahiert aus der übergebenen URL die Form-Versions-Nummer- Parameters:
formReqUrl- - die zu verarbeitende URL- Returns:
- die extrahierte FormVersion-Nummer oder
FormVersion.INVALID_VERS_NUM, wenn kein entsprechender Wert gefunden wurde
-
prozessIdFrom
public static String prozessIdFrom(String formReqUrl)
Extrahiert aus der übergebenen URL die Form-Versions-Nummer- Parameters:
formReqUrl- - die zu verarbeitende URL- Returns:
- die extrahierte FormVersion-Nummer oder
FormVersion.INVALID_VERS_NUM, wenn kein entsprechender Wert gefunden wurde
-
-