Class KeycloakUserMapper

  • All Implemented Interfaces:
    UserMapper

    public class KeycloakUserMapper
    extends Object
    implements UserMapper
    Plugin for the UserMapper to manage mapping between Ketcloack user and Nuxeo counterpart
    Since:
    7.4
    • Field Detail

      • userSchemaName

        protected static String userSchemaName
      • groupSchemaName

        protected static String groupSchemaName
    • Constructor Detail

      • KeycloakUserMapper

        public KeycloakUserMapper()
    • Method Detail

      • getOrCreateAndUpdateNuxeoPrincipal

        public NuxeoPrincipal getOrCreateAndUpdateNuxeoPrincipal​(Object userObject)
        Description copied from interface: UserMapper
        Should retrieve (create if needed) and update the NuxeoPrincipal according to the given userObject
        Specified by:
        getOrCreateAndUpdateNuxeoPrincipal in interface UserMapper
        Parameters:
        userObject - the object representing the user in the external system
      • getOrCreateAndUpdateNuxeoPrincipal

        public NuxeoPrincipal getOrCreateAndUpdateNuxeoPrincipal​(Object userObject,
                                                                 boolean createIfNeeded,
                                                                 boolean update,
                                                                 Map<String,​Serializable> params)
        Description copied from interface: UserMapper
        Should retrieve (create if needed) and update the NuxeoPrincipal according to the given userObject
        Specified by:
        getOrCreateAndUpdateNuxeoPrincipal in interface UserMapper
        Parameters:
        userObject - the object representing the user in the external system
        createIfNeeded - flag to allow creation (default is true)
        update - flag to run update (default is true)
      • release

        public void release()
        Description copied from interface: UserMapper
        Release callback : called when the plugin is about to be unloaded
        Specified by:
        release in interface UserMapper