Interface IResourceLinkMapper
- All Superinterfaces:
Serializable
Mapper for resource links returned by the user portal rest API. These are usually includes in a resource as a JSON
object with the
links property.
The REST API returns links relative to the request URL used when the API call was made. Since we are making the API calls on the server (and not on the client's browser), we need to remap these links to the URL of the client's browser. Only then can we use these links in the client's browser. The main use case is to display images via an HTML image tag with a src property.
-
Method Summary
Modifier and TypeMethodDescriptionremap(BaseFormRecordAttachmentResource resource) Remaps the links of a form record attachment resource.default Stringremap(BaseFormRecordAttachmentResource resource, String key) Remaps a link at a given key in the links of a form record attachment resource.remap(DetailedFormRecordAttachmentResource resource) Remaps the links of a form record attachment resource.default Stringremap(DetailedFormRecordAttachmentResource resource, String key) Remaps a link at a given key in the links of a form record attachment resource.remap(BaseUserPortalFileResource resource) Remaps the links of a user portal file resource.default Stringremap(BaseUserPortalFileResource resource, String key) Remaps a link at a given key in the links of a user portal file resource.remap(DetailedUserPortalFileResource resource) Remaps the links of a user portal file resource.default Stringremap(DetailedUserPortalFileResource resource, String key) Remaps a link at a given key in the links of a user portal file resource.Remaps a single link.Remaps a map of links.default StringRemaps a link at a given key in a map of links.
-
Method Details
-
remap
Remaps a single link. SeeIResourceLinkMapperfor more information.- Parameters:
link- The link to remap.- Returns:
- The remapped link.
-
remap
-
remap
-
remap
Remaps the links of a user portal file resource. SeeIResourceLinkMapperfor more information.- Parameters:
resource- The user portal file resource.- Returns:
- The remapped map of links.
-
remap
Remaps the links of a user portal file resource. SeeIResourceLinkMapperfor more information.- Parameters:
resource- The user portal file resource.- Returns:
- The remapped map of links.
-
remap
Remaps a link at a given key in the links of a user portal file resource. SeeIResourceLinkMapperfor more information.- Parameters:
resource- The user portal file resource.key- The key of the link to remap.- Returns:
- The remapped link.
-
remap
Remaps a link at a given key in the links of a user portal file resource. SeeIResourceLinkMapperfor more information.- Parameters:
resource- The user portal file resource.key- The key of the link to remap.- Returns:
- The remapped link.
-
remap
Remaps the links of a form record attachment resource. SeeIResourceLinkMapperfor more information.- Parameters:
resource- The form record attachment resource.- Returns:
- The remapped map of links.
-
remap
Remaps the links of a form record attachment resource. SeeIResourceLinkMapperfor more information.- Parameters:
resource- The form record attachment resource.- Returns:
- The remapped map of links.
-
remap
Remaps a link at a given key in the links of a form record attachment resource. SeeIResourceLinkMapperfor more information.- Parameters:
resource- The form record attachment resource.key- The key of the link to remap.- Returns:
- The remapped link.
-
remap
Remaps a link at a given key in the links of a form record attachment resource. SeeIResourceLinkMapperfor more information.- Parameters:
resource- The form record attachment resource.key- The key of the link to remap.- Returns:
- The remapped link.
-