pl.edu.icm.yadda.service2.user
Class UserDataConverter
java.lang.Object
pl.edu.icm.yadda.service2.user.UserDataConverter
public class UserDataConverter
- extends Object
User data converter class.
- Author:
- mhorst
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserDataConverter
public UserDataConverter()
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-2012 ICM, Warsaw University. All Rights Reserved.