Class EntityPathGuardFactory
java.lang.Object
ch.tocco.nice2.persist.security.impl.provider.EntityPathGuardFactory
- All Implemented Interfaces:
GuardFactory
GuardFactory
for EntityPath
objects.-
Constructor Summary
ConstructorDescriptionEntityPathGuardFactory
(org.slf4j.Logger logger, SecurityManager securityManager) -
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
-
EntityPathGuardFactory
-
-
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
-