Class PublicRestUriHelper
java.lang.Object
de.xima.fc.api.rest.pub.common.uri.PublicRestUriHelper
Helper class to generate URIs for the public generic REST API.
- Since:
- 8.4.0
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns the base path for attachment resources.static StringgetAttachmentResourcePath(Attachment attachment) Returns the path for an attachment resource.static StringReturns the base path for authenticator resources.static StringgetBaseResourcePath(de.xima.cmn.dao.interfaces.IEntity<?> entity) Returns the base path for resources of the given entity.static StringReturns the base path for form record attachment resources in the context of a form record.static StringReturns the base path for form record resources.static StringReturns the base path for form record chat resources.static StringReturns the base path for form record chat resources in the context of a form record.static StringReturns the path for the messages of a specific form record chat.static StringReturns the path for a form record chat resource.static StringReturns the base path for form record message resources.static StringReturns the path for a form record message resource.static StringReturns the base path for form record message upload request resources.static StringgetFormRecordResourcePath(Vorgang formRecord) Returns the path for a form record resource.static StringgetFormRecordResourcePathByUuid(String formRecordUuid) Returns the path for a form record resource.static StringgetFormRecordWorkflowTriggerBaseResourcePath(Vorgang formRecord, WorkflowTask task) Returns the base path for workflow trigger resources in the context of a form record.static StringgetFormRecordWorkflowTriggerBaseResourcePathByTaskUuid(Vorgang formRecord, String taskUuid) Returns the base path for workflow trigger resources in the context of a form record.static StringgetFormRecordWorkflowTriggerBaseResourcePathByUuid(String formRecordUuid, String taskUuid) Returns the base path for workflow trigger resources in the context of a form record.static StringgetFormRecordWorkflowTriggerResourcePath(Vorgang formRecord, WorkflowTrigger trigger) Returns the path for a workflow trigger resource in the context of a form record.static StringgetProjectBaseResourcePath(Mandant client) Returns the base path for project resources.static StringgetProjectFileBaseResourcePath(Projekt project) Returns the base path for project file resources.static StringgetProjectResourcePath(Projekt project) Returns the path for a project resource.static StringgetUserPortalAuthenticatorsPath(UserPortal userPortal) Returns the path for the authenticators of a user portal.static StringReturns the base path for user portal resources.static StringReturns the base path for a user portal file resource.static StringgetUserPortalFormsPath(UserPortal userPortal) Returns the path for forms of a user portalstatic StringgetUserPortalResourcePath(UserPortal portal) Returns the path for a user portal resource.static StringReturns the path for a user profile resource.static StringReturns the path for a user profile file resource.static StringReturns the path for a user profile image resource.static StringReturns the base path for user profile resources.
-
Method Details
-
getAttachmentBaseResourcePath
Returns the base path for attachment resources.- Returns:
- The base path for attachment resources.
-
getAttachmentResourcePath
Returns the path for an attachment resource.- Parameters:
attachment- The attachment.- Returns:
- The path for the attachment resource.
-
getAuthenticatorsBaseResourcePath
Returns the base path for authenticator resources.- Returns:
- The base path for authenticator resources.
-
getBaseResourcePath
Returns the base path for resources of the given entity.- Parameters:
entity- The entity.- Returns:
- The base path for resources of the given entity.
- Throws:
NullPointerException- if entity is null.IllegalArgumentException- if entity is not a supported type.
-
getFormRecordAttachmentBaseResourcePath
Returns the base path for form record attachment resources in the context of a form record.- Parameters:
uuid- The form record as context.- Returns:
- The base path for form record attachment resources in the context of a form record.
-
getFormRecordBaseResourcePath
Returns the base path for form record resources.- Returns:
- The base path for form record resources.
-
getFormRecordChatBaseResourcePath
Returns the base path for form record chat resources.- Returns:
- The base path for form record chat resources.
-
getFormRecordChatBaseResourcePath
-
getFormRecordChatMessagesPath
-
getFormRecordChatResourcePath
-
getFormRecordMessageBaseResourcePath
Returns the base path for form record message resources.- Returns:
- The base path for form record message resources.
-
getFormRecordMessageResourcePath
-
getFormRecordMessageUploadRequestBaseResourcePath
-
getFormRecordResourcePath
-
getFormRecordResourcePathByUuid
-
getFormRecordWorkflowTriggerBaseResourcePath
public static String getFormRecordWorkflowTriggerBaseResourcePath(Vorgang formRecord, WorkflowTask task) Returns the base path for workflow trigger resources in the context of a form record.- Parameters:
formRecord- The form record as context.task- The workflow task.- Returns:
- The base path for workflow trigger resources in the context of a form record.
-
getFormRecordWorkflowTriggerBaseResourcePathByTaskUuid
public static String getFormRecordWorkflowTriggerBaseResourcePathByTaskUuid(Vorgang formRecord, String taskUuid) Returns the base path for workflow trigger resources in the context of a form record.- Parameters:
formRecord- The form record as context.taskUuid- The UUID of the workflow task.- Returns:
- The base path for workflow trigger resources in the context of a form record.
-
getFormRecordWorkflowTriggerBaseResourcePathByUuid
public static String getFormRecordWorkflowTriggerBaseResourcePathByUuid(String formRecordUuid, String taskUuid) Returns the base path for workflow trigger resources in the context of a form record.- Parameters:
formRecordUuid- The UUID of the form record.taskUuid- The UUID of the workflow task.- Returns:
- The base path for workflow trigger resources in the context of a form record.
-
getFormRecordWorkflowTriggerResourcePath
public static String getFormRecordWorkflowTriggerResourcePath(Vorgang formRecord, WorkflowTrigger trigger) Returns the path for a workflow trigger resource in the context of a form record.- Parameters:
formRecord- The form record as context.trigger- The workflow trigger.- Returns:
- The path for the workflow trigger resource.
-
getProjectBaseResourcePath
-
getProjectFileBaseResourcePath
-
getProjectResourcePath
-
getUserPortalAuthenticatorsPath
Returns the path for the authenticators of a user portal.- Parameters:
userPortal- The user portal.- Returns:
- The path for the authenticators of a user portal.
-
getUserPortalBaseResourcePath
Returns the base path for user portal resources.- Returns:
- The base path for user portal resources.
-
getUserPortalFileBaseResourcePath
Returns the base path for a user portal file resource.- Parameters:
file- The user portal file.- Returns:
- The base path for the user portal file resource.
-
getUserPortalFormsPath
Returns the path for forms of a user portal- Parameters:
userPortal- The user portal.- Returns:
- The path for forms of a user portal
-
getUserPortalResourcePath
Returns the path for a user portal resource.- Parameters:
portal- The user portal.- Returns:
- The path for the user portal resource.
-
getUserProfileFileResourcePath
Returns the path for a user profile file resource.- Parameters:
file- The user profile file.- Returns:
- The path for the user profile file resource.
-
getUserProfilesBaseResourcePath
Returns the base path for user profile resources.- Returns:
- The base path for user profile resources.
-
getUserProfileBaseResourcePath
Returns the path for a user profile resource.- Returns:
- The path for the user profile resource.
-
getUserProfileImagePath
Returns the path for a user profile image resource.- Returns:
- The path for the user profile image resource.
-