Package org.jitterbit.integration.ldap.structure

Examples of org.jitterbit.integration.ldap.structure.LdapStructureAttributeBuilder


            return structureBuilder.getStructure();
        }

        private void addAttribute(ObjectClassStructureBuilder parent, String name, AttributeUse use,
                        AttributeCardinality cardinality) {
            LdapStructureAttributeBuilder builder = new LdapStructureAttributeBuilder();
            builder.setOid(new NumericOid("1.2.3.4.5"));
            builder.setName(name);
            builder.setSyntaxInfo(new AttributeSyntaxInfo() {

                @Override
                public AttributeDataType getDataType() {
                    return AttributeDataType.STRING;
                }

                @Override
                public String getDescription() {
                    return "Octet String";
                }

                @Override
                public String getOid() {
                    return "1.3.6.1.4.1.1466.115.121.1.40";
                }
            });
            builder.setUse(use);
            builder.setCardinality(cardinality);
            parent.addAttribute(builder.getAttribute());
        }
View Full Code Here


            }
            return attrs.toArray(new LdapStructureAttribute[attrs.size()]);
        }

        private LdapStructureAttribute buildAttributeFromRow(int row) {
            LdapStructureAttributeBuilder builder = new LdapStructureAttributeBuilder();
            builder.setOid(NumericOid.UNKNOWN);
            builder.setName(getAttributeName(row));
            builder.setUse((AttributeUse) getValueAt(row, USE));
            builder.setCardinality((AttributeCardinality) getValueAt(row, CARDINALITY));
            AttributeDataType dataType = (AttributeDataType) getValueAt(row, DATA_TYPE);
            builder.setSyntaxInfo(new SyntaxInfoImpl(dataType));
            return builder.getAttribute();
        }
View Full Code Here

            table.getAdaptee().editCellAt(row, Model.NAME);
            // TODO: Select all
        }

        private LdapStructureAttribute buildNewAttribute() {
            LdapStructureAttributeBuilder builder = new LdapStructureAttributeBuilder();
            builder.setOid(NumericOid.UNKNOWN);
            builder.setName("");
            builder.setUse(AttributeUse.OPTIONAL);
            builder.setCardinality(AttributeCardinality.ONE);
            builder.setSyntaxInfo(new SyntaxInfoImpl(AttributeDataType.STRING));
            return builder.getAttribute();
        }
View Full Code Here

            this.skipObsoleteAttributes = skipObsoleteAttributes;
            syntaxMapper = new HardCodedSyntaxToInfoMapper();
        }
       
        public LdapStructureAttribute getAttribute(String name, boolean required) throws NamingException {
            LdapStructureAttributeBuilder builder = new LdapStructureAttributeBuilder();
            return getAttributeImpl(name, required, builder);
        }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.ldap.structure.LdapStructureAttributeBuilder

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.