package com.k_int.ciim.ui.json;

import java.util.HashSet;
import java.util.Set;

import com.k_int.ciim.data.hdo.ContextHDO;

public class PermissionJSON 
{
	private String display_name; // the name of the owning object ie context name
	private Long id; //the id of the owning object i.e. a context id
	private Set<Integer> granted = new HashSet<Integer>();
	
	protected PermissionJSON(){;}
	
	public PermissionJSON(ContextHDO hdo)
	{
		this.id = hdo.getId();
		this.display_name = hdo.getName();
	}

	public String getDisplayName() 
	{
		return display_name;
	}

	public void setDisplayName(String displayName) 
	{
		display_name = displayName;
	}

	public Long getId() 
	{
		return id;
	}

	public void setId(Long id) 
	{
		this.id = id;
	}

	public Set<Integer> getGranted() 
	{
		return granted;
	}

	public void setGranted(Set<Integer> granted) 
	{
		this.granted = granted;
	}
}
