Configuring globally how social object data is served | HCL Digital Experience
Among other features, social objects have different links that enable users to download related data. For example, users can use links to download a file or the profile image of the author. You can globally configure how social object data is served to the users. To do so, you use a setting in the WP Connections Integration Service resource environment provider in the WebSphere Integrated Solutions Console.
About this task
Social object data can be served to the users in the following two ways:
- Directly from HCL Connections.
- By using the Ajax proxy of HCL Portal. Benefits include the possibility to serve all data to your users through HCL Portal without direct web access from the web browser to HCL Connections.
- You can globally configure how social object data is served by default. You configure the data serve method in the WP Connections Integration Service resource environment provider. This setting sets the default data serve method for all social lists in your portal. As a result, all your design components that do not explicitly request a specific data serve mode use this default method for serving resources. This configuration method makes the data serve method switchable for all social lists.
- You can explicitly override the default data serve method in your individual design components. To override the default setting, you use specific attributeName values in the AttributeResource tags that you use in your design components. These values determine a specific data serve method. This way, you can specify for individual types of data by which method you want them to be served.
authorImageLink
, communityEntryLink
, downloadLink
, and entryLink
. For details about which attributes are available for a
specific type of social object, read Rendering profiles for social lists. To globally configure how social object data is served by default, set the
resource.serving.url.type
property of the WP Connections
Integration Service resource environment provider. You can then still choose between using
the default method or overriding it for individual data in individual design components:- To use the default method for serving resource, use the attribute name without any
prefix. For example, such attribute names are
authorImageLink
,communityEntryLink
,downloadLink
, andentryLink
values for theattributeName
. The portal then generates links that point either to HCL Connections or to the portal. This depends on the value that you specified for theresource.serving.url.type
property. - To override the default method, you prefix the corresponding
attributeName
values in the design component with either of the following prefixes. To determine whether you can apply the prefixed version, look at the profile details:raw
. Use this prefix to serve resources directly through HCL Connections.portal
. Use this prefix to serve resources from the portal to the browser.
resource.serving.url.type
setting. In this case, you add the [AttributeResource
attributeName="rawDownloadLink"]
tag to your design component
instead of using the tag [AttributeResource attributeName="downloadLink"]
.
This option keeps the data serve method switchable based on the resource.resolution.url.type
setting.Specify either of the following two values for the
resource.serving.url.type
property:- portal
- Specify this value to define that the
authorImageLink
,communityEntryLink
,downloadLink
,entryLink
, and other link attributes contain URLs through which you can access the social objects by using the Ajax proxy of the portal. In this case, their values equal the values of the correspondingportalAuthorImageLink
,portalCommunityEntryLink
,portalDownloadLink
, andportalEntryLink
attributes for the design component. This value is the default setting. - connections
- Specify this value to define that the
authorImageLink
,communityEntryLink
,downloadLink
,entryLink
and other link attributes contain URLs by which you can access the social objects directly from HCL Connections. In this case, their values equal the values of the correspondingrawAuthorImageLink
,rawCommunityEntryLink
,rawDownloadLink
, andrawEntryLink
attributes for the design component.
To globally configure the method by which social object data is served, proceed by the following steps:
Procedure
- Log in to the WebSphere® Integrated Solutions Console.
- Click .
- Select WP ConnectionsIntegrationService.
- Under Additional properties, click Custom properties.
-
Set the
resource.serving.url.type
property to a value of either connections or portal as required. - Save your changes.
- Restart your portal server for the changes to take effect.