Examples of belongsTo()


Examples of org.apache.lenya.ac.Identity.belongsTo()

            getLogger().debug("Trying to authorize identity: " + identity);
        }

        boolean authorized;

        if (identity.belongsTo(getAccreditableManager())) {
            authorized = authorizePolicy(identity, request);
        } else {
            getLogger().debug(
                "Identity ["
                    + identity
View Full Code Here

Examples of org.apache.lenya.ac.Identity.belongsTo()

            getLogger().debug("Trying to authorize identity: " + identity);
        }

        boolean authorized;

        if (identity.belongsTo(getAccreditableManager())) {
            authorized = authorizePolicy(identity, request);
        } else {
            getLogger().debug(
                "Identity ["
                    + identity
View Full Code Here

Examples of org.apache.lenya.ac.Identity.belongsTo()

            getLogger().debug("Trying to authorize identity: " + identity);
        }

        boolean authorized;

        if (identity.belongsTo(getAccreditableManager())) {
            authorized = authorizePolicy(identity, request);
        } else {
            getLogger().debug(
                "Identity ["
                    + identity
View Full Code Here

Examples of org.eclipse.core.runtime.jobs.Job.belongsTo()

        }
        return Status.OK_STATUS;
      }
    };
    signerJob.setSystem(true);
    signerJob.belongsTo(signerJob);
    signerJob.schedule();

    Job cleanup = new Job(WorkbenchMessages.BundleSigningTray_Unget_Signing_Service) {

      protected IStatus run(IProgressMonitor monitor) {
View Full Code Here

Examples of org.eclipse.core.runtime.jobs.Job.belongsTo()

          for (int i = 0; i < all.length; i++) {
            JobTreeElement jte = all[i];
            if (jte != info && jte.isJobInfo()) {
              Job job = ((JobInfo) jte).getJob();
              if (job != null && job != myJob
                  && job.belongsTo(myJob)) {
                if (found == null) {
                  found = new ArrayList();
                }
                found.add(jte);
              }
View Full Code Here

Examples of org.fenixedu.academic.domain.GradeScale.belongsTo()

                if (value != null && value.length() > 0) {
                    if (gradeScale == null) {
                        setValid(false);
                        setMessage("renderers.validator.grade.no.grade.scale");
                    } else {
                        if (!gradeScale.belongsTo(value)) {
                            setValid(false);
                            setMessage("renderers.validator.grade.invalid.grade.value");
                            setArguments(value, RenderUtils.getEnumString(gradeScale));
                        }
                    }
View Full Code Here

Examples of org.internna.ossmoney.model.Account.belongsTo()

    @RequestMapping("/{id}")
    public String investments(@PathVariable Long id, ModelMap modelMap) {
      modelMap.addAttribute("id", id);
      Account account = Account.findAccount(id);
      UserDetails user = UserDetails.findCurrentUser();
      if (account.belongsTo(user)) {
        modelMap.addAttribute("investments", account.getCurrentInvestments());
      }
      return "investment/performance";
    }
View Full Code Here

Examples of org.internna.ossmoney.model.Account.belongsTo()

    public String add(@PathVariable Long id, ModelMap modelMap) {
      UserDetails user = UserDetails.findCurrentUser();
      Collection<Account> accounts = user.getInvestmentAccounts();
      if (id != null) {
        Account account = Account.findAccount(id);
        if (account.belongsTo(user)) {
            modelMap.addAttribute("account", account);
            modelMap.addAttribute("currency", account.getCurrency());
          } else {
            modelMap.addAttribute("currency", CollectionUtils.isEmpty(accounts) ? "EUR" : accounts.iterator().next().getCurrency());
          }
View Full Code Here

Examples of org.internna.ossmoney.model.Account.belongsTo()

    @RequestMapping(value = "/add", method = RequestMethod.POST)
    public String add(InvestmentTransaction transaction, double commision, ModelMap modelMap) {
      UserDetails user = UserDetails.findCurrentUser();
      Account account = Account.findAccount(transaction.getAccountTransaction().getAccount().getId());
      if (account.belongsTo(user)) {
        cache.invalidate(user);
        investmentService.addInvestment(user, account, transaction, commision);
      }
      return "redirect:/financial/accounts/" + transaction.getAccountTransaction().getAccount().getId();
    }
View Full Code Here

Examples of org.internna.ossmoney.model.Account.belongsTo()

    @RequestMapping("/view/{id}")
    public String view(@PathVariable Long id, ModelMap modelMap) {
      UserDetails user = UserDetails.findCurrentUser();
      InvestmentTransaction transaction = InvestmentTransaction.findInvestmentTransaction(id);
      Account account = transaction.getAccountTransaction().getAccount();
      if (account.belongsTo(user)) {
        modelMap.addAttribute("account", account);
        modelMap.addAttribute("transaction", transaction);
        modelMap.addAttribute("investments", Investment.findInvestmentsByOwner(user));
      }
      return "investment/view";
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.