Package org.rssowl.core.model.events

Examples of org.rssowl.core.model.events.PersonEvent


            assertTrue(initialJohn.isIdentical(dbPerson));
          }
        }
        @Override
        public void personUpdated(Set<PersonEvent> events) {
          PersonEvent event = events.iterator().next();
          personUpdatedCalled[0] = true;
          Person dbPerson = (Person) event.getEntity();
          assertTrue(updatedJohn[0].isIdentical(dbPerson));
        }
      };
      NewsModel.getDefault().addPersonListener(personListener);
      long savedJohnId = fModelDAO.savePerson(initialJohn).getId().longValue();
View Full Code Here


      IFeed feed = (IFeed) entity;
      modelEvent = new FeedEvent(feed, root);
    }
    else if (entity instanceof IPerson) {
      IPerson person = (IPerson) entity;
      modelEvent = new PersonEvent(person, root);
    }
    else if (entity instanceof IBookMark) {
      IBookMark mark = (IBookMark) entity;
      BookMarkEvent eventTemplate = (BookMarkEvent) template;
      IFolder oldParent = eventTemplate == null ? null : eventTemplate.getOldParent();
View Full Code Here

  /*
   * @see org.rssowl.core.model.dao.IModelDAO#deletePerson(org.rssowl.core.model.reference.PersonReference)
   */
  public void deletePerson(PersonReference reference) throws PersistenceException {
    IPerson person = loadPerson(reference.getId());
    PersonEvent event = new PersonEvent(person, true);
    deleteEntityAndFireEvents(event);
  }
View Full Code Here

  /*
   * @see org.rssowl.core.model.dao.IModelDAO#savePerson(org.rssowl.core.model.types.IPerson)
   */
  public IPerson savePerson(IPerson person) throws PersistenceException {
    PersonEvent event = new PersonEvent(person, true);
    saveCommitAndFireEvents(event, false);
    return person;
  }
View Full Code Here

TOP

Related Classes of org.rssowl.core.model.events.PersonEvent

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.