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 TypeMethodDescriptioncreateGuard(List<?> secured, GuardContext guardContext) default intpriority()if multiple factories support a specific secured objects, the one with the highest priority will be used.int[]
-
Method Details
-
supports
- Returns:
- the indices of the secured list that are supported by this factory
-
createGuard
- Returns:
- a
Guardfor 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.
-