public class CheckProfileTypeAuthorizer<U extends CommonProfile> extends AbstractRequireAnyAuthorizer<Class<U>,U>
elements
Constructor and Description |
---|
CheckProfileTypeAuthorizer() |
CheckProfileTypeAuthorizer(Class<U>... types) |
CheckProfileTypeAuthorizer(List<Class<U>> types) |
CheckProfileTypeAuthorizer(Set<Class<U>> types) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
check(WebContext context,
U profile,
Class<U> element)
Check a specific element.
|
static <U extends CommonProfile> |
checkProfileType(Class<U>... types) |
static <U extends CommonProfile> |
checkProfileType(List<Class<U>> types) |
static <U extends CommonProfile> |
checkProfileType(Set<Class<U>> types) |
isProfileAuthorized
getElements, isAuthorized, setElements, setElements, setElements
handleError, isAllAuthorized, isAnyAuthorized
protected boolean check(WebContext context, U profile, Class<U> element)
AbstractRequireElementAuthorizer
check
in class AbstractRequireElementAuthorizer<Class<U extends CommonProfile>,U extends CommonProfile>
context
- the web contextprofile
- the profileelement
- the element to checkpublic static <U extends CommonProfile> CheckProfileTypeAuthorizer<U> checkProfileType(Class<U>... types)
public static <U extends CommonProfile> CheckProfileTypeAuthorizer<U> checkProfileType(List<Class<U>> types)
public static <U extends CommonProfile> CheckProfileTypeAuthorizer<U> checkProfileType(Set<Class<U>> types)
Copyright © 2019. All rights reserved.