Examples of IRepositoryPerson


Examples of org.eclipse.mylyn.tasks.core.IRepositoryPerson

      attributeChanged();
    } else {
     
      String value = RedmineUtil.findUserLogin(text);
      if(value!=null && !value.isEmpty()) {
        IRepositoryPerson person = getModel().getTaskRepository().createPerson(value);
        getAttributeMapper().setRepositoryPerson(getTaskAttribute(), person);
        attributeChanged();
      }

    }
View Full Code Here

Examples of org.eclipse.mylyn.tasks.core.IRepositoryPerson

        RedminePersonEditor personEditor = new RedminePersonEditor(getModel(), attribute) {
          @Override
          public void setValue(String value) {
            value = RedmineUtil.findUserLogin(value);
            if(value!=null && !value.isEmpty()) {
              IRepositoryPerson person = getModel().getTaskRepository().createPerson(value);
              watchersEditor.addWatcher(person);
              text.setText("");
            }
          };
         
View Full Code Here

Examples of org.eclipse.mylyn.tasks.core.IRepositoryPerson

      //Author
      TaskAttribute authorAttribute = RedmineTaskTimeEntryMapper.getAuthorAttribute(attribute);
      if(authorAttribute != null) {
        TaskAttributeMapper attributeMapper = attribute.getTaskData().getAttributeMapper();
        IRepositoryPerson author = attributeMapper.getRepositoryPerson(authorAttribute);
        formHyperlink.setImage(Images.getImage(Images.PERSON_NARROW));
        if (author != null) {
          if (author.getName() != null) {
            sb.append(author.getName());
          } else {
            sb.append(author.getPersonId());
          }
        }
      }
     
      //Date
View Full Code Here

Examples of org.eclipse.mylyn.tasks.core.IRepositoryPerson

      if (user==null) {
        user = configuration.getUsers().getByLogin(taskAttribute.getValue());
      }
     
      if (user!=null) {
        IRepositoryPerson person = getTaskRepository().createPerson(user.getLogin());
        person.setName(user.getName());
        return person;
      }
    }
   
    IRepositoryPerson person = super.getRepositoryPerson(taskAttribute);
    if (person.getName()==null) {
      person.setName(""); //$NON-NLS-1$
    }
    return person;
  }
View Full Code Here

Examples of org.eclipse.mylyn.tasks.core.IRepositoryPerson

        setAttributeValue(data, GoogleCodeAttribute.DATE_CREATION, issueEntry.getPublished());
        setAttributeValue(data, GoogleCodeAttribute.DATE_MODIFICATION, issueEntry.getUpdated());

        if (issueEntry.hasOwner()) {
            IRepositoryPerson owner = getPerson(data, issueEntry.getOwner());
            setAttributeValue(data, GoogleCodeAttribute.USER_ASSIGNED, owner);
        }

        if (!data.isNew()) {
            TaskAttribute url = getAttribute(data, GoogleCodeAttribute.URL);
View Full Code Here

Examples of org.eclipse.mylyn.tasks.core.IRepositoryPerson

                // http://code.google.com/feeds/issues/p/googlecode-mylyn-connector/issues/1/comments/full/1
                String commentId = StringUtils.substringAfterLast(issueComment.getId(), "/");
                taskComment.setCommentId(commentId);
                List<Person> authors = issueComment.getAuthors();
                if (authors.size() == 1) {
                    IRepositoryPerson person = getPerson(data, authors.get(0));
                    taskComment.setAuthor(person);
                }
                taskComment.setNumber(i);
                taskComment.setText(content);
                taskComment.setCreationDate(new Date(issueComment.getPublished().getValue()));
View Full Code Here

Examples of org.eclipse.mylyn.tasks.core.IRepositoryPerson

    }

    private IRepositoryPerson getPerson(TaskData data, Person person) {
        TaskRepository repository = data.getAttributeMapper().getTaskRepository();
        String email = person.getEmail();
        IRepositoryPerson repositoryPerson;
        if (email != null) {
            repositoryPerson = repository.createPerson(email);
        } else {
            // seems to be the case in at least one case
            repositoryPerson = repository.createPerson(person.getName());
        }
        repositoryPerson.setName(person.getName());
        return repositoryPerson;
    }
View Full Code Here

Examples of org.eclipse.mylyn.tasks.core.IRepositoryPerson

        return repositoryPerson;
    }

    private IRepositoryPerson getPerson(TaskData data, Owner owner) {
        TaskRepository repository = data.getAttributeMapper().getTaskRepository();
        IRepositoryPerson person = repository.createPerson(owner.getUsername().getValue());
        return person;
    }
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.