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

de.uni.freiburg.iig.telematik.sewol.accesscontrol.graphic.ACModelComboBox Maven / Gradle / Ivy

Go to download

SEWOL provides support for the handling of workflow traces. Specifically it allows to specify the shape and content of process traces in terms of entries representing the execution of a specific workflow activity. SEWOL also allows to write these traces on disk as a log file with the help of a special file writer for process logs. Currently it supports plain text, Petrify, MXML and XES log file types. In order to specify security-related context information, SEWOL provides access control models such as access control lists (ACL) and role-based access control models (RBAC). All types of models can be conveniently edited with the help of appropriate dialogs.

The newest version!
package de.uni.freiburg.iig.telematik.sewol.accesscontrol.graphic;

import java.util.Collection;

import javax.swing.DefaultComboBoxModel;
import javax.swing.JComboBox;

import de.invation.code.toval.validate.Validate;
import de.uni.freiburg.iig.telematik.sewol.accesscontrol.AbstractACModel;

@SuppressWarnings("rawtypes")
public class ACModelComboBox extends JComboBox {

	private static final long serialVersionUID = -7002182269586188L;

	public ACModelComboBox(Collection acModels){
		super();
		Validate.notNull(acModels);
		setModel((new DefaultComboBoxModel(acModels.toArray())));
		setRenderer(new ACModelCellRenderer());
	}

	@Override
	public AbstractACModel getSelectedItem() {
		return (AbstractACModel) super.getSelectedItem();
	}
	
	

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy