[zanata/zanata-server] 67ea7b: refactor permission granters to be CDI beans

GitHub noreply at github.com
Thu Feb 11 05:23:31 UTC 2016


  Branch: refs/heads/security-permissions
  Home:   https://github.com/zanata/zanata-server
  Commit: 67ea7b049cf2e0876802b875ff9c2baa8aeb62cc
      https://github.com/zanata/zanata-server/commit/67ea7b049cf2e0876802b875ff9c2baa8aeb62cc
  Author: Carlos A. Munoz <camunoz at redhat.com>
  Date:   2016-02-11 (Thu, 11 Feb 2016)

  Changed paths:
    A zanata-war/src/main/java/org/zanata/security/PermissionProvider.java
    M zanata-war/src/main/java/org/zanata/security/SecurityFunctions.java
    M zanata-war/src/main/java/org/zanata/security/permission/PermissionEvaluator.java
    M zanata-war/src/main/java/org/zanata/security/permission/PermissionGranter.java
    M zanata-war/src/test/java/org/zanata/security/permission/PermissionEvaluatorTest.java

  Log Message:
  -----------
  refactor permission granters to be CDI beans

This allows any bean which extends the new PermissionGranter class to
provide permission granter methods.
It also allows permission granters to be CDI beans which allows them to
inject other components among other things.
PermissionProviders are used as dependent beans so they get up-to-date
information on every permission check.


  Commit: 401070e9a130f770a2862a72d59db169dc0b0830
      https://github.com/zanata/zanata-server/commit/401070e9a130f770a2862a72d59db169dc0b0830
  Author: Carlos A. Munoz <camunoz at redhat.com>
  Date:   2016-02-11 (Thu, 11 Feb 2016)

  Changed paths:
    M zanata-war/src/main/java/org/zanata/security/SecurityFunctions.java

  Log Message:
  -----------
  turn the SecurityFunctions class into a CDI bean


Compare: https://github.com/zanata/zanata-server/compare/67ea7b049cf2^...401070e9a130


More information about the zanata-commits mailing list