Examples of IEntry


Examples of com.google.gdata.data.IEntry

      responseClass = BaseEntry.class;
    }
    boolean isAdapting = isAdapting(entryClass);

    // Create a new entry instance.
    IEntry entry;
    try {
      entry = entryClass.newInstance();
    } catch (IllegalAccessException iae) {
      throw new ServiceException(
          CoreErrorDomain.ERR.cantCreateEntry, iae);
View Full Code Here

Examples of net.sourceforge.yagsbook.encyclopedia.interfaces.IEntry

     * @author Samuel Penn.
     */
    private class TitleCompare implements Comparator {
        public int
        compare(Object o1, Object o2) {
            IEntry    e1 = (IEntry)o1;
            IEntry    e2 = (IEntry)o2;

            return e1.getTitle().compareTo(e2.getTitle());
        }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.core.model.IEntry

                {

                    Object o = entryEditor.getMainWidget().getViewer().getInput();
                    if ( o != null && o instanceof IEntry )
                    {
                        IEntry entry = ( IEntry ) o;
                        IAttribute[] attributes = entry.getAttributes();

                        List selectionList = new ArrayList();

                        Iterator it = ( ( IStructuredSelection ) event.getSelection() ).iterator();
                        while ( it.hasNext() )
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.model.IEntry

            objectToSelect = bookmark;
        }
        if ( obj instanceof IEntry )
        {
            IEntry entry = ( IEntry ) obj;

            universalListener.setInput( entry.getBrowserConnection() );

            List<IEntry> entryList = new ArrayList<IEntry>();
            IEntry tempEntry = entry;
            while ( tempEntry.getParententry() != null )
            {
                IEntry parentEntry = tempEntry.getParententry();
                entryList.add( 0, tempEntry );
                tempEntry = parentEntry;
            }

            for ( IEntry childEntry : entryList )
            {
                IEntry parentEntry = childEntry.getParententry();
                if ( !parentEntry.isChildrenInitialized() )
                {
                    parentEntry.setChildrenInitialized( true );
                    parentEntry.setHasMoreChildren( true );
                }
                if ( !Arrays.asList( parentEntry.getChildren() ).contains( childEntry ) )
                {
                    parentEntry.addChild( childEntry );
                }

                // force refresh of each parent, beginning from the root
                // if the entry to select was lazy initialized then the
                // JFace model has no knowledge about it so we must
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.model.IEntry

                    StructuredSelection selection = ( StructuredSelection ) context.getSelection();
                    Object obj = selection.getFirstElement();
                    if ( obj instanceof IValue )
                    {
                        IValue value = ( IValue ) obj;
                        IEntry entry = value.getAttribute().getEntry();
                        // The entry may be a clone, lookup original entry from entry cache.
                        // The result may be null, in that case the selection won't change.
                        entry =  entry.getBrowserConnection().getEntryFromCache( entry.getDn() );
                        select( entry );
                    }
                    else if ( obj instanceof IAttribute )
                    {
                        IAttribute attribute = ( IAttribute ) obj;
                        IEntry entry = attribute.getEntry();
                        // The entry may be a clone, lookup original entry from entry cache.
                        // The result may be null, in that case the selection won't change.
                        entry = entry.getBrowserConnection().getEntryFromCache( entry.getDn() );
                        select( entry );
                    }
                    else if ( obj instanceof ISearchResult )
                    {
                        ISearchResult sr = ( ISearchResult ) obj;
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.model.IEntry

                IEditorPart editor = ( IEditorPart ) part;
                IEditorInput input = editor.getEditorInput();
                if ( input != null && input instanceof EntryEditorInput )
                {
                    EntryEditorInput eei = ( EntryEditorInput ) input;
                    IEntry entry = eei.getResolvedEntry();
                    if ( entry != null )
                    {
                        objectToSelect = entry.getBrowserConnection().getConnection();
                    }
                }
                else if ( input != null && input instanceof SearchResultEditorInput )
                {
                    SearchResultEditorInput srei = ( SearchResultEditorInput ) input;
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.model.IEntry

    /**
     * {@inheritDoc}
     */
    public void decorate( Object element, IDecoration decoration )
    {
        IEntry entry = null;
        if ( element instanceof ISearchResult )
        {
            entry = ( ( ISearchResult ) element ).getEntry();
            decoration.addOverlay( BrowserUIPlugin.getDefault().getImageDescriptor(
                BrowserUIConstants.IMG_OVR_SEARCHRESULT ), IDecoration.BOTTOM_RIGHT );
        }
        else if ( element instanceof IEntry )
        {
            entry = ( IEntry ) element;
            if ( entry.getChildrenFilter() != null )
            {
                decoration.addOverlay( BrowserUIPlugin.getDefault().getImageDescriptor(
                    BrowserUIConstants.IMG_OVR_FILTERED ), IDecoration.BOTTOM_RIGHT );
            }
        }
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.model.IEntry

                    message.append( BrowserCoreConstants.LINE_SEPARATOR );
                    message.append( BrowserCoreConstants.LINE_SEPARATOR );
                }

                // validate if value is allowed
                IEntry entry = value.getAttribute().getEntry();
                Collection<AttributeTypeDescription> allAtds = SchemaUtils.getAllAttributeTypeDescriptions( entry );
                AttributeTypeDescription atd = value.getAttribute().getAttributeTypeDescription();
                if ( !allAtds.contains( atd ) )
                {
                    message.append( NLS.bind( Messages.getString( "OpenBestEditorAction.AttributeNotInSubSchema" ), //$NON-NLS-1$
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.model.IEntry

                : scope == SearchScope.ONELEVEL ? SearchControls.ONELEVEL_SCOPE : SearchControls.OBJECT_SCOPE;

            int num = 0;
            for ( int i = 0; !monitor.isCanceled() && i < entriesToCopy.length; i++ )
            {
                IEntry entryToCopy = entriesToCopy[i];

                if ( scope == SearchScope.OBJECT
                    || !parent.getDn().getNormName().endsWith( entryToCopy.getDn().getNormName() ) )
                {
                    dummyMonitor.reset();
                    num = copyEntry( entryToCopy, parent, null, copyScope, num, dialog, dummyMonitor, monitor );
                }
                else
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.model.IEntry

                                    targetBrowserConnection.getConnection().getJNDIConnectionWrapper().modifyEntry(
                                        newLdapDn.getUpName(), mis.toArray( new ModificationItem[mis.size()] ), null,
                                        dummyMonitor, null );

                                    // force reloading of attributes
                                    IEntry newEntry = targetBrowserConnection.getEntryFromCache( newLdapDn );
                                    if ( newEntry != null )
                                    {
                                        newEntry.setAttributesInitialized( false );
                                    }

                                    break;

                                case RENAME_AND_CONTINUE:
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.