Cumulus Java Classes 
Reference Documentation  
Version 11.1.7
  

Package com.canto.cumulus.usermanagement

The Cumulus User Management package.

See: Description

Package com.canto.cumulus.usermanagement Description

The Cumulus User Management package.
This package provides access to the entire permission and user management system of Cumulus.
The starting point for working with the user management API is the AuthenticationManager class. The following code shows how to access the rolenames and usernames currently available in Cumulus:
        AuthenticationManager authenticationManager = AuthenticationManager.getAuthenticationManager(cumulusServer);
        if (authenticationManager.isSimpleMode)
        {
            System.out.println ("No roles available because user system is running in simple mode.");
        }
        else
        {
            String[] roles = authenticationManager.getRoleNamesAsArray();
            System.out.println ("Roles available:");
            for (int i = 0; i < roles.length; i++)
            {
                String role = roles[i];
                System.out.println ("found Role = " + role);
            }
        }
        String[] users = authenticationManager.getUserNamesAsArray();
        System.out.println ("Users available:");
        for (int i = 0; i < users.length; i++)
        {
            String user = users[i];
            System.out.println ("found User = " + user);
        }
    

Architecture

The Cumulus user management system is based on users and roles with assigned permissions. When running in Simple Mode each user has its own role using the same name as the users login name. When running in Advanced Mode each user can be assigned to many roles and the permissions of all roles will be cumulatively available for the user.
There is no way to remove a specific permission for a user by not setting this permission in a role and assigning the user to that role.

Simple Mode

To change user permissions when running in Simple Mode one needs to make all permission changes at the role using the same name as the user. The user instance itself only carries metadata like an address or email. Adding additional roles to the system by using this API and adding users to it will not work as the server will skip such invalid assignments.

Advanced Mode

When running in advanced mode the admin really sees the roles available and can manage those roles using the User Manager application. When using the API one can also simply edit the roles freely and assign the permissions needed.

© 2002-2021, Canto GmbH. All Rights Reserved.
Cumulus Java Classes 
Reference Documentation  
Version 11.1.7
  

www.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.