Examples of UserProfile


Examples of it.eng.spagobi.commons.bo.UserProfile

    try {
      if (!this.getErrorHandler().isOKBySeverity(EMFErrorSeverity.ERROR)) {
        throw new Exception("Error handler contains errors, cannot save remember me!!");
      }
      SessionContainer permSession = this.getRequestContainer().getSessionContainer().getPermanentContainer();
      UserProfile profile = (UserProfile) permSession.getAttribute(IEngUserProfile.ENG_USER_PROFILE);
      String userId = profile.getUserId().toString();
      String name = (String) serviceRequest.getAttribute("name");
      String description = (String) serviceRequest.getAttribute("description");
      String docIdStr = (String) serviceRequest.getAttribute(SpagoBIConstants.OBJECT_ID);
      Integer docId = new Integer(docIdStr);
     
View Full Code Here

Examples of models.UserProfile

      NamespaceManager.set(old);
    }
  }
 
  private void addProfileToUser(String username, ProfileType profile) {
    UserProfile user_profile = new UserProfile(User.findByUsername(username),
        Profile.findByType(profile));
    user_profile.insert();
  }
View Full Code Here

Examples of net.bnubot.util.UserProfile

        List<Object> keys = (List<Object>)CookieUtility.destroyCookie(is.readDWord());

        if(numAccounts != 1)
          throw new IllegalStateException("SID_READUSERDATA with numAccounts != 1");

        UserProfile up = new UserProfile((String)keys.remove(0));
        dispatchRecieveInfo("Profile for " + up.getUser());
        for(int i = 0; i < numKeys; i++) {
          String key = (String)keys.get(i);
          String value = is.readNTStringUTF8();
          if((key == null) || (key.length() == 0))
            continue;
          value = prettyProfileValue(key, value);

          if(value.length() != 0) {
            dispatchRecieveInfo(key + " = " + value);
          } else if(
            key.equals(UserProfile.PROFILE_DESCRIPTION) ||
            key.equals(UserProfile.PROFILE_LOCATION) ||
            key.equals(UserProfile.PROFILE_SEX)) {
            // Always report these keys
          } else {
            continue;
          }
          up.put(key, value);
        }

        // FIXME this should be a dispatch
        if(PluginManager.getEnableGui())
          new ProfileEditor(up, this);
View Full Code Here

Examples of net.rim.blackberry.api.bbm.platform.profile.UserProfile

        }
        return instance;
    }
   
    public Object getField(String name) throws Exception {
        final UserProfile userProfile = BBMPlatformNamespace.getInstance().getContext().getUserProfile();
        super._presence = userProfile;
       
        if(name.equals(LocationNamespace.NAME)) {
            ProfileLocation location = userProfile.getProfileLocation();
            if(location == null) {
                return UNDEFINED;
            } else {
                return new LocationNamespace(location);
            }
View Full Code Here

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

Examples of net.suberic.pooka.UserProfile

    }

    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

Examples of net.suberic.pooka.UserProfile

                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

Examples of net.suberic.pooka.UserProfile

    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

Examples of net.suberic.pooka.UserProfile

    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

Examples of net.suberic.pooka.UserProfile

   * 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
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.