Package org.apache.directory.shared.converter.schema

Examples of org.apache.directory.shared.converter.schema.ObjectClassHolder


        // Generating LDIF for Object Classes
        List<ObjectClassImpl> sortedObjectClasses = getSortedObjectClasses( schema.getObjectClasses() );
        for ( ObjectClassImpl oc : sortedObjectClasses )
        {
            ObjectClassHolder holder = new ObjectClassHolder( oc.getOid() );
            holder.setClassType( oc.getType() );
            holder.setDescription( oc.getDescription() );
            List<String> mayList = new ArrayList<String>();
            for ( String may : oc.getMayNamesList() )
            {
                mayList.add( may );
            }
            holder.setMay( mayList );
            List<String> mustList = new ArrayList<String>();
            for ( String must : oc.getMustNamesList() )
            {
                mustList.add( must );
            }
            holder.setMust( mustList );
            List<String> names = new ArrayList<String>();
            for ( String name : oc.getNamesRef() )
            {
                names.add( name );
            }
            holder.setNames( names );
            List<String> superiorList = new ArrayList<String>();
            for ( String superior : oc.getSuperClassesNames() )
            {
                superiorList.add( superior );
            }
            holder.setSuperiors( superiorList );
            holder.setObsolete( oc.isObsolete() );

            sb.append( holder.toLdif( schema.getName() ) + "\n" ); //$NON-NLS-1$
        }

        // Generation the Syntax Checkers Node
        sb.append( "dn: ou=syntaxCheckers, cn=" + schema.getName() + ", ou=schema\n" ); //$NON-NLS-1$ //$NON-NLS-2$
        sb.append( "objectclass: organizationalUnit\n" ); //$NON-NLS-1$
View Full Code Here


        sb.append( "\n" );

        // Generating LDIF for Object Classes
        for ( ObjectClassImpl oc : schema.getObjectClasses() )
        {
            ObjectClassHolder holder = new ObjectClassHolder( oc.getOid() );
            holder.setClassType( oc.getType() );
            holder.setDescription( oc.getDescription() );
            List<String> mayList = new ArrayList<String>();
            for ( String may : oc.getMayNamesList() )
            {
                mayList.add( may );
            }
            holder.setMay( mayList );
            List<String> mustList = new ArrayList<String>();
            for ( String must : oc.getMustNamesList() )
            {
                mustList.add( must );
            }
            holder.setMust( mustList );
            List<String> names = new ArrayList<String>();
            for ( String name : oc.getNamesRef() )
            {
                names.add( name );
            }
            holder.setNames( names );
            List<String> superiorList = new ArrayList<String>();
            for ( String superior : oc.getSuperClassesNames() )
            {
                superiorList.add( superior );
            }
            holder.setSuperiors( superiorList );
            holder.setObsolete( oc.isObsolete() );

            sb.append( holder.toLdif( schema.getName() ) + "\n" );
        }

        // Generation the Syntax Checkers Node
        sb.append( "dn: ou=syntaxCheckers, cn=" + schema.getName() + ", ou=schema\n" );
        sb.append( "objectclass: organizationalUnit\n" );
View Full Code Here

                        sb.append( "\n" );

                        // Generating LDIF for Object Classes
                        for ( ObjectClass oc : schema.getObjectClassesAsArray() )
                        {
                            ObjectClassHolder holder = new ObjectClassHolder( oc.getOid() );
                            holder.setClassType( oc.getClassType() );
                            holder.setDescription( oc.getDescription() );
                            List<String> mayList = new ArrayList<String>();
                            for ( String may : oc.getMay() )
                            {
                                mayList.add( may );
                            }
                            holder.setMay( mayList );
                            List<String> mustList = new ArrayList<String>();
                            for ( String must : oc.getMust() )
                            {
                                mustList.add( must );
                            }
                            holder.setMust( mustList );
                            List<String> names = new ArrayList<String>();
                            for ( String name : oc.getNames() )
                            {
                                names.add( name );
                            }
                            holder.setNames( names );
                            List<String> superiorList = new ArrayList<String>();
                            for ( String superior : oc.getSuperiors() )
                            {
                                superiorList.add( superior );
                            }
                            holder.setSuperiors( superiorList );
                            holder.setObsolete( oc.isObsolete() );

                            sb.append( holder.toLdif( schema.getName() ) + "\n" );
                        }

                        // Generation the Syntax Checkers Node
                        sb.append( "dn: ou=syntaxCheckers, cn=" + schema.getName() + ", ou=schema\n" );
                        sb.append( "objectclass: organizationalUnit\n" );
View Full Code Here

        sb.append( "\n" );

        // Generating LDIF for Object Classes
        for ( ObjectClassImpl oc : schema.getObjectClasses() )
        {
            ObjectClassHolder holder = new ObjectClassHolder( oc.getOid() );
            holder.setClassType( oc.getType() );
            holder.setDescription( oc.getDescription() );
            List<String> mayList = new ArrayList<String>();
            for ( String may : oc.getMayNamesList() )
            {
                mayList.add( may );
            }
            holder.setMay( mayList );
            List<String> mustList = new ArrayList<String>();
            for ( String must : oc.getMustNamesList() )
            {
                mustList.add( must );
            }
            holder.setMust( mustList );
            List<String> names = new ArrayList<String>();
            for ( String name : oc.getNames() )
            {
                names.add( name );
            }
            holder.setNames( names );
            List<String> superiorList = new ArrayList<String>();
            for ( String superior : oc.getSuperClassesNames() )
            {
                superiorList.add( superior );
            }
            holder.setSuperiors( superiorList );
            holder.setObsolete( oc.isObsolete() );

            sb.append( holder.toLdif( schema.getName() ) + "\n" );
        }

        // Generation the Syntax Checkers Node
        sb.append( "dn: ou=syntaxCheckers, cn=" + schema.getName() + ", ou=schema\n" );
        sb.append( "objectclass: organizationalUnit\n" );
View Full Code Here

        sb.append( "\n" );

        // Generating LDIF for Object Classes
        for ( ObjectClassImpl oc : schema.getObjectClasses() )
        {
            ObjectClassHolder holder = new ObjectClassHolder( oc.getOid() );
            holder.setClassType( oc.getType() );
            holder.setDescription( oc.getDescription() );
            List<String> mayList = new ArrayList<String>();
            for ( String may : oc.getMayNamesList() )
            {
                mayList.add( may );
            }
            holder.setMay( mayList );
            List<String> mustList = new ArrayList<String>();
            for ( String must : oc.getMustNamesList() )
            {
                mustList.add( must );
            }
            holder.setMust( mustList );
            List<String> names = new ArrayList<String>();
            for ( String name : oc.getNames() )
            {
                names.add( name );
            }
            holder.setNames( names );
            List<String> superiorList = new ArrayList<String>();
            for ( String superior : oc.getSuperClassesNames() )
            {
                superiorList.add( superior );
            }
            holder.setSuperiors( superiorList );
            holder.setObsolete( oc.isObsolete() );

            sb.append( holder.toLdif( schema.getName() ) + "\n" );
        }

        // Generation the Syntax Checkers Node
        sb.append( "dn: ou=syntaxCheckers, cn=" + schema.getName() + ", ou=schema\n" );
        sb.append( "objectclass: organizationalUnit\n" );
View Full Code Here

        sb.append( "\n" );

        // Generating LDIF for Object Classes
        for ( ObjectClassImpl oc : schema.getObjectClasses() )
        {
            ObjectClassHolder holder = new ObjectClassHolder( oc.getOid() );
            holder.setClassType( oc.getType() );
            holder.setDescription( oc.getDescription() );
            List<String> mayList = new ArrayList<String>();
            for ( String may : oc.getMayNamesList() )
            {
                mayList.add( may );
            }
            holder.setMay( mayList );
            List<String> mustList = new ArrayList<String>();
            for ( String must : oc.getMustNamesList() )
            {
                mustList.add( must );
            }
            holder.setMust( mustList );
            List<String> names = new ArrayList<String>();
            for ( String name : oc.getNamesRef() )
            {
                names.add( name );
            }
            holder.setNames( names );
            List<String> superiorList = new ArrayList<String>();
            for ( String superior : oc.getSuperClassesNames() )
            {
                superiorList.add( superior );
            }
            holder.setSuperiors( superiorList );
            holder.setObsolete( oc.isObsolete() );

            sb.append( holder.toLdif( schema.getName() ) + "\n" );
        }

        // Generation the Syntax Checkers Node
        sb.append( "dn: ou=syntaxCheckers, cn=" + schema.getName() + ", ou=schema\n" );
        sb.append( "objectclass: organizationalUnit\n" );
View Full Code Here

                        sb.append( "\n" );

                        // Generating LDIF for Object Classes
                        for ( ObjectClass oc : schema.getObjectClassesAsArray() )
                        {
                            ObjectClassHolder holder = new ObjectClassHolder( oc.getOid() );
                            holder.setClassType( oc.getClassType() );
                            holder.setDescription( oc.getDescription() );
                            List<String> mayList = new ArrayList<String>();
                            for ( String may : oc.getMay() )
                            {
                                mayList.add( may );
                            }
                            holder.setMay( mayList );
                            List<String> mustList = new ArrayList<String>();
                            for ( String must : oc.getMust() )
                            {
                                mustList.add( must );
                            }
                            holder.setMust( mustList );
                            List<String> names = new ArrayList<String>();
                            for ( String name : oc.getNames() )
                            {
                                names.add( name );
                            }
                            holder.setNames( names );
                            List<String> superiorList = new ArrayList<String>();
                            for ( String superior : oc.getSuperiors() )
                            {
                                superiorList.add( superior );
                            }
                            holder.setSuperiors( superiorList );
                            holder.setObsolete( oc.isObsolete() );

                            sb.append( holder.toLdif( schema.getName() ) + "\n" );
                        }

                        // Generation the Syntax Checkers Node
                        sb.append( "dn: ou=syntaxCheckers, cn=" + schema.getName() + ", ou=schema\n" );
                        sb.append( "objectclass: organizationalUnit\n" );
View Full Code Here

TOP

Related Classes of org.apache.directory.shared.converter.schema.ObjectClassHolder

Copyright © 2018 www.massapicom. 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.