Class SessionOnlyGuardFactory
java.lang.Object
ch.tocco.nice2.persist.security.impl.provider.SessionOnlyGuardFactory
- All Implemented Interfaces:
GuardFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateGuard
(List<?> secured, GuardContext guardContext) int
priority()
if multiple factories support a specific secured objects, the one with the highest priority will be used.int[]
-
Constructor Details
-
SessionOnlyGuardFactory
-
-
Method Details
-
supports
- Specified by:
supports
in interfaceGuardFactory
- 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 interfaceGuardFactory
-
createGuard
- Specified by:
createGuard
in interfaceGuardFactory
- Returns:
- a
Guard
for the given secured object
-