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

io.baltoro.domain.BO Maven / Gradle / Ivy

There is a newer version: 4.0.12
Show newest version
package io.baltoro.domain;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

import com.fasterxml.jackson.annotation.JsonIgnore;

public abstract class BO extends BOBase
{

	
	private Map metaData = new HashMap<>(100);
	private Map permissionMap = new HashMap<>(100);
	private Set roles = new HashSet();
	
	public static BOMD[] FIELDS = {};
			
	@JsonIgnore 
	public abstract BOMD[] getMDDef();


	public String getValue(String name)
	{
		return metaData.get(name);
	}
	
	public void addValue(String name, String value)
	{
		metaData.put(name, value);
	}
	
	public Set getRoles()
	{
		return roles;
	}
	
	public void addRole(String role)
	{
		roles.add(role);
	}
	
	public Map getMDMap()
	{
		return metaData;
	}
	
	public Permission getPermission(String userUuid)
	{
		return permissionMap.get(userUuid);
	}
	
	public void addPermission(String userUuid, Permission permission)
	{
		permissionMap.put(userUuid, permission);
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy