Examples of modify()


Examples of org.apache.directory.server.core.api.OperationManager.modify()

        ModifyOperationContext modifyContext = new ModifyOperationContext( this, dn, serverModifications );

        modifyContext.setLogChange( log );

        OperationManager operationManager = directoryService.getOperationManager();
        operationManager.modify( modifyContext );
    }


    /**
     * {@inheritDoc}
 
View Full Code Here

Examples of org.apache.directory.server.core.api.interceptor.Interceptor.modify()

            eagerlyPopulateFields( modifyContext );

            // Call the Modify method
            Interceptor head = directoryService.getInterceptor( modifyContext.getNextInterceptor() );

            head.modify( modifyContext );
        }
        finally
        {
            unlockWrite();
        }
View Full Code Here

Examples of org.apache.directory.server.core.api.partition.Partition.modify()

            return;
        }

        Partition partition = getPartition( modifyContext.getDn() );

        partition.modify( modifyContext );

        if ( modifyContext.isPushToEvtInterceptor() )
        {
            directoryService.getInterceptor( InterceptorEnum.EVENT_INTERCEPTOR.getName() ).modify( modifyContext );
        }
View Full Code Here

Examples of org.apache.directory.server.core.interceptor.InterceptorChain.modify()

            // Unlock the ReferralManager
            directoryService.getReferralManager().unlock();

            // Call the Add method
            InterceptorChain interceptorChain = directoryService.getInterceptorChain();
            interceptorChain.modify( opContext );
        }
        finally
        {
            pop();
View Full Code Here

Examples of org.apache.directory.server.core.partition.ldif.SingleFileLdifPartition.modify()

        modItems.add( mod );
        modOpCtx.setModItems( modItems );

        modOpCtx.setDn( contextEntry.getDn() );

        partition.modify( modOpCtx );
        RandomAccessFile file = new RandomAccessFile( new File( partition.getPartitionPath() ), "r" );
        assertEquals( getEntryLdifLen( modOpCtx.getAlteredEntry() ), file.length() );

        // perform the above operation, this time without causing change to the entry's size
        modOpCtx = new ModifyOperationContext( mockSession );
View Full Code Here

Examples of org.apache.jackrabbit.vault.fs.api.VaultFsTransaction.modify()

    private void doPut(File local, VaultFile remote) {
        try {
            FileInputSource is = new FileInputSource(local);
            VaultFsTransaction tx = remote.getFileSystem().startTransaction();
            tx.modify(remote, is);
            tx.commit();
            System.out.println(local.getName() + "  " + local.length() + " bytes.");
        } catch (IOException e) {
            throw new ExecutionException("Error while uploading file: " + e);
        } catch (RepositoryException e) {
View Full Code Here

Examples of org.dom4j.jaxb.JAXBModifier.modify()

            File inputFile = new File("xml/jaxb/primer.xml");

            JAXBModifier jaxbReader = new JAXBModifier("org.dom4j.test.primer");
            jaxbReader.addObjectModifier("/purchaseOrders/purchaseOrder",
                    new PurchaseOrderDateModifier());
            Document doc = jaxbReader.modify(inputFile);

            System.out.println("Modified document:");
            System.out.println(doc.asXML());
            System.out.println();
        } catch (Exception e) {
View Full Code Here

Examples of org.eclipse.jface.viewers.ICellModifier.modify()

    public void testCellModifierModify() throws Exception {
        TreeViewer testingGetViewer = editor.testingGetViewer();

        ICellModifier cellModifier = testingGetViewer.getCellModifier();

        cellModifier.modify(testingGetViewer.getTree().getItem(0), "0", "the_new_name"); //$NON-NLS-1$//$NON-NLS-2$

        AttributeDescriptor attributeType = getAttributeDescriptor(0);
        assertEquals("the_new_name", attributeType.getName()); //$NON-NLS-1$

        for( int i = 0; i < FeatureTypeEditor.testingGetTYPES().size(); i++ ) {
View Full Code Here

Examples of org.eclipse.jst.j2ee.model.IEARModelProvider.modify()

        newLibDir = newLibDir.substring(1);
      }
      String oldLibDir = app.getLibraryDirectory();
      if (newLibDir.equals(oldLibDir)) return;
      final String libDir = newLibDir;
      earModel.modify(new Runnable() {
        @Override
    public void run() {    
        app.setLibraryDirectory(libDir);
      }}, null);
    }
View Full Code Here

Examples of org.eclipse.jst.j2ee.model.IModelProvider.modify()

          final IModelProvider provider = jsfUtil.getModelProvider();
          final IPath webXMLPath = new Path("WEB-INF").append("web.xml"); //$NON-NLS-1$ //$NON-NLS-2$
          if (jsfUtil.isJavaEE(provider.getModelObject()))
          {
              provider.modify(new UpdateWebXMLForJavaEE(project, config, jsfUtil),
                      doesDDFileExist(project, webXMLPath) ? webXMLPath
                              : IModelProvider.FORCESAVE);
          } else
          {// must be 2.3 or 2.4
              provider.modify(new UpdateWebXMLForJ2EE(project, config, jsfUtil),
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.