Package ch.tocco.nice2.security.api
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 int
priority()
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
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.
-