Interface Authorizer
- All Known Implementing Classes:
AuthorizerImpl
public interface Authorizer
Authorise that a SearchRequest may be permitted.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Convenient impl for failuresstatic interface
ResultObject that encapsulates the result and the reason if something is not OK. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionisSearchRequestAuthorized
(ApplicationUser user, SearchRequest searchRequest, SearchRequestParams params) Can the specified user perform this SearchRequest?
-
Field Details
-
ALWAYS
-
-
Method Details
-
isSearchRequestAuthorized
Authorizer.Result isSearchRequestAuthorized(ApplicationUser user, SearchRequest searchRequest, SearchRequestParams params) Can the specified user perform this SearchRequest?- Parameters:
user
- who is trying to perform thesearchRequest
- they are attemptingparams
- the parameters for the search (such as tempMax etc)- Returns:
- Result that says yay or nay, must not be null
-