Examples of WoTOwnIdentity


Examples of plugins.Freetalk.WoT.WoTOwnIdentity

      try {
        WoTIdentityManager identityManager = mFreetalk.getIdentityManager();
        WoTMessageManager messageManager = mFreetalk.getMessageManager();
 
        synchronized(identityManager) {
          final WoTOwnIdentity own = (WoTOwnIdentity)webInterface.getLoggedInOwnIdentity(context);
          boolean removeRating = request.getPartAsStringFailsafe("RemoveRating", 16).equals("true");
         
          try {           
            synchronized (messageManager) {
            synchronized(own) {
View Full Code Here

Examples of plugins.Freetalk.WoT.WoTOwnIdentity

            WoTIdentityManager identityManager = (WoTIdentityManager)mFreetalk.getIdentityManager();
           
            synchronized(identityManager) {
              try {
                // Ensure that the identity still exists.
                WoTOwnIdentity identity = identityManager.getOwnIdentity(mOwnIdentity.getID());
               
                synchronized (identity) {
                  identity.setAutoSubscribeToNewboards(autoSubscribeToNewBoards);
                  identity.setNntpAutoSubscribeBoards(autoSubscribeToNNTPBoards);
                  identity.setWantsImageDisplay(allowImageDisplay);
                  identity.storeAndCommit();
                }
              } catch(Exception e) {
                new ErrorPage(mWebInterface, mOwnIdentity, mRequest, "Setting own identity options failed", e,
                    l10n()).addToPage(mContentNode);
              }
View Full Code Here

Examples of plugins.Freetalk.WoT.WoTOwnIdentity

    /* Step 4: Create the identity */
    else if(requestedStep == 4 && mRequest.getMethod().equals("POST")) {
      addHiddenFormData(createForm, requestedStep, requestedStep);
     
      try {
        WoTOwnIdentity id = (WoTOwnIdentity)mFreetalk.getIdentityManager().createOwnIdentity(mIdentityNickname,
            mIdentityPublishesTrustList, mIdentityPublishesTrustList, mAutoSubscribe, mDisplayImages, mIdentityURI[1], mIdentityURI[0]);
           
        HTMLNode summaryBox = getContentBox(l10n().getString("CreateIdentityWizard.Step4.Header"));
        wizardBox.addChild(summaryBox);
       
View Full Code Here

Examples of plugins.Freetalk.WoT.WoTOwnIdentity

            {
                throw new InvalidParameterException("RequestURI and InsertURI must be set together");
            }
           

            final WoTOwnIdentity id;
            if (requestUriString != null) {
                final FreenetURI requestUri = new FreenetURI(requestUriString); // throws Exception if malformed
                final FreenetURI insertUri = new FreenetURI(insertUriString);   // throws Exception if malformed

                id = (WoTOwnIdentity)mFreetalk.getIdentityManager().createOwnIdentity(
                        nickName,
                        publishTrustList,
                        publishIntroductionPuzzles,
                        autoSubscribe,
                        displayImages,
                        requestUri,
                        insertUri);
            } else {
                id = (WoTOwnIdentity)mFreetalk.getIdentityManager().createOwnIdentity(
                        nickName,
                        publishTrustList,
                        publishIntroductionPuzzles,
                        autoSubscribe,
                        displayImages);
            }

            // id can't be null when we come here
            final SimpleFieldSet sfs = new SimpleFieldSet(true);
            sfs.putOverwrite("Message", "CreateOwnIdentityReply");
            sfs.putOverwrite("OwnIdentityCreated", "true");
            sfs.putOverwrite("ID", id.getID());
            sfs.putOverwrite("FreetalkAddress", id.getFreetalkAddress());
            sfs.putOverwrite("InsertURI", id.getInsertURI().toString());
            sfs.putOverwrite("RequestURI", id.getRequestURI().toString());
            replysender.send(sfs);

        } catch(final Exception e) {
            final SimpleFieldSet sfs = new SimpleFieldSet(true);
            sfs.putOverwrite("Message", "CreateOwnIdentityReply");
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.