Examples of create()


Examples of org.apache.jetspeed.security.spi.PasswordCredentialProvider.create()

                .println("Error!!! PasswordCredentialProvider not available");
        return ENCODING_STRING;
    }
    try
    {
      PasswordCredential credential = provider.create(JETSPEED,ENCODING_STRING);
      if ((credential != null) && (credential.getPassword() != null))
        return new String(credential.getPassword());
      else
          return ENCODING_STRING;
    }

Examples of org.apache.karaf.shell.api.console.SessionFactory.create()

        String response;
        final ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
        final PrintStream printStream = new PrintStream(byteArrayOutputStream);
        final SessionFactory sessionFactory = getOsgiService(SessionFactory.class);
        final Session session = sessionFactory.create(System.in, printStream, System.err);

        final Callable<String> commandCallable = new Callable<String>() {
            @Override
            public String call() throws Exception {
                try {

Examples of org.apache.karaf.shell.console.ConsoleFactory.create()

        LOG.debug("Using Karaf 3.x Console API");
        ServiceReference ref = bundleContext.getServiceReference(KARAF3_CONSOLE_FACTORY);
        if (ref != null) {
            ConsoleFactory factory = (ConsoleFactory) bundleContext.getService(ref);
            Console console = factory.create(commandProcessor, threadIO, in, pipedOut, pipedOut, new WebTerminal(TERM_WIDTH, TERM_HEIGHT), null, null);
            return console;
        }

        return null;
    }

Examples of org.apache.lenya.cms.authoring.DocumentCreator.create()

     */
    public void execute() throws BuildException {
        DocumentCreator creator = new DocumentCreator();

        try {
            creator.create(
                getPublication(),
                new File(getPublication().getDirectory(), getAuthoringPath()),
                getArea(),
                getParentId(),
                getChildId(),

Examples of org.apache.lenya.cms.authoring.NodeCreatorInterface.create()

            for (int i = 0; i < nodes.length; i++) {
                nodes[i].lock();
            }

            //
            creator.create(initialContentsURI, document, parameters);
        } catch (Exception e) {
            throw new DocumentBuildException("call to creator for new document failed", e);
        }

        // Write Lenya-internal meta-data

Examples of org.apache.lenya.cms.authoring.ParentChildCreatorInterface.create()

            allParameters.put(sessionAttributeName, session.getAttribute(sessionAttributeName));
        }

        try {
            Publication publication = PublicationFactory.getPublication(objectModel);
            creator.create(publication, new File(absoluteDoctypesPath + "samples"),
                new File(sitemapParentPath + docsPath + parentid), parentid, childid, childType, childname, language,
                allParameters);
        } catch (Exception e) {
            getLogger().error("Creator threw exception: " + e);
        }

Examples of org.apache.lenya.xml.DOMUtil.create()

    /**
     * Create XML Document
     */
     public Document createDocument() throws Exception {
         DOMUtil du = new DOMUtil();
         Document iml = du.create("<?xml version=\"1.0\"?><identity id=\"" +  username + "\"></identity>");
         du.setAttributeValue(iml, "/identity/password/@type", "md5");
         du.setElementValue(iml, "/identity/password", encryptedPassword);
         du.setElementValue(iml, "/identity/comment", comment);
         for (int i = 0; i < groupnames.size(); i++) {
             du.addElement(iml, "/identity/groups/group", (String) groupnames.elementAt(i));

Examples of org.apache.lucene.analysis.core.KeywordTokenizerFactory.create()

    Reader reader = new StringReader("What's this thing do?");
    KeywordTokenizerFactory factory = new KeywordTokenizerFactory();
    factory.setLuceneMatchVersion(TEST_VERSION_CURRENT);
    Map<String, String> args = Collections.emptyMap();
    factory.init(args);
    Tokenizer stream = factory.create(reader);
    assertTokenStreamContents(stream,
        new String[] {"What's this thing do?"});
  }
 
  /**
 

Examples of org.apache.lucene.analysis.core.LetterTokenizerFactory.create()

    Reader reader = new StringReader("What's this thing do?");
    LetterTokenizerFactory factory = new LetterTokenizerFactory();
    factory.setLuceneMatchVersion(TEST_VERSION_CURRENT);
    Map<String, String> args = Collections.emptyMap();
    factory.init(args);
    Tokenizer stream = factory.create(reader);
    assertTokenStreamContents(stream,
        new String[] {"What", "s", "this", "thing", "do"});
  }
 
  /**
 

Examples of org.apache.lucene.analysis.core.LowerCaseTokenizerFactory.create()

    Reader reader = new StringReader("What's this thing do?");
    LowerCaseTokenizerFactory factory = new LowerCaseTokenizerFactory();
    factory.setLuceneMatchVersion(TEST_VERSION_CURRENT);
    Map<String, String> args = Collections.emptyMap();
    factory.init(args);
    Tokenizer stream = factory.create(reader);
    assertTokenStreamContents(stream,
        new String[] {"what", "s", "this", "thing", "do"});
  }
 
  /**
 
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.