public class UserDataConverter extends Object
Constructor and Description |
---|
UserDataConverter() |
Modifier and Type | Method and Description |
---|---|
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) |
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
User
from user catalog model into UserData
.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 generatedUserData
objectUserDataConverterException
protected static Set<pl.edu.icm.yadda.service2.user.model.GroupName> prepareGroups(Set<String> groups, String predefinedDomain)
protected static List<pl.edu.icm.yadda.service2.user.credential.Credential> prepareCredentials(String password)
public static pl.edu.icm.yadda.service2.user.model.Group convert(pl.edu.icm.yadda.aas.usercatalog.model.Group source, String predefinedDomain) throws UserDataConverterException
Group
from user catalog model into Group
.source
- predefinedDomain
- Group
objectUserDataConverterException
Copyright © 2002–2016 ICM, Warsaw University. All rights reserved.