fr.paris.lutece.plugins.userws.service
Class UserAttributesWebService

java.lang.Object
  extended by fr.paris.lutece.plugins.userws.service.UserAttributesWebService
All Implemented Interfaces:
fr.paris.lutece.portal.service.security.UserAttributesService

public class UserAttributesWebService
extends java.lang.Object
implements fr.paris.lutece.portal.service.security.UserAttributesService

UserAttributesWebService


Constructor Summary
UserAttributesWebService()
          Private constructor
 
Method Summary
 java.lang.String getAttribute(java.lang.String strUserGuid, java.lang.String strAttributeKey)
          Calls the rest ws to fetch the user attribute
 java.util.Map<java.lang.String,java.lang.String> getAttributes(java.lang.String strUserGuid)
          Calls the rest ws to fetch the user attributes from the given user guid
 void setWebServiceCaller(IWebServiceCaller webServiceCaller)
          Set the web service caller
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserAttributesWebService

public UserAttributesWebService()
Private constructor

Method Detail

setWebServiceCaller

public void setWebServiceCaller(IWebServiceCaller webServiceCaller)
Set the web service caller

Parameters:
webServiceCaller - the web service caller

getAttributes

public java.util.Map<java.lang.String,java.lang.String> getAttributes(java.lang.String strUserGuid)
Calls the rest ws to fetch the user attributes from the given user guid

Specified by:
getAttributes in interface fr.paris.lutece.portal.service.security.UserAttributesService
Parameters:
strUserGuid - the user guid
Returns:
a map containing the user attributes

getAttribute

public java.lang.String getAttribute(java.lang.String strUserGuid,
                                     java.lang.String strAttributeKey)
Calls the rest ws to fetch the user attribute

Specified by:
getAttribute in interface fr.paris.lutece.portal.service.security.UserAttributesService
Parameters:
strUserGuid - the user guid
strAttributeKey - the attribute key
Returns:
the user attribute value


Copyright © 2011 Mairie de Paris. All Rights Reserved.