Class ProxyPentahoUserRoleHelper


  • public class ProxyPentahoUserRoleHelper
    extends Object
    This class contains helper methods for converting from and to proxy user and roles
    Author:
    Will Gorman (wgorman@pentaho.com)
    • Constructor Detail

      • ProxyPentahoUserRoleHelper

        public ProxyPentahoUserRoleHelper()
    • Method Detail

      • toProxyUser

        public static ProxyPentahoUser toProxyUser​(org.pentaho.platform.api.engine.security.userroledao.IPentahoUser user)
      • syncUsers

        public static org.pentaho.platform.api.engine.security.userroledao.IPentahoUser syncUsers​(org.pentaho.platform.api.engine.security.userroledao.IPentahoUser user,
                                                                                                  ProxyPentahoUser proxyUser)
        Synchronizes user with fields from proxyUser. The roles set of given user is unmodified.
      • syncRoles

        public static org.pentaho.platform.api.engine.security.userroledao.IPentahoRole syncRoles​(org.pentaho.platform.api.engine.security.userroledao.IPentahoRole role,
                                                                                                  ProxyPentahoRole proxyRole)
        Synchronizes role with fields from proxyRole. The users set of given role is unmodified.
      • toProxyRole

        public static ProxyPentahoRole toProxyRole​(org.pentaho.platform.api.engine.security.userroledao.IPentahoRole role)