Class SessionOnlyGuardFactory

java.lang.Object
ch.tocco.nice2.persist.security.impl.provider.SessionOnlyGuardFactory
All Implemented Interfaces:
GuardFactory

@Component public class SessionOnlyGuardFactory extends Object implements GuardFactory
  • Constructor Details

    • SessionOnlyGuardFactory

      public SessionOnlyGuardFactory(org.slf4j.Logger log, SecurityManager manager)
  • Method Details

    • supports

      public int[] supports(List<?> secured)
      Specified by:
      supports in interface GuardFactory
      Returns:
      the indices of the secured list that are supported by this factory
    • priority

      public int priority()
      Description copied from interface: GuardFactory
      if multiple factories support a specific secured objects, the one with the highest priority will be used.
      Specified by:
      priority in interface GuardFactory
    • createGuard

      public ListGuard createGuard(List<?> secured, GuardContext guardContext)
      Specified by:
      createGuard in interface GuardFactory
      Returns:
      a Guard for the given secured object