Package net.suberic.pooka

Examples of net.suberic.pooka.UserProfile


      FolderDisplayUI fw = getFolderDisplayUI();
      if (fw != null)
        fw.setBusy(true);;

      try {
        UserProfile defaultProfile = getDefaultProfile();
        AddressBook book = null;

        if (defaultProfile != null) {
          book = defaultProfile.getAddressBook();
        }

        if (book == null) {
          // get the default Address Book.
          book = Pooka.getAddressBookManager().getDefault();
View Full Code Here


    }

    try {
      if (getNewMessageUI() != null) {
        getNewMessageUI().setBusy(true);
        UserProfile profile = getNewMessageUI().getSelectedProfile();
        InternetHeaders headers = getNewMessageUI().getMessageHeaders();

        String messageText = getNewMessageUI().getMessageText();

        String messageContentType = getNewMessageUI().getMessageContentType();
View Full Code Here

                SendFailedDialog sfd = getNewMessageUI().showSendFailedDialog(mailServer, (MessagingException) me);
                if (sfd.resendMessage()) {
                  OutgoingMailServer newServer = sfd.getMailServer();
                  if (newServer != null) {
                    String action = sfd.getMailServerAction();
                    UserProfile profile = getNewMessageUI().getSelectedProfile();
                    if (action == SendFailedDialog.S_SESSION_DEFAULT) {
                      profile.setTemporaryMailServer(newServer);
                    } else if (action == SendFailedDialog.S_CHANGE_DEFAULT) {
                      Pooka.setProperty(profile.getUserProperty() + ".mailServer", newServer.getItemID());
                    }
                    newServer.sendMessage(getNewMessageInfo());
                  }
                } else if (sfd.getSaveToOutbox()) {
                  try {
View Full Code Here

    NewMessageUI nmui = getNewMessageUI();
    if (nmui != null) {
      try {
        String profileId = (String) getMessageInfo().getMessageProperty(Pooka.getProperty("Pooka.userProfileProperty", "X-Pooka-UserProfile"));
        if (profileId != null && ! profileId.equals("")) {
          UserProfile profile = Pooka.getPookaManager().getUserProfileManager().getProfile(profileId);
          if (profile != null)
            nmui.setSelectedProfile(profile);
        }
      } catch (MessagingException me) {
        // no big deal...  we can just have the default user selected.
View Full Code Here

    try {
      if (getNewMessageUI() != null) {
        getNewMessageUI().setBusy(true);

        final UserProfile profile = getNewMessageUI().getSelectedProfile();
        final InternetHeaders headers = getNewMessageUI().getMessageHeaders();

        final String messageText = getNewMessageUI().getMessageText();

        final String messageContentType = getNewMessageUI().getMessageContentType();

        OutgoingMailServer mailServer = profile.getMailServer();

        final FolderInfo fi = mailServer.getOutbox();

        if (fi != null) {
          net.suberic.util.thread.ActionThread folderThread = fi.getFolderThread();
View Full Code Here

   * If there is no object in the ContentPanel which gives a default
   * UserProfile, it then checks the FolderPanel.  If neither of these
   * returns a UserProfile, then the default UserProfile is returned.
   */
  protected void refreshCurrentUser() {
    UserProfile selectedProfile = getDefaultProfile();
    if (selectedProfile != null) {
      currentUser = selectedProfile;
    } else {
      currentUser = Pooka.getPookaManager().getUserProfileManager().getDefaultProfile();
    }
View Full Code Here

   * Note that this method can return null, and is primarily used to
   * get the currentUser.  If you want to get the current default
   * profile, use getCurrentUser() instead.
   */
  public UserProfile getDefaultProfile() {
    UserProfile returnValue = null;

    if (contentPanel != null) {
      returnValue = contentPanel.getDefaultProfile();
    }

View Full Code Here

    }

    if (customHeaderButton.isSelected()) {
      populateCustomHeaders(returnValue);
    } else {
      UserProfile p = getSelectedProfile();
      p.populateHeaders(returnValue);
      returnValue.setHeader(Pooka.getProperty("Pooka.userProfileProperty", "X-Pooka-UserProfile"), p.getName());
    }

    return returnValue;
  }
View Full Code Here

    inputRow.add(userProfileLabel);
    inputRow.add(profileCombo);
    inputRow.add(customHeaderButton);

    UserProfile selectedProfile = null;
    selectedProfile = pProxy.getDefaultProfile();
    if (selectedProfile == null)
      if (Pooka.getMainPanel() != null)
        selectedProfile = Pooka.getMainPanel().getCurrentUser();
View Full Code Here

    String origText = ((NewMessageInfo)getMessageProxy().getMessageInfo()).getTextPart(false);
    if (origText != null && origText.length() > 0)
      retval.setText(origText);

    UserProfile profile = getSelectedProfile();
    if (profile.autoAddSignature) {
      retval.setCaretPosition(retval.getDocument().getLength());
      if (profile.signatureFirst) {

      }
View Full Code Here

TOP

Related Classes of net.suberic.pooka.UserProfile

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.