Examples of IPerson


Examples of com.avaje.tests.model.interfaces.IPerson

   
    ResetBasicData.reset();
   
    IAddress a = new Address();
   
    IPerson p = new Person();
   
    p.setDefaultAddress(a);
   
    Ebean.save(a);
    Ebean.save(p);
   
    //Assert.assertTrue();
View Full Code Here

Examples of org.apache.tapestry.vlib.ejb.IPerson

    public void updatePerson(Integer personId, Map attributes)
        throws FinderException, RemoteException
    {
        IPersonHome home = getPersonHome();

        IPerson person = home.findByPrimaryKey(personId);

        person.updateEntityAttributes(attributes);
    }
View Full Code Here

Examples of org.davinci.server.user.IPerson

    if (ServerManager.LOCAL_INSTALL && IDavinciServerConstants.LOCAL_INSTALL_USER.equals(userName)) {
      return this.getSingleUser();
    }

    if (this.checkUserExists(userName)) {
      IPerson person = this.personManager.getPerson(userName);
      return newUser(person, null);
    }
    return null;
  }
View Full Code Here

Examples of org.jasig.portal.security.IPerson

     */
    public void portalEvent(ChannelStaticData channelStaticData, PortalControlStructures portalControlStructures, PortalEvent portalEvent) {
        switch (portalEvent.getEventNumber()) {
            case PortalEvent.UNSUBSCRIBE: {
                final String channelSubscribeId = channelStaticData.getChannelSubscribeId();
                final IPerson person = channelStaticData.getPerson();
                final IPortletEntity portletEntity = this.portletEntityRegistry.getPortletEntity(channelSubscribeId, person.getID());
               
                this.portletEntityRegistry.deletePortletEntity(portletEntity);
            }
            break;
           
View Full Code Here

Examples of org.rssowl.core.model.types.IPerson

        }
      };
      NewsModel.getDefault().addPersonListener(personListener);
      long savedJohnId = fModelDAO.savePerson(initialJohn).getId().longValue();
      System.gc();
      IPerson savedJohn = fModelDAO.loadPerson(savedJohnId);
      initialJohn.setId(savedJohn.getId());
      assertTrue(initialJohn.isIdentical(savedJohn));
      URI oldJohnEmail = savedJohn.getEmail();
      IPerson dan = createPersonDan(feed);
      dan.setEmail(oldJohnEmail);
      NewsModel.getDefault().removePersonListener(personListener);
      fModelDAO.savePerson(dan);
      savedJohn.setEmail(createURI("anewemailaddress@gmail.com"));
      updatedJohn[0] = (Person) savedJohn;
      NewsModel.getDefault().addPersonListener(personListener);
View Full Code Here

Examples of org.rssowl.core.model.types.IPerson

      }
    }
  }

  private IPerson createPersonJohn(IExtendableType type) {
    IPerson person = fTypesFactory.createPerson(null, type);
    person.setName("John");
    person.setEmail(createURI("john@hotmail.com"));
    person.setUri(createURI("http://mysite.hotmail.com"));
    person.setProperty("property", "property_value");
    return person;
  }
View Full Code Here

Examples of org.rssowl.core.model.types.IPerson

      return null;
    }
  }

  private IPerson createPersonMary(IExtendableType type) {
    IPerson person = fTypesFactory.createPerson(null, type);
    person.setName("Mary");
    person.setEmail(createURI("mary@hotmail.com"));
    person.setUri(createURI("http://mary.hotmail.com"));
    person.setProperty("test", "property");
    return person;
  }
View Full Code Here

Examples of org.rssowl.core.model.types.IPerson

    return person;
  }

  @SuppressWarnings("unused")
  private IPerson createPersonDan(IExtendableType type) {
    IPerson person = fTypesFactory.createPerson(null, type);
    person.setName("Dan");
    person.setEmail(createURI("dan@yahoo.com"));
    return person;
  }
View Full Code Here

Examples of org.rssowl.core.persist.IPerson

  /**
   * Tests {@link MergeUtils#merge(org.rssowl.core.persist.MergeCapable, org.rssowl.core.persist.MergeCapable)}.
   */
  @Test
  public void testSingleItemMergeWithNullDestination() {
    IPerson person = new Person(null);
    ComplexMergeResult<IPerson> mergeResult = MergeUtils.merge(null, person);
    assertEquals(person, mergeResult.getMergedObject());
    assertEquals(true, mergeResult.isStructuralChange());
  }
View Full Code Here

Examples of org.rssowl.core.persist.IPerson

  /**
   * Tests {@link MergeUtils#merge(org.rssowl.core.persist.MergeCapable, org.rssowl.core.persist.MergeCapable)}.
   */
  @Test
  public void testSingleItemMergeWithNonNullDestinationAndNullOrigin() {
    IPerson person = new Person(null);
    ComplexMergeResult<IPerson> mergeResult = MergeUtils.merge(person, null);
    assertNull(mergeResult.getMergedObject());
    assertEquals(true, mergeResult.isStructuralChange());
  }
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.