Creating a role class

You use the Administration Console for Content Platform Engine to create role classes.

About this task

Roles are created as subclasses under the Role class. You choose whether to create a subclass of the Static Role class or the Dynamic role class:
Static Role
In a static role, users and groups are assigned directly to a role. This method is similar to how ACLs are assigned to an object.
Dynamic Role
In a dynamic role, external code is used to determine if a user if a member of a role. This method allows for more dynamic role assignments based on application use cases. The external code returns a yes or no response as to whether the specified user is a member of the dynamic role.

Procedure

To create a role class:

  1. In Administration Console for Content Platform Engine, expand Data Design > Classes > Other Classes > Role.
  2. Right click the type of role class that you want to create, Dynamic or Static, and click New Class.
    Role classes are hierarchical, which means that you can create new roles under existing roles. If you are creating the role class to add to an existing set of roles, choose the appropriate subclass as the parent for your new class.
  3. Enter a name and description for the new role.
  4. Click Finish, then click Open to refine your role definition.
    Add or remove access definitions by choosing a class and choosing which types of access the role has for that class.
    Tip: If the tab for defining access definitions does not display, refresh the view.
  5. Save your changes.

What to do next

After you create a role class, you create an instance of the class. You can create the instance in the Data Design section of the Administration Console for Content Platform Engine by clicking Actions > Create Instance. You can also create the instance in the object store, as explained in the next procedure.