org.pentaho.platform.engine.security.userroledao.ws
Class ProxyPentahoUserRoleHelper

java.lang.Object
  extended by org.pentaho.platform.engine.security.userroledao.ws.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 Summary
ProxyPentahoUserRoleHelper()
           
 
Method Summary
static IPentahoRole syncRoles(IPentahoRole role, ProxyPentahoRole proxyRole)
          Synchronizes role with fields from proxyRole.
static IPentahoUser syncUsers(IPentahoUser user, ProxyPentahoUser proxyUser)
          Synchronizes user with fields from proxyUser.
static ProxyPentahoRole toProxyRole(IPentahoRole role)
           
static ProxyPentahoUser toProxyUser(IPentahoUser user)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyPentahoUserRoleHelper

public ProxyPentahoUserRoleHelper()
Method Detail

toProxyUser

public static ProxyPentahoUser toProxyUser(IPentahoUser user)

syncUsers

public static IPentahoUser syncUsers(IPentahoUser user,
                                     ProxyPentahoUser proxyUser)
Synchronizes user with fields from proxyUser. The roles set of given user is unmodified.


syncRoles

public static IPentahoRole syncRoles(IPentahoRole role,
                                     ProxyPentahoRole proxyRole)
Synchronizes role with fields from proxyRole. The users set of given role is unmodified.


toProxyRole

public static ProxyPentahoRole toProxyRole(IPentahoRole role)