Package org.springframework.ldap.core

Examples of org.springframework.ldap.core.DistinguishedName.toCompactString()


    }
   
    public Entity getEntityByInternalId(String internalId){
        Entity resultEntity = null;
        DistinguishedName principalDN = getRelativeDN(internalId);
        String relativeDN = principalDN.toCompactString();
        String searchDNStr = searchDN.toCompactString();
        if (relativeDN.equals(searchDNStr) || relativeDN.endsWith(searchDNStr)){
            internalId = principalDN.toCompactString();
           
            ClassLoader currentClassLoader = Thread.currentThread().getContextClassLoader();
View Full Code Here


        Entity resultEntity = null;
        DistinguishedName principalDN = getRelativeDN(internalId);
        String relativeDN = principalDN.toCompactString();
        String searchDNStr = searchDN.toCompactString();
        if (relativeDN.equals(searchDNStr) || relativeDN.endsWith(searchDNStr)){
            internalId = principalDN.toCompactString();
           
            ClassLoader currentClassLoader = Thread.currentThread().getContextClassLoader();
            try
            {
                Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());
View Full Code Here

    public Entity getParentEntity(Entity childEntity) throws SecurityException
    {
        DistinguishedName parentDN = new DistinguishedName(childEntity.getInternalId());
        parentDN.removeLast();
        return getEntityByInternalId(parentDN.toCompactString());
    }

    protected String getInternalId(Entity entity, boolean required) throws SecurityException
    {
        if (entity.getInternalId() != null)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.