Create a DSC, using the details mentioned in the next step. For more information, see 'Developing Components for LiveCycle' topic in Programming with LiveCycle guide.
Avatar of the logged-in user is displayed in the upper-right corner of HTML Workspace. Also, the avatars of direct reports in the organizational hierarchy are displayed in the Manager View. You can configure HTML Workspace to pick the user images from your database, say LDAP server.
The supported aspect ratio of the user images is 1:1.
-
-
In the DSC, define a new SPI which exposes getCurrentUserImageUrl and getUserImageUrl methods to get an image URL for an Adobe® LiveCycle® user. Following is a sample Java™ code snippet:
public class DemoUserImageURLProviderService { public String getCurrentUserImageUrl() { // return the URL for profile Image of logged in user } public String getUserImageUrl(String principalOid) { // return the URL for profile Image for user represented by this principal Oid } }
-
Create a component.xml file. Ensure that spec-id is as shown in the code snippet below.
The following code snippet is a sample. Customize it to suit your specific requirements.
<component xmlns="http://adobe.com/idp/dsc/component/document"> <component-id>com.adobe.sample.DemoUsersComponent</component-id> <version>1.1</version> <supports-export>false</supports-export> <descriptor-class>com.adobe.idp.dsc.component.impl.DefaultPOJODescriptorImpl</descriptor-class> <services> <service name="DemoUserImageURLProviderService" title="Demo User ImageURL provider service" orchestrateable="false"> <auto-deploy service-id="DemoUserImageURLProviderService" category-id="Demo Users Component DSC" major-version="1" minor-version="0" /> <description>Service for resolving user image url.</description> <specifications> <specification spec-id="com.adobe.idp.taskmanager.dsc.enterprise.UserImageUrlProvider"/> </specifications> <specification-version>1.0</specification-version> <implementation-class>com.adobe.sample.demousers.DemoUserImageURLProviderService</implementation-class> <request-processing-strategy>single_instance</request-processing-strategy> <supported-connectors>default</supported-connectors> <operation-config> <operation-name>*</operation-name> <transaction-type>Container</transaction-type> <transaction-propagation>supports</transaction-propagation> <!--transaction-timeout>3000</transaction-timeout--> </operation-config> <operations> <operation anonymous-access="false" name="getCurrentUserImageUrl" method="getCurrentUserImageUrl"> <output-parameter name="result" type="java.lang.String"/> </operation> <operation anonymous-access="false" name="getUserImageUrl" method="getUserImageUrl"> <input-parameter name="principalOid" type="java.lang.String"/> <output-parameter name="result" type="java.lang.String"/> </operation> </operations> </service> </services> </component>
-
Deploy DSC through LiveCycle Workbench. Restart ProcessManagementClientSessionService service.
-
You may have to refresh your browser or logout/login with the user again.
More like this
- Introduction to Customizing HTML Workspace
- Generic steps for HTML Workspace customization
- Managing tasks in an organizational hierarchy using Manager View
- Integrating Correspondence Management in HTML Workspace
- Single Sign On and timeout handlers
- Displaying the user avatar
- Displaying information in the Task Summary pane
- Changing the organization logo
- Changing the color scheme of the interface
- Changing the font on the interface
- Changing the locale of the user interface
- Customizing error dialogs
- Customizing tabs for a task
- Customizing Task Actions
- Customizing the listing of process instances
- Customizing the task Details page
- Displaying additional data in ToDo list
- Getting Task Variables in Summary URL
- Images for Route Actions
- Creating a new login screen
- Minification of the JavaScript files
- Sorting of Tracking tables and adding more columns
- Updating the link to the documentation
- Hosting two HTML Workspace instances on one server