Class EntityPathGuardFactory
java.lang.Object
ch.tocco.nice2.persist.security.impl.provider.EntityPathGuardFactory
- All Implemented Interfaces:
GuardFactory
GuardFactory for EntityPath objects.-
Constructor Summary
ConstructorsConstructorDescriptionEntityPathGuardFactory(org.slf4j.Logger logger, SecurityManager securityManager) -
Method Summary
Modifier and TypeMethodDescriptioncreateGuard(List<?> secured, GuardContext guardContext) intpriority()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:
supportsin interfaceGuardFactory- Returns:
- the indices of the secured list that are supported by this factory
-
priority
public int priority()Description copied from interface:GuardFactoryif multiple factories support a specific secured objects, the one with the highest priority will be used.- Specified by:
priorityin interfaceGuardFactory
-
createGuard
- Specified by:
createGuardin interfaceGuardFactory- Returns:
- a
Guardfor the given secured object
-