pl.edu.icm.yadda.service2.user
Class AAL2UserDataConverter
java.lang.Object
pl.edu.icm.yadda.service2.user.AAL2UserDataConverter
public class AAL2UserDataConverter
- extends java.lang.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 |
AAL2UserDataConverter
public AAL2UserDataConverter()
convert
public static UserData convert(User source,
java.lang.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
prepareRoles
protected static java.util.Set<java.lang.String> prepareRoles(java.util.List<ExternalReference<Role>> roles)
throws UserDataConverterException
- Throws:
UserDataConverterException
prepareGroups
protected static java.util.Set<GroupName> prepareGroups(java.util.List<ExternalReference<Group>> groups,
java.lang.String predefinedDomain)
throws UserDataConverterException
- Throws:
UserDataConverterException
prepareCredentials
protected static java.util.List<Credential> prepareCredentials(java.lang.String password)
convert
public static Group convert(Group source,
java.lang.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.