pl.edu.icm.yadda.service2.user
Class UserDataConverter

java.lang.Object
  extended by pl.edu.icm.yadda.service2.user.UserDataConverter

public class UserDataConverter
extends Object

User data converter class.

Author:
mhorst

Constructor Summary
UserDataConverter()
           
 
Method Summary
static pl.edu.icm.yadda.service2.user.model.Group convert(pl.edu.icm.yadda.aas.usercatalog.model.Group source, String predefinedDomain)
          Converts Group from user catalog model into Group.
static pl.edu.icm.yadda.service2.user.model.UserData convert(pl.edu.icm.yadda.aas.usercatalog.model.User source, String predefinedDomain, boolean setNameAsInternalId)
          Converts User from user catalog model into UserData.
protected static List<pl.edu.icm.yadda.service2.user.credential.Credential> prepareCredentials(String password)
           
protected static Set<pl.edu.icm.yadda.service2.user.model.GroupName> prepareGroups(Set<String> groups, String predefinedDomain)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserDataConverter

public UserDataConverter()
Method Detail

convert

public static pl.edu.icm.yadda.service2.user.model.UserData convert(pl.edu.icm.yadda.aas.usercatalog.model.User source,
                                                                    String predefinedDomain,
                                                                    boolean setNameAsInternalId)
                                                             throws UserDataConverterException
Converts User from user catalog model into UserData.

Parameters:
source -
predefinedDomain -
setNameAsInternalId - flag indicating source user name should be taken either as internal id or or as external id causing internal id to be generated
Returns:
converted UserData object
Throws:
UserDataConverterException

prepareGroups

protected static Set<pl.edu.icm.yadda.service2.user.model.GroupName> prepareGroups(Set<String> groups,
                                                                                   String predefinedDomain)

prepareCredentials

protected static List<pl.edu.icm.yadda.service2.user.credential.Credential> prepareCredentials(String password)

convert

public static pl.edu.icm.yadda.service2.user.model.Group convert(pl.edu.icm.yadda.aas.usercatalog.model.Group source,
                                                                 String predefinedDomain)
                                                          throws UserDataConverterException
Converts Group from user catalog model into Group.

Parameters:
source -
predefinedDomain -
Returns:
converted Group object
Throws:
UserDataConverterException


Copyright © 2002-2013 ICM, Warsaw University. All Rights Reserved.