In a user profile, an application can provide some service data and tools for managing the application service for the selected user.
For this purpose, the application must plug its view-plugin
into the User Manager placeholder http://www.parallels.com/ccp-users#userInfo
.
In this document:
The User Manager calls the following methods that must be defined in the view-plugin:
init(mediator)
- receives the mediator
object and defines of the setServiceData
method
inside the mediator
object as mentioned below.
mediator.setServiceData(data)
- is the main method. It must return a UI tile
presenting the service data and tools to be available in the user profile.
The init(mediator)
method gets the mediator
object used for exchanging data between the User Manager
and view-plugins.
mediator.setServiceData(data)
method receives the data
object that represents the selected user in accordance
with the APS core user schema. It also contains all assigned services as the data.services
array.
The mediator.setServiceData(data)
method processes service data available in the data object.
Then it defines a tile that presents the data and provides tools for managing the service for the selected user.
The mediator.setServiceData(data)
method returns the UI tile widget container that the User Manager uses to present
service data and tools in the profile of the selected user.
Refer to the demo process of developing such a view.