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

pl.edu.icm.unity.engine.authz.RoleImpl Maven / Gradle / Ivy

/*
 * Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved.
 * See LICENCE.txt file for licensing information.
 */
package pl.edu.icm.unity.engine.authz;

import java.util.Arrays;


public class RoleImpl implements AuthzRole
{
	private String name;
	private String description;
	private AuthzCapability[] capabilities;
	private AuthzCapability[] allCapabilities;

	public RoleImpl(String name, String description, AuthzCapability[] capabilities)
	{
		this(name, description, capabilities, new AuthzCapability[0]);
	}

	public RoleImpl(String name, String description, AuthzCapability[] capabilities, 
			AuthzCapability[] selfAccessCapabilities)
	{
		this.name = name;
		this.description = description;
		setCapabilities(capabilities);
		this.allCapabilities = new AuthzCapability[capabilities.length + selfAccessCapabilities.length];
		int i=0;
		for (; i




© 2015 - 2024 Weber Informatics LLC | Privacy Policy