Class MixedListGuard

java.lang.Object
ch.tocco.nice2.security.api.AbstractListGuard
ch.tocco.nice2.security.impl.MixedListGuard
All Implemented Interfaces:
ListGuard

public class MixedListGuard extends AbstractListGuard
  • Constructor Details

  • Method Details

    • getPrincipal

      public Principal getPrincipal()
    • getSecurityContext

      public SecurityContext getSecurityContext()
    • getSecured

      public List<?> getSecured()
      Returns:
      The objects this guard is protecting.
    • evaluatePermissions

      public Guard.Decision[] evaluatePermissions(Permission permission)
      Description copied from interface: ListGuard
      Evaluates a permission. This method returns an Guard.Decision providing some more information about *why* a permission is granted or denied.
      Parameters:
      permission - The permission to evaluate.
      Returns:
      An Guard.Decision.
    • toGuard

      public Guard toGuard()
      Description copied from interface: ListGuard
      Returns a Guard instance based on this ListGuard. This is only supported if this list guard contains exactly one object.