Class SessionOnlyGuardFactory
java.lang.Object
ch.tocco.nice2.persist.security.impl.provider.SessionOnlyGuardFactory
- All Implemented Interfaces:
GuardFactory
-
Constructor Summary
Constructors -
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
-
SessionOnlyGuardFactory
-
-
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
-