|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.eng.rdlab.soa3.um.rest.utils.Utils
public class Utils
This class provides utilities to manage LDAP's features and object mapping
| Constructor Summary | |
|---|---|
Utils()
|
|
| Method Summary | |
|---|---|
static UserModel |
convertUserModel(it.eng.rdlab.um.ldap.user.bean.LdapUserModel ldapUserModel)
Converts the LDAPUserModel to UserModel |
static String |
generateGroupsDN(String organizationName)
Generates the groups' distinguished name under an organization |
static String |
generatePeopleDN(String organizationName)
Generates the people's distinguished name under an organization |
static String |
generateRolesDN(String organizationName)
Generates the roles' distinguished name under an organization |
static org.codehaus.jackson.map.ObjectMapper |
getMapper()
Chooses JAXB as the annotation for the serialization/deserialization |
static String |
getOrganizationNameFromDN(String organizationDn)
Gets the organization's name from distinguished name |
static String |
groupDNBuilder(String groupId,
String organizationName)
Builds the group's distinguished name |
static void |
initLdap(String adminUsername,
String adminPassword,
String ldapUrl)
Initializes the LDAP server with admin's credential and LDAP URL |
static String |
organizationDNBuilder(String organizationName)
Builds the organization's distinguished name |
static String |
roleDNBuilder(String roleId,
String organizationName)
Builds the role's distinguished name |
static String |
userDNBuilder(String userId,
String organizationName)
Builds the user's distinguished name |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Utils()
| Method Detail |
|---|
public static String organizationDNBuilder(String organizationName)
organizationName - String
public static String userDNBuilder(String userId,
String organizationName)
userId - StringorganizationName - String
public static String roleDNBuilder(String roleId,
String organizationName)
roleId - StringorganizationName - String
public static String groupDNBuilder(String groupId,
String organizationName)
groupId - StringorganizationName - String
public static String getOrganizationNameFromDN(String organizationDn)
organizationDn - String
public static void initLdap(String adminUsername,
String adminPassword,
String ldapUrl)
throws NamingException
adminUsername - StringadminPassword - StringldapUrl - String
NamingExceptionpublic static UserModel convertUserModel(it.eng.rdlab.um.ldap.user.bean.LdapUserModel ldapUserModel)
ldapUserModel - LdapUserModel
public static String generatePeopleDN(String organizationName)
organizationName - String
public static String generateGroupsDN(String organizationName)
organizationName - String
public static String generateRolesDN(String organizationName)
organizationName - String
public static org.codehaus.jackson.map.ObjectMapper getMapper()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||