All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.seedstack.seed.security.RolePermissionResolver Maven / Gradle / Ivy

/**
 * Copyright (c) 2013-2016, The SeedStack authors 
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
package org.seedstack.seed.security;

import java.util.Collection;

/**
 * A RolePermissionResolver resolves a {@link Role} and converts it into a
 * {@code Collection} of {@link Permission} instances.
 */
public interface RolePermissionResolver {

	/**
	 * Resolves a {@code Collection} of {@link Permission}s based on the given
	 * {@link Role}.
	 * 
	 * @param role
	 *            the {@code Role} to resolve the permissions. Not null.
	 * @return a {@code Collection} of {@code Permission}s based on the given
	 *         {@code Role}. Not null.
	 */
	Collection resolvePermissionsInRole(Role role);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy