Examples of PersonManagerImpl


Examples of org.mypj.db.server.impl.PersonManagerImpl

   */
  private static final long serialVersionUID = 1L;

  @Override
  public PersonInfo[] searchPersons(String filter) {
    PersonManagerImpl impl = new PersonManagerImpl();
    List<Person> ps = impl.getAll();
    if (ps == null)
      return null;
    PersonInfo[] info = new PersonInfo[ps.size()];
    for (int i = 0; i < ps.size(); i++) {
      Person p = ps.get(i);
View Full Code Here

Examples of org.mypj.db.server.impl.PersonManagerImpl

   */
  private static final long serialVersionUID = 1L;

  @Override
  public BasicInfo createPerson(BasicInfo info) {
    PersonManagerImpl impl = new PersonManagerImpl();
    Person p1 = new Person(info.getEditName());
    p1.setBirthday(info.getEditBirthday());
    p1.setSex(info.getEditSex());
    p1.setPs(info.getEditPs());
    Contact c1 = new Contact(info.getEditContact());
    p1.getContacts().add(c1);
    if (!impl.isExist(p1)) {
      impl.create(p1);
      info.setViewName(info.getEditName());
      info.setViewContact(info.getEditContact());
      if (info.getEditBirthday() != null) {
        info.setViewBirthday(info.getEditBirthday().toString());
      }
View Full Code Here

Examples of org.mypj.db.server.impl.PersonManagerImpl

//        ApiProxy.setDelegate(new ApiProxyLocalImpl(new File("war")){});
//
//        ApiProxyLocalImpl proxy = (ApiProxyLocalImpl) ApiProxy.getDelegate();
//        proxy.setProperty(LocalDatastoreService.NO_STORAGE_PROPERTY, Boolean.TRUE.toString());
       
        impl = new PersonManagerImpl();
  }
View Full Code Here

Examples of org.wso2.carbon.registry.social.impl.people.userprofile.PersonManagerImpl

    }

    public void testCreatePerson() throws Exception {
        initObjStuff();
        personManager = new PersonManagerImpl();
        personManager.setUserStoreManager(realm.getUserStoreManager());
        personManager.setClaimManager(realm.getClaimManager());
        Person person = new PersonImpl();
        person.setId("admin12");
        person.setNickname("abcd");
View Full Code Here

Examples of org.wso2.carbon.registry.social.impl.people.userprofile.PersonManagerImpl

    }

    public void testGetPerson1() throws Exception {
        initObjStuff();
        personManager = new PersonManagerImpl();
        personManager.setUserStoreManager(realm.getUserStoreManager());
        personManager.setClaimManager(realm.getClaimManager());
        Person person = new PersonImpl();
        person.setId("admin");
        person.setNickname("abcd");
View Full Code Here

Examples of org.wso2.carbon.registry.social.impl.people.userprofile.PersonManagerImpl

    }


    public void testUpdatePerson() throws Exception {
        initObjStuff();
        personManager = new PersonManagerImpl();
        personManager.setUserStoreManager(realm.getUserStoreManager());
        personManager.setClaimManager(realm.getClaimManager());
        Person person = new PersonImpl();
        person.setId("abcd");
        person.setNickname("abcdQQ");
View Full Code Here

Examples of org.wso2.carbon.registry.social.impl.people.userprofile.PersonManagerImpl

    }

    public void testRemovePerson() throws Exception {
        initObjStuff();
        personManager = new PersonManagerImpl();
        personManager.setUserStoreManager(realm.getUserStoreManager());
        personManager.setClaimManager(realm.getClaimManager());
        Person person = new PersonImpl();
        person.setId("wwww");
        person.setNickname("abcd");
View Full Code Here

Examples of org.wso2.carbon.registry.social.impl.people.userprofile.PersonManagerImpl

    }

    public void testGetPeople() throws Exception {
        initObjStuff();
        personManager = new PersonManagerImpl();
        personManager.setUserStoreManager(realm.getUserStoreManager());
        personManager.setClaimManager(realm.getClaimManager());
        Person person = new PersonImpl();
        person.setId("user1");
        person.setNickname("User-1");
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.