Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@


/**
* Filter that allows access if the current user has the roles specified by the mapped value, or denies access
* if the user does not have all of the roles specified.
* Filter that allows access based on all of the roles specified by the mapped value.
* Access is granted if <em>no roles are specified</em> or if the current user has <em>all</em> of the roles.
* Access is denied if the current user does not have all of the roles.
*
* @since 0.4.0
*/
Expand All @@ -40,8 +41,13 @@ public RolesAuthorizationFilter(LoginContextService loginContextService) {
super(loginContextService);
}

//TODO - complete JavaDoc

/**
* {@inheritDoc}
* @param request {@inheritDoc}
* @param response {@inheritDoc}
* @param mappedValue a String array containing the roles all of which the current user must <em>all</em> have to be granted access
* @return {@inheritDoc}
*/
@SuppressWarnings({"unchecked"})
public boolean isAccessAllowed(ServletRequest request, ServletResponse response, Object mappedValue) throws IOException {

Expand Down