Tutorial: Installing and Initializing the Backoffice Data Hub Cockpit

Data Hub comes with a user interface that provides the basic functionality of Data Hub, embedded as an extension in SAP Commerce Cloud Backoffice.

Context

Backoffice applications are part of the Backoffice Framework. This foundation enables application designers to create or modify widgets to customize Backoffice without writing code. The following describes the process for installing and initializing the Backoffice Data Hub Cockpit.

Procedure

  1. Required: Before you begin installing Backoffice, go back to Data Hub and configure a developer user.
  2. Modify the localextensions.xml file to include the datahubbackoffice extension, indicating the path to where it is located.
    <extensions>
    	...
    	<extension name="datahubbackoffice"/>
    </extensions>
  3. Run ant clean all on the platform.
  4. Provide the following configuration in your SAP Commerce Cloud local.properties file. The configuration allows Backoffice REST clients to connect to Data Hub REST endpoints. The username and password are the ones you set up for basic authentication when installing Data Hub. The developer client's privileges are a sample. You decide what to do with this client.
    datahub.backoffice.rest.client.username.admin=admin
    datahub.backoffice.rest.client.password.admin=<password>
    datahub.backoffice.rest.client.username.developer=developer
    datahub.backoffice.rest.client.password.developer=<password>
  5. Start SAP Commerce Cloud
  6. Log into the SAP Commerce Cloud Administration Console (Administration Console) by connecting to https://<hybris_host>:9002.
    When accessing Administration Console for the first time, you are prompted to enter a user name and a password. Use the <admin> user account and your administrator password.
  7. Perform a database initialization to create the new essential data of the extension. Be sure to include project data for backoffice and datahubbackoffice.
    A new user group named datahubadmingroup is created with the new essential data.
  8. Log in to the SAP Commerce Cloud Administration Cockpit at https://<hybris_host>:9002/backoffice, and create a user in the datahubadmingroup. These users have access to the all features and all data of Data Hub in Backoffice.
    The existing admingroup (the one that admin belongs to) is automatically part of the datahubadmingroup after initialization. The users in this group also have access to Data Hub features in Backoffice.
  9. You can also create a special user. This user is part of the datahubdevelopergroup. The group has no admin privileges and only a limited window into the data. To create the group, do the following substeps:
    1. Log in as a member of the admingroup or datahubadmingroup.
    2. From the Start of the navigation pathSystem Next navigation step user Next navigation step EmployeesEnd of the navigation path a list of users is displayed.
    3. Click on the + sign above the list, and the New Employee Wizard starts.
    4. Fill out the fields as you go through the Wizard. Be sure to enter datahubdevelopergroup on the membership tab.
    5. Click on the Password tab. Select Plain for the Password Type field and provide a new password value in the Change Password fields. Click the Save button.

Results

You can now access Backoffice Data Hub Cockpit by going to https://<hybris_host>:9002/backoffice/, and logging in with the Data Hub Admin Group role. Select the Data Hub perspective icon from the drop-down perspectives menu.