Package de.xima.fc
Class PathHandler.Web
java.lang.Object
de.xima.fc.PathHandler.Web
- Enclosing class:
- PathHandler
Zentrale Behandlung von Formcycle-URLs
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
static String
aliasFormImageFor
(Projekt project, String basePath) Liefert die allgemeine (offizielle und nach außen sichtbare) URL zum Aufruf des Thumbnail des aktiven Formulars einesstatic String
aliasFormImageFor
(Long projectId, String basePath) static String
aliasFormImageFor
(String projectId, String basePath) static String
aliasFormImageFor
(String projectId, String basePath, String type) static String
static String
Liefert die allgemeine (offizielle und nach außen sichtbare) URL zum Aufruf des aktiven Formulars eines Projektes.static String
aliasFormRequestWithoutAlias
(Mandant client) static String
aliasFormRequestWithoutAlias
(MandantFrontendServer mfs, Mandant client) static String
baseFormIncludeUrlFor
(Mandant client) Determines the path to the JavaScript file for including the form via AJAX.static String
static String
baseFormUrlFor
(Mandant mandant) Returns the clients base-url with form servlet sub-dirstatic String
static String
baseIncludesFor
(Mandant client) Generates the base URL for form includes,/form/includes
.static String
Generates the base URL for form includes,/form/includes
.static String
baseUrlFor
(Mandant mandant) Liefert die (ggfs mandantenabhängige) Basis-Adresse zum Aufruf von Formcycle.static String
static String
fd2CurrentEditFor
(Projekt project, String baseUrl) Deprecated.Use EProjectView#DESIGNER and the its IViewUriResolver instead.static String
Deprecated.Use EProjectView#DESIGNER and the its IViewUriResolver instead.static String
fd2VersionEditFor
(FormVersion fv, WorkflowVersion workflowVersion) Deprecated.Use EProjectView#DESIGNER and the its IViewUriResolver instead.static String
fd2VersionEditFor
(FormVersion fv, WorkflowVersion workflowVersion, String baseUrl) Deprecated.Use EProjectView#DESIGNER and the its IViewUriResolver instead.static String
fd2VersionEditFor
(Projekt project) Deprecated.Use EProjectView#DESIGNER and the its IViewUriResolver instead.static String
fd2VersionEditFor
(Projekt project, String baseUrl) Deprecated.Use EProjectView#DESIGNER and the its IViewUriResolver instead.static String
fd2VersionEditFor
(Long projectId, Long versionId, Long workflowVersionId, String baseUrl) Deprecated.Use EProjectView#DESIGNER and the its IViewUriResolver instead.static String
fd2VersionEditFor
(Long projectId, Long versionId, Long workflowVersionId, String baseUrl, String initialViewId) Deprecated.Use EProjectView#DESIGNER and the its IViewUriResolver instead.static String
formActionFor
(Projekt project, int formVersion) Returns the URL for processing submitted forms of the given project.static String
formAttachmentDownload
(String baseUrl) static String
formCorrectionFor
(Projekt project, int formVersion) Similar toformActionFor(Projekt, int)
, but with additional options that influence workflow processing.static String
Builds the link to the form include JavaScript (/form/include.js).static String
Builds the link to the form include JavaScript (/form/include.js) for the given frontend server.static String
formReprovideFor
(Vorgang process, String baseURL) Liefert die URL zum Aufrufen eines bereits ausgefüllten Formularsstatic String
formRequestFor
(FormVersion fv, String baseURL) Liefert die allgemeine (offizielle und nach außen sichtbare) URL zum Aufruf des Formulars zur übergebenen Formularversion.static String
formRequestFor
(Projekt project) Liefert die allgemeine (offizielle und nach außen sichtbare) URL zum Aufruf des aktiven Formulars eines Projektes.static String
formRequestFor
(Projekt project, MandantFrontendServer mfs) Liefert die allgemeine (offizielle und nach außen sichtbare) URL zum Aufruf des aktiven Formulars eines Projektes.static String
formRequestFor
(Long projectId, String baseURL) static String
formRequestFor
(String projectId, String baseURL) static String
formReviewFor
(Vorgang v, String baseURL) static String
formVerifyFor
(Vorgang v, String baseURL) Deprecated.static String
formVerifyFor
(String baseURL, Vorgang v, WorkflowNode workflowNode) static String
formVerifyFor
(String baseURL, Vorgang v, WorkflowNode workflowNode, boolean isVerifyPage) static int
formVersionNumFrom
(String formReqUrl) Extrahiert aus der übergebenen URL die Form-Versions-Nummerstatic String
formVersionStringFrom
(String formReqUrl) static String
getBaseProvideUrl
(Mandant client) static String
getBaseProvideUrl
(MandantFrontendServer frontendServer) static final String
getContentUri
(String baseUrl, String viewUrl, IPathParams params) static String
getDesignerBase
(String baseUrl) static String
static String
iCalDownload
(String baseUrl) static String
inboxReviewFor
(Vorgang process, String baseURL) static String
includeUrlFor
(MandantFrontendServer mfs, String resourceName) Returns the URL to the given form resource, eg.static String
includeUrlFor
(Mandant client, String resourceName) Returns the URL to the given form resource, eg.static String
includeUrlFor
(String baseIncludesUrl, String resourceName) Returns the URL to the given form resource, eg.static String
loginRequestFor
(Mandant mandant) Diese Methode liefert die URL zur Startseite von XFC.static String
static Long
projektIdFrom
(String formReqUrl) Extrahiert aus der übergebenen URL die XFC-Projekt-IDstatic String
prozessIdFrom
(String formReqUrl) Extrahiert aus der übergebenen URL die Form-Versions-Nummer
-
Method Details
-
baseUrlFor
Liefert die (ggfs mandantenabhängige) Basis-Adresse zum Aufruf von Formcycle.- Parameters:
mandant
- -Mandant
der die Basis-URL definiert haben sollte- Returns:
- Basis URL zu Formcycle
-
aliasFor
-
baseUrlFor
-
getFormSessionParamName
-
baseFormUrlFor
Returns the clients base-url with form servlet sub-dir- Parameters:
mandant
-Mandant
for which the url should be returned- Returns:
- base-url with form servlet sub-dir
-
baseFormIncludeUrlFor
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 clientMandant
for the base URL.- Returns:
- Path to the include script without options.
-
baseFormIncludeUrlFor
-
baseIncludesFor
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
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
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
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
-
fd2NewFor
Deprecated.Use EProjectView#DESIGNER and the its IViewUriResolver instead. -
fd2CurrentEditFor
Deprecated.Use EProjectView#DESIGNER and the its IViewUriResolver instead. -
fd2VersionEditFor
Deprecated.Use EProjectView#DESIGNER and the its IViewUriResolver instead. -
fd2VersionEditFor
Deprecated.Use EProjectView#DESIGNER and the its IViewUriResolver instead. -
fd2VersionEditFor
@Deprecated public static String fd2VersionEditFor(Long projectId, Long versionId, Long workflowVersionId, String baseUrl) Deprecated.Use EProjectView#DESIGNER and the its IViewUriResolver instead. -
fd2VersionEditFor
@Deprecated public static String fd2VersionEditFor(Long projectId, Long versionId, Long workflowVersionId, String baseUrl, String initialViewId) Deprecated.Use EProjectView#DESIGNER and the its IViewUriResolver instead. -
getContentUri
-
fd2VersionEditFor
Deprecated.Use EProjectView#DESIGNER and the its IViewUriResolver instead. -
fd2VersionEditFor
@Deprecated public static String fd2VersionEditFor(FormVersion fv, WorkflowVersion workflowVersion, String baseUrl) Deprecated.Use EProjectView#DESIGNER and the its IViewUriResolver instead. -
getDesignerBase
-
formRequestFor
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
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
-
getBaseProvideUrl
- Parameters:
frontendServer
-MandantFrontendServer
- Returns:
String
base url for accessing forms via the given client frontend server
-
aliasFormRequestFor
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
-
aliasFormRequestWithoutAlias
-
aliasFormImageFor
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
-
aliasFormImageFor
-
aliasFormImageFor
-
aliasFormRequestFor
-
aliasFormRequestWithoutAlias
-
printFormRequestFor
-
formRequestFor
-
formRequestFor
-
formRequestFor
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
-String
die Base-URL- Returns:
- URL zum Aufruf des aktiven Formulars
-
formActionFor
Returns the URL for processing submitted forms of the given project. When rendering an HTML form, this is used as the valueaction
for the attributeaction
of theFORM
HTML 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:
-
formCorrectionFor
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:
-
formReprovideFor
Liefert die URL zum Aufrufen eines bereits ausgefüllten Formulars- Parameters:
process
- -Vorgang
, anhand dessenVorgang.getProzessId()
das ausgefüllte Formular ermittelt wirdbaseURL
-String
die Base-URL- Returns:
- Link zum ausgefüllten Formular
-
formReviewFor
-
inboxReviewFor
-
includeUrlFor
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
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
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. -
formVerifyFor
-
formVerifyFor
public static String formVerifyFor(String baseURL, Vorgang v, WorkflowNode workflowNode, boolean isVerifyPage) -
loginRequestFor
Diese Methode liefert die URL zur Startseite von XFC. Hier kann der Nutzer sich mit deinem Account anmelden- Parameters:
mandant
- -Mandant
dessen gesetzte Basis-URL genutzt werden soll- Returns:
- URL zur XFC-Startseite
-
projektIdFrom
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
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
-
formVersionStringFrom
-
prozessIdFrom
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
-
formAttachmentDownload
-
iCalDownload
-