Examples of BinaryAttribute


Examples of org.apache.directory.ldapstudio.browser.core.model.schema.BinaryAttribute

    }


    protected void okPressed()
    {
        this.returnAttribute = new BinaryAttribute( typeOrOidCombo.getText() );
        super.okPressed();
    }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.core.model.schema.BinaryAttribute

    protected void editAttribute()
    {
        StructuredSelection sel = ( StructuredSelection ) this.attributeViewer.getSelection();
        if ( !sel.isEmpty() )
        {
            BinaryAttribute attribute = ( BinaryAttribute ) sel.getFirstElement();
            AttributeDialog dialog = new AttributeDialog( getShell(), attribute, this.attributeNamesAndOids );
            if ( dialog.open() == AttributeValueEditorDialog.OK )
            {
                int index = this.attributeList.indexOf( attribute );
                this.attributeList.set( index, dialog.getAttribute() );
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.core.model.schema.BinaryAttribute

    {
        public String getColumnText( Object obj, int index )
        {
            if ( obj instanceof BinaryAttribute )
            {
                BinaryAttribute attribute = ( BinaryAttribute ) obj;
                if ( index == 0 )
                {
                    return attribute.getAttributeNumericOidOrName();
                }
                else if ( index == 1 )
                {
                    if ( attribute.getAttributeNumericOidOrName() != null )
                    {
                        if ( attributeNames2AtdMap.containsKey( attribute.getAttributeNumericOidOrName() ) )
                        {
                            AttributeTypeDescription atd = ( AttributeTypeDescription ) attributeNames2AtdMap
                                .get( attribute.getAttributeNumericOidOrName() );
                            String s = atd.getNumericOID();
                            for ( int i = 0; i < atd.getNames().length; i++ )
                            {
                                if ( !attribute.getAttributeNumericOidOrName().equals( atd.getNames()[i] ) )
                                {
                                    s += ", " + atd.getNames()[i];
                                }
                            }
                            return s;
                        }
                        else if ( attributeOid2AtdMap.containsKey( attribute.getAttributeNumericOidOrName() ) )
                        {
                            AttributeTypeDescription atd = ( AttributeTypeDescription ) attributeOid2AtdMap
                                .get( attribute.getAttributeNumericOidOrName() );
                            return atd.toString();
                        }
                    }
                }
            }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.core.model.schema.BinaryAttribute

        store.setDefault( BrowserCoreConstants.PREFERENCE_LDIF_LINE_SEPARATOR, BrowserCoreConstants.LINE_SEPARATOR );
        store.setDefault( BrowserCoreConstants.PREFERENCE_LDIF_SPACE_AFTER_COLON, true );

        // default binary attributes
        BinaryAttribute[] defaultBinaryAttributes = new BinaryAttribute[]
            { new BinaryAttribute( "0.9.2342.19200300.100.1.7" ), // photo
                // //$NON-NLS-1$
                new BinaryAttribute( "0.9.2342.19200300.100.1.53" ), // personalSignature
                // //$NON-NLS-1$
                new BinaryAttribute( "0.9.2342.19200300.100.1.55" ), // audio
                // //$NON-NLS-1$
                new BinaryAttribute( "0.9.2342.19200300.100.1.60" ), // jpegPhoto
                // //$NON-NLS-1$
                new BinaryAttribute( "1.3.6.1.4.1.42.2.27.4.1.8" ), // javaSerializedData
                // //$NON-NLS-1$
                new BinaryAttribute( "1.3.6.1.4.1.1466.101.120.35" ), // thumbnailPhoto
                // //$NON-NLS-1$
                new BinaryAttribute( "1.3.6.1.4.1.1466.101.120.36" ), // thumbnailLogo
                // //$NON-NLS-1$
                new BinaryAttribute( "2.5.4.35" ), // userPassword
                // //$NON-NLS-1$
                new BinaryAttribute( "2.5.4.36" ), // userCertificate
                // //$NON-NLS-1$
                new BinaryAttribute( "2.5.4.37" ), // cACertificate
                // //$NON-NLS-1$
                new BinaryAttribute( "2.5.4.38" ), // authorityRevocationList
                // //$NON-NLS-1$
                new BinaryAttribute( "2.5.4.39" ), // certificateRevocationList
                // //$NON-NLS-1$
                new BinaryAttribute( "2.5.4.40" ), // crossCertificatePair
                // //$NON-NLS-1$
                new BinaryAttribute( "2.5.4.45" ), // x500UniqueIdentifier
            // //$NON-NLS-1$
            };
        BrowserCorePlugin.getDefault().getCorePreferences().setDefaultBinaryAttributes( defaultBinaryAttributes );

        // default binary syntaxes
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.core.model.schema.BinaryAttribute

    }


    protected void okPressed()
    {
        this.returnAttribute = new BinaryAttribute( typeOrOidCombo.getText() );
        super.okPressed();
    }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.core.model.schema.BinaryAttribute

    protected void editAttribute()
    {
        StructuredSelection sel = ( StructuredSelection ) this.attributeViewer.getSelection();
        if ( !sel.isEmpty() )
        {
            BinaryAttribute attribute = ( BinaryAttribute ) sel.getFirstElement();
            AttributeDialog dialog = new AttributeDialog( getShell(), attribute, this.attributeNamesAndOids );
            if ( dialog.open() == AttributeValueEditorDialog.OK )
            {
                int index = this.attributeList.indexOf( attribute );
                this.attributeList.set( index, dialog.getAttribute() );
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.core.model.schema.BinaryAttribute

    {
        public String getColumnText( Object obj, int index )
        {
            if ( obj instanceof BinaryAttribute )
            {
                BinaryAttribute attribute = ( BinaryAttribute ) obj;
                if ( index == 0 )
                {
                    return attribute.getAttributeNumericOidOrName();
                }
                else if ( index == 1 )
                {
                    if ( attribute.getAttributeNumericOidOrName() != null )
                    {
                        if ( attributeNames2AtdMap.containsKey( attribute.getAttributeNumericOidOrName() ) )
                        {
                            AttributeTypeDescription atd = ( AttributeTypeDescription ) attributeNames2AtdMap
                                .get( attribute.getAttributeNumericOidOrName() );
                            String s = atd.getNumericOID();
                            for ( int i = 0; i < atd.getNames().length; i++ )
                            {
                                if ( !attribute.getAttributeNumericOidOrName().equals( atd.getNames()[i] ) )
                                {
                                    s += ", " + atd.getNames()[i];
                                }
                            }
                            return s;
                        }
                        else if ( attributeOid2AtdMap.containsKey( attribute.getAttributeNumericOidOrName() ) )
                        {
                            AttributeTypeDescription atd = ( AttributeTypeDescription ) attributeOid2AtdMap
                                .get( attribute.getAttributeNumericOidOrName() );
                            return atd.toString();
                        }
                    }
                }
            }
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.model.schema.BinaryAttribute

    private void editAttribute()
    {
        StructuredSelection sel = ( StructuredSelection ) attributeViewer.getSelection();
        if ( !sel.isEmpty() )
        {
            BinaryAttribute attribute = ( BinaryAttribute ) sel.getFirstElement();
            AttributeDialog dialog = new AttributeDialog( getShell(), attribute, attributeNamesAndOids );
            if ( dialog.open() == AttributeValueEditorDialog.OK )
            {
                int index = attributeList.indexOf( attribute );
                attributeList.set( index, dialog.getAttribute() );
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.model.schema.BinaryAttribute

    {
        public String getColumnText( Object obj, int index )
        {
            if ( obj instanceof BinaryAttribute )
            {
                BinaryAttribute attribute = ( BinaryAttribute ) obj;
                if ( index == 0 )
                {
                    return attribute.getAttributeNumericOidOrName();
                }
                else if ( index == 1 )
                {
                    if ( attribute.getAttributeNumericOidOrName() != null )
                    {
                        if ( attributeNames2AtdMap.containsKey( attribute.getAttributeNumericOidOrName() ) )
                        {
                            AttributeTypeDescription atd = ( AttributeTypeDescription ) attributeNames2AtdMap
                                .get( attribute.getAttributeNumericOidOrName() );
                            String s = atd.getNumericOid();
                            for ( String attributeName : atd.getNames() )
                            {
                                if ( !attribute.getAttributeNumericOidOrName().equals( attributeName ) )
                                {
                                    s += ", " + attributeName; //$NON-NLS-1$
                                }
                            }
                            return s;
                        }
                        else if ( attributeOid2AtdMap.containsKey( attribute.getAttributeNumericOidOrName() ) )
                        {
                            AttributeTypeDescription atd = ( AttributeTypeDescription ) attributeOid2AtdMap
                                .get( attribute.getAttributeNumericOidOrName() );
                            return SchemaUtils.toString( atd );
                        }
                        else if ( Utils.getOidDescription( attribute.getAttributeNumericOidOrName() ) != null )
                        {
                            return Utils.getOidDescription( attribute.getAttributeNumericOidOrName() );
                        }
                    }
                }
            }
            return null;
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.model.schema.BinaryAttribute

        store.setDefault( BrowserCoreConstants.PREFERENCE_LDIF_LINE_SEPARATOR, BrowserCoreConstants.LINE_SEPARATOR );
        store.setDefault( BrowserCoreConstants.PREFERENCE_LDIF_SPACE_AFTER_COLON, true );

        // default binary attributes
        BinaryAttribute[] defaultBinaryAttributes = new BinaryAttribute[]
            { new BinaryAttribute( "0.9.2342.19200300.100.1.7" ), // photo //$NON-NLS-1$
                new BinaryAttribute( "0.9.2342.19200300.100.1.53" ), // personalSignature //$NON-NLS-1$
                new BinaryAttribute( "0.9.2342.19200300.100.1.55" ), // audio //$NON-NLS-1$
                new BinaryAttribute( "0.9.2342.19200300.100.1.60" ), // jpegPhoto //$NON-NLS-1$
                new BinaryAttribute( "1.3.6.1.4.1.42.2.27.4.1.8" ), // javaSerializedData //$NON-NLS-1$
                new BinaryAttribute( "1.3.6.1.4.1.1466.101.120.35" ), // thumbnailPhoto //$NON-NLS-1$
                new BinaryAttribute( "1.3.6.1.4.1.1466.101.120.36" ), // thumbnailLogo //$NON-NLS-1$
                new BinaryAttribute( "2.5.4.35" ), // userPassword //$NON-NLS-1$
                new BinaryAttribute( "2.5.4.36" ), // userCertificate //$NON-NLS-1$
                new BinaryAttribute( "2.5.4.37" ), // cACertificate //$NON-NLS-1$
                new BinaryAttribute( "2.5.4.38" ), // authorityRevocationList //$NON-NLS-1$
                new BinaryAttribute( "2.5.4.39" ), // certificateRevocationList //$NON-NLS-1$
                new BinaryAttribute( "2.5.4.40" ), // crossCertificatePair //$NON-NLS-1$
                new BinaryAttribute( "2.5.4.45" ), // x500UniqueIdentifier //$NON-NLS-1$
                new BinaryAttribute( "1.2.840.113556.1.4.2" ), // objectGUID //$NON-NLS-1$
                new BinaryAttribute( "1.2.840.113556.1.4.146" ), // objectSid //$NON-NLS-1$
            };
        BrowserCorePlugin.getDefault().getCorePreferences().setDefaultBinaryAttributes( defaultBinaryAttributes );

        // default binary syntaxes
        BinarySyntax[] defaultBinarySyntaxes = new BinarySyntax[]
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.