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

com.adaptrex.core.security.SecureEntity Maven / Gradle / Ivy

There is a newer version: 1.0-Alpha3
Show newest version
/*
 * Copyright 2012 Adaptrex, LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.adaptrex.core.security;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class SecureEntity {

	private String name;
	private List read;
	private List create;
	private List update;
	private List delete;
	private Map fields;
	
	public List getCreate() {
		return this.create;
	}
	public List getUpdate() {
		return this.update;
	}
	public List getDelete() {
		return this.delete;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setRead(List read) {
		this.read = read;
	}
	public void setCreate(List create) {
		this.create = create;
	}
	public void setUpdate(List update) {
		this.update = update;
	}
	public void setDelete(List delete) {
		this.delete = delete;
	}
	
	public List getRead() {
		return this.read;
	}
	
	public String getName() {
		return this.name;
	}
	
	public void setFields(List fields) {
		this.fields = new HashMap();
		for (SecureField secureField : fields) {
			this.fields.put(secureField.getName(), secureField);
		}
	}
	
	public SecureField getField(String name) {
		return this.fields == null ? null : this.fields.get(name);
	}
	

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy