Package plugins.Freetalk

Examples of plugins.Freetalk.OwnIdentity


        writeHTMLReply(ctx, 403, "Forbidden", "Invalid form password.");
        return;
      }

      try {
        OwnIdentity ownIdentity = mFreetalk.getIdentityManager().getOwnIdentity(request.getPartAsString("OwnIdentityID", 64));
        mSessionManager.createSession(ownIdentity.getID(), ctx);
      } catch(NoSuchIdentityException e) {
        throw new RedirectException(logIn);
      }

      writeTemporaryRedirect(ctx, "Login successful, redirecting to home page", Freetalk.PLUGIN_URI + "/");
View Full Code Here


      HTMLNode row = identitiesTable.addChild("tr");
      row.addChild("th", "Name");
      row.addChild("th", "Freetalk address");

      while (ownIdentities.hasNext()) {
        OwnIdentity id = ownIdentities.next();
        row = identitiesTable.addChild("tr");
        row.addChild("td", id.getNickname());

        row.addChild("td", id.getFreetalkAddress());
        /*
        HTMLNode lastUpdateCell = row.addChild("td");
       
        if (id.getLastInsert() == null) {
          lastUpdateCell.addChild("p", "Insert in progress...");
View Full Code Here

     */
    private void handleListSubscribedBoards(final PluginReplySender replysender, final SimpleFieldSet params)
    throws PluginNotFoundException, InvalidParameterException, NoSuchIdentityException
    {
        final String ownIdentityID = getMandatoryParameter(params, "OwnIdentityID");
        OwnIdentity ownIdentity = mFreetalk.getIdentityManager().getOwnIdentity(ownIdentityID);
       
        synchronized(mFreetalk.getMessageManager()) {
            for(final SubscribedBoard board : mFreetalk.getMessageManager().subscribedBoardIteratorSortedByName(ownIdentity)) {  // TODO: Optimization: Use a non sorting function.
                final SimpleFieldSet sfs = new SimpleFieldSet(true);
                sfs.putOverwrite("Message", "SubscribedBoard");
View Full Code Here

                    }
                }

                // evaluate authorIdentity
                final String authorIdentityIDString = getMandatoryParameter(params, "AuthorIdentityID");
                final OwnIdentity authorIdentity;
                try {
                    authorIdentity = mFreetalk.getIdentityManager().getOwnIdentity(authorIdentityIDString);
                } catch(final NoSuchIdentityException e) {
                    throw new InvalidParameterException("No own identity found for AuthorIdentityID");
                }
View Full Code Here

        if (mAuthenticatedUser != null) {
            printStatusLine("502 Command unavailable");
            return;
        }
       
        OwnIdentity oi = null;
        try {
          final String id = IdentityManager.extractIdFromFreetalkAddress(value);
            oi = mIdentityManager.getOwnIdentity(id);
        } catch (NoSuchIdentityException e) {
        }
View Full Code Here

TOP

Related Classes of plugins.Freetalk.OwnIdentity

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.