Examples of IPersonService


Examples of au.com.motodetail.base.junk.IPersonService

    {
        log.warn("ItemBean::PrepareViewAction params: " + "immediateAction: " + immediateAction + " immediateUrl: " + immediateUrl + " returnAction: " + returnAction + " returnUrl: " + returnUrl);
        this.returnUrl = returnUrl;
        this.returnAction = returnAction;
        List<PersonEntity> personFetchList = new ArrayList<PersonEntity>();
        IPersonService personService = new PersonServiceImpl();

        switch(EntityAction.valueOf(immediateAction))
        {
            case CREATE:
                PostViewAction(immediateAction, null);
                break;

            case READ_ALL:
                try
                {
                    //TODO: fetch 20 then next 20 ...etc Customize retrieveQuickAll by adding range
                    this.setItemList(itemService.retrieveQuickAll());
                }
                catch (Exception ex)
                {
                    java.util.logging.Logger.getLogger(PersonBean.class.getName()).log(Level.SEVERE, null, ex);
                    //TODO: generate JSF Error ...
                }
                break;

            case UPDATE_ROLE:
                //clear selected lists
                this.selectedAvailableSavedRoles.clear();
                this.selectedSavedRoles.clear();

                //1. obtain all roles in the system
                //1.1. person role
               
                try
                {
                    //TODO: fetch 20 then next 20 ...etc Customize retrieveQuickAll by adding range
                    personFetchList = personService.getAll();
                }
                catch (Exception ex)
                {
                    java.util.logging.Logger.getLogger(PersonBean.class.getName()).log(Level.SEVERE, null, ex);
                    //TODO: generate JSF Error ...
View Full Code Here

Examples of uk.ac.osswatch.simal.service.IPersonService

    assertTrue("User not authenticated", sessionData.isAuthenticated());

    assertEquals("username is not correct", username, sessionData
        .getUsername());
   
    IPersonService service = SimalRepositoryFactory.getPersonService();
    IPerson user = service.findByUsername(username);
    user.delete();
  }
View Full Code Here

Examples of uk.ac.osswatch.simal.service.IPersonService

    tester.assertRenderedPage(LoginPage.class);

    String[] errors = {LoginPage.DUPLICATE_USERNAME_ERROR};
    tester.assertErrorMessages(errors);
   
    IPersonService service = SimalRepositoryFactory.getPersonService();
    IPerson user = service.findByUsername(username);
    user.delete();
  }
View Full Code Here

Examples of uk.ac.osswatch.simal.service.IPersonService

      private static final long serialVersionUID = 1L;

      public void onSubmit() {
        if (passwordRequested.equals(passwordConfirm)) {
          try {
            IPersonService service = SimalRepositoryFactory.getPersonService();
            IPerson user = service.findByUsername(usernameRequested);
            if (user == null) {
              String id = SimalRepositoryFactory.getPersonService().getNewID();
              String uri = RDFUtils.getDefaultPersonURI(id);
              IPerson person = service.create(uri);
              person.setUsername(usernameRequested);
              person.setPassword(passwordRequested);
             
              SimalSession.get().authenticate(usernameRequested, passwordRequested);
            } else {
View Full Code Here

Examples of uk.ac.osswatch.simal.service.IPersonService

    String adminPassword = SimalWebProperties.getProperty(SimalWebProperties.ADMIN_PASSWORD, "simal");
    if (username.equals(adminUsername) && password.equals(adminPassword)) {
      setUsername(username);
      setAuthenticated(true);
    } else {
      IPersonService service = SimalRepositoryFactory.getPersonService();
      IPerson user = service.findByUsername(username);
      if (user == null) {
        setAuthenticated(false);
      } else {
        if (user.getPassword().equals(password)) {
          setAuthenticated(true);
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.