CreateOrganizationFormHandler has the following properties, which are used to set roles in the new business unit:

Property

Description

createRelativeRoles

This property is set to true by default so that relative roles are created for the new organization.

assignRelativeRoles

This property is set to true by default so that the list of relative roles specified in assignableFunctionNames is assigned to a user.

functionNames

Sets the names of the relative roles of the new business unit

For example, in Motorprise, these roles are admin, approver, buyer.

assignableFunctionNames

Specifies the relative roles for the user who is creating the new business unit. In Motorprise, the user is assigned an admin role for that business unit.

userId

The ID of the user to whom the relative roles listed in assignableFunctionNames is assigned.

The functionNames property of the CreateOrganizationFormHandler is used to set the names of the roles of the new organization. In Motorprise, these roles are admin, approver and buyer. This means that when a company admin creates a new business unit in Motorprise, three relative roles are created with these names:

These roles fit the business model for Motorprise. You could create different roles for your business. See the section on CreateOrganizationFormHandler for further information.

The assignableFunctionNames property is a list of roles to assign the user specified in the userId property. These functions are used to extract a relative role from an organization and then assign it to the user. In this case, the user is assigned the role of admin.


Copyright © 1997, 2019 Oracle and/or its affiliates. All rights reserved. Legal Notices