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

com.mediamath.terminalone.models.Permissions Maven / Gradle / Ivy

There is a newer version: 1.2.2
Show newest version
/*******************************************************************************
 * Copyright 2016 MediaMath
 * 
 * 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.mediamath.terminalone.models;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class Permissions {

	private boolean all_organizations;
	private List organization_ids = new ArrayList<>();
	private List agency_ids = new ArrayList<>();
	private List advertiser_ids = new ArrayList<>();
	private List flags = new ArrayList<>();
	private Entities entities;

	class Access {
		private List> access = new ArrayList<>();

		public List> getAccess() {
			return access;
		}

		public void setAccess(List> access) {
			this.access = access;
		}
	}

	class AccessAdvertiser {
		private List access = new ArrayList<>();

		public List getAccess() {
			return access;
		}

		public void setAccess(List access) {
			this.access = access;
		}
	}

	class AccessAgency {
		private List access = new ArrayList<>();

		public List getAccess() {
			return access;
		}

		public void setAccess(List access) {
			this.access = access;
		}
	}

	class AccessOrganization {
		private List access = new ArrayList<>();

		public List getAccess() {
			return access;
		}

		public void setAccess(List access) {
			this.access = access;
		}
	}

	class Entities {
		private List advertiser = new ArrayList<>();
		private List agency = new ArrayList<>();
		private List organization = new ArrayList<>();
		
		public List getAdvertiser() {
			return advertiser;
		}
		public void setAdvertiser(List advertiser) {
			this.advertiser = advertiser;
		}
		public List getAgency() {
			return agency;
		}
		public void setAgency(List agency) {
			this.agency = agency;
		}
		public List getOrganization() {
			return organization;
		}
		public void setOrganization(List organization) {
			this.organization = organization;
		}
	}

	public boolean isAllOrganizations() {
		return all_organizations;
	}

	public void setAllOrganizations(boolean all_organizations) {
		this.all_organizations = all_organizations;
	}

	public List getOrganizationIds() {
		return organization_ids;
	}

	public void setOrganizationIds(List organization_ids) {
		this.organization_ids = organization_ids;
	}

	public List getAgencyIds() {
		return agency_ids;
	}

	public void setAgencyIds(List agency_ids) {
		this.agency_ids = agency_ids;
	}

	public List getAdvertiserIds() {
		return advertiser_ids;
	}

	public void setAdvertiserIds(List advertiser_ids) {
		this.advertiser_ids = advertiser_ids;
	}

	public Entities getEntities() {
		return entities;
	}

	public void setEntities(Entities entities) {
		this.entities = entities;
	}

	public List getFlags() {
		return flags;
	}

	public void setFlags(List flags) {
		this.flags = flags;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy