net.anotheria.anodoc.util.context.BrandConfig Maven / Gradle / Ivy
package net.anotheria.anodoc.util.context;
import java.util.List;
/**
* Brand configuration.
*
* @author ykalapusha
*/
public class BrandConfig {
/**
* Name of brand.
*/
private final String name;
/**
* Is this brand default.
*/
private final boolean defaultBrand;
/**
* Urls according to this brand.
*/
private final List urlsToMap;
/**
* Localizations according to this brand.
*/
private final List localizations;
/**
* Style file ids for current brand.
*/
private final List brandMediaLinkIds;
/**
* ASG attribute ids.
*/
private final List attributes;
/**
* Constructor.
*
* @param name name of brand
* @param defaultBrand is default
* @param urlsToMap urls of this brand
* @param localizations localizations of this brand
* @param brandMediaLinkIds medialinks of this brand
*/
public BrandConfig(String name, boolean defaultBrand, List urlsToMap, List localizations, List brandMediaLinkIds, List attributes) {
this.name = name;
this.defaultBrand = defaultBrand;
this.brandMediaLinkIds = brandMediaLinkIds;
this.urlsToMap = urlsToMap;
this.localizations = localizations;
this.attributes = attributes;
}
public String getName() {
return name;
}
public boolean isDefaultBrand() {
return defaultBrand;
}
public List getUrlsToMap() {
return urlsToMap;
}
public List getLocalizations() {
return localizations;
}
public List getBrandMediaLinkIds() {
return brandMediaLinkIds;
}
public List getAttributes() {
return attributes;
}
@Override
public String toString() {
return "BrandConfig{" +
"name='" + name + '\'' +
", defaultBrand=" + defaultBrand +
", urlsToMap=" + urlsToMap +
", localizations=" + localizations +
", brandMediaLinkIds=" + brandMediaLinkIds +
", attributes=" + attributes +
'}';
}
}