Interface GuardFactory

All Known Implementing Classes:
AbstractEntityDocsGuardFactory, ConceptionFolderGuardFactory, ConceptionResourceContentGuardFactory, ConceptionResourceGuardFactory, DefaultGuardFactory, EntityPathGuardFactory, FolderGuardFactory, ResourceContentGuardFactory, ResourceGuardFactory, SessionOnlyGuardFactory

public interface GuardFactory
A contribution which enables other modules to inject custom Guard implementations to enable custom security behaviour for certain objects.
  • Method Summary

    Modifier and Type
    Method
    Description
    createGuard(List<?> secured, GuardContext guardContext)
     
    default int
    if multiple factories support a specific secured objects, the one with the highest priority will be used.
    int[]
    supports(List<?> secured)
     
  • Method Details

    • supports

      int[] supports(List<?> secured)
      Returns:
      the indices of the secured list that are supported by this factory
    • createGuard

      ListGuard createGuard(List<?> secured, GuardContext guardContext)
      Returns:
      a Guard for the given secured object
    • priority

      default int priority()
      if multiple factories support a specific secured objects, the one with the highest priority will be used.