Examples of AppUser


Examples of org.mifosplatform.useradministration.domain.AppUser

    }

    @Override
    public CommandProcessingResult prematureCloseRDAccount(final Long savingsId, final JsonCommand command) {
        final AppUser user = this.context.authenticatedUser();

        this.depositAccountTransactionDataValidator.validateClosing(command, DepositAccountType.RECURRING_DEPOSIT, true);

        final Map<String, Object> changes = new LinkedHashMap<>();
        final PaymentDetail paymentDetail = this.paymentDetailWritePlatformService.createAndPersistPaymentDetail(command, changes);
View Full Code Here

Examples of org.mifosplatform.useradministration.domain.AppUser

        final boolean rollbackTransaction = this.configurationDomainService.isMakerCheckerEnabledForTask(wrapper.taskPermissionName());

        final NewCommandSourceHandler handler = findCommandHandler(wrapper);
        final CommandProcessingResult result = handler.processCommand(command);

        final AppUser maker = this.context.authenticatedUser(wrapper);

        CommandSource commandSourceResult = null;
        if (command.commandId() != null) {
            commandSourceResult = this.commandSourceRepository.findOne(command.commandId());
            commandSourceResult.markAsChecked(maker, DateTime.now());
View Full Code Here

Examples of org.mifosplatform.useradministration.domain.AppUser

   
    private void publishEvent(final String entityName, final String actionName, final CommandProcessingResult result) {
     
      final String authToken = ThreadLocalContextUtil.getAuthToken();
      final String tenantIdentifier = ThreadLocalContextUtil.getTenant().getTenantIdentifier();
      final AppUser appUser = this.context.authenticatedUser();
     
      final HookEventSource hookEventSource = new HookEventSource(entityName, actionName);
     
      final String serializedResult = this.toApiResultJsonSerializer.serialize(result);
     
View Full Code Here

Examples of org.mifosplatform.useradministration.domain.AppUser

    @Transactional
    @Override
    public CommandProcessingResult disburseLoan(final Long loanId, final JsonCommand command, Boolean isAccountTransfer) {

        final AppUser currentUser = this.context.authenticatedUser();

        this.loanEventApiJsonValidator.validateDisbursement(command.json(), isAccountTransfer);

        final Loan loan = this.loanAssembler.assembleFrom(loanId);
        checkClientOrGroupActive(loan);
View Full Code Here

Examples of org.mifosplatform.useradministration.domain.AppUser

     *****/
    @Transactional
    @Override
    public Map<String, Object> bulkLoanDisbursal(final JsonCommand command, final CollectionSheetBulkDisbursalCommand bulkDisbursalCommand,
            Boolean isAccountTransfer) {
        final AppUser currentUser = this.context.authenticatedUser();

        final SingleDisbursalCommand[] disbursalCommand = bulkDisbursalCommand.getDisburseTransactions();
        final Map<String, Object> changes = new LinkedHashMap<>();
        if (disbursalCommand == null) { return changes; }

View Full Code Here

Examples of org.mifosplatform.useradministration.domain.AppUser

    }

    @Transactional
    @Override
    public CommandProcessingResult writeOff(final Long loanId, final JsonCommand command) {
        final AppUser currentUser = this.context.authenticatedUser();

        this.loanEventApiJsonValidator.validateTransactionWithNoAmount(command.json());

        final Map<String, Object> changes = new LinkedHashMap<>();
        changes.put("transactionDate", command.stringValueOfParameterNamed("transactionDate"));
View Full Code Here

Examples of org.mifosplatform.useradministration.domain.AppUser

    @Override
    public Page<AuditData> retrievePaginatedAuditEntries(final String extraCriteria, final boolean includeJson,
            final PaginationParameters parameters) {

        this.paginationParametersDataValidator.validateParameterValues(parameters, supportedOrderByValues, "audits");
        final AppUser currentUser = this.context.authenticatedUser();
        final String hierarchy = currentUser.getOffice().getHierarchy();

        String updatedExtraCriteria = "";
        if (StringUtils.isNotBlank(extraCriteria)) {
            updatedExtraCriteria = " where (" + extraCriteria + ")";
        }
View Full Code Here

Examples of pl.edu.pb.entities.AppUser

    }
   
    protected AppUser createUser(String login, String firstname, String secondname,
            String passwrod, String mail, String telephone, String status)
    {
        AppUser result = new AppUser();
        result.setContact(new UserContact());
        result.setLogin(login);
        result.setPassword(passwrod);
        result.setStatus(status);
        result.getContact().setEmail(mail);
        result.getContact().setFirstName(firstname);
        result.getContact().setSecondName(secondname);
        return result;
    }
View Full Code Here

Examples of pl.edu.pb.entities.AppUser

    private AppUser currentUser;

    public void login() throws Exception {

        AppUser user = auf.findUser(credentials.getUsername(), credentials.getPassword());

        if (user != null) {

            this.currentUser = user;
View Full Code Here

Examples of pl.edu.pb.entities.AppUser

        String username = req.getParameter("username");
        String password = req.getParameter("password");
        //logger
        System.out.println("adding " + username + ":" + password);
       
        AppUser newUser = new AppUser();
        UserContact userContact = new UserContact();
        if(username != null && password != null && !username.equals("") &&
                !password.equals(""))
        {
            if(userManagment.isUserExist(username))
            {
                req.setAttribute("message", "That user exist already in out db");
            } else
            {
                userContact.setFirstName(req.getParameter("firstname"));
                userContact.setEmail(req.getParameter("email"));
                userContact.setPhoneNumber(req.getParameter("phonenumber"));
                userContact.setSecondName(req.getParameter("secondname"));
                newUser.setLogin(username);
                newUser.setPassword(password);
                newUser.setStatus(req.getParameter("status"));
                newUser.setContact(userContact);
                userManagment.addUser(newUser);
                req.setAttribute("message", "User was added, thank you for cooperation!");
            }
        }
        else
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.