org.wildfly.swarm.config.security.manager.DefaultDeploymentPermissions Maven / Gradle / Ivy
package org.wildfly.swarm.config.security.manager;
import org.wildfly.swarm.config.runtime.AttributeDocumentation;
import org.wildfly.swarm.config.runtime.ResourceDocumentation;
import org.wildfly.swarm.config.runtime.SingletonResource;
import org.wildfly.swarm.config.runtime.Address;
import org.wildfly.swarm.config.runtime.ResourceType;
import org.wildfly.swarm.config.runtime.Implicit;
import java.beans.PropertyChangeSupport;
import java.beans.PropertyChangeListener;
import org.wildfly.swarm.config.runtime.ModelNodeBinding;
import java.util.List;
import java.util.Map;
import java.util.Arrays;
import java.util.stream.Collectors;
/**
* The permissions that are to be granted to deployments
*/
@Address("/subsystem=security-manager/deployment-permissions=default")
@ResourceType("deployment-permissions")
@Implicit
public class DefaultDeploymentPermissions>
implements
org.wildfly.swarm.config.runtime.Keyed {
private String key;
private PropertyChangeSupport pcs;
@AttributeDocumentation("The maximum set of permissions that can be granted to a deployment or jars.")
private List maximumPermissions;
@AttributeDocumentation("The minimum set of permissions to be granted to a deployment or jars.")
private List minimumPermissions;
public DefaultDeploymentPermissions() {
super();
this.key = "default";
this.pcs = new PropertyChangeSupport(this);
}
public String getKey() {
return this.key;
}
/**
* Adds a property change listener
*/
public void addPropertyChangeListener(PropertyChangeListener listener) {
if (null == this.pcs)
this.pcs = new PropertyChangeSupport(this);
this.pcs.addPropertyChangeListener(listener);
}
/**
* Removes a property change listener
*/
public void removePropertyChangeListener(
java.beans.PropertyChangeListener listener) {
if (this.pcs != null)
this.pcs.removePropertyChangeListener(listener);
}
/**
* The maximum set of permissions that can be granted to a deployment or
* jars.
*/
@ModelNodeBinding(detypedName = "maximum-permissions")
public List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy