@Entity public class AdCategory extends ConfigurationOrderableEntity implements DefinesNetwork, ImageOwner<AdCategory,AdCategoryImage>
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_LEVEL
The maximum level for nesting categories
|
NULL_PART| Constructor and Description |
|---|
AdCategory() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
getActive() |
java.util.List<AdCategory> |
getChildren() |
java.lang.Integer |
getChildrenCount() |
java.lang.Integer |
getCountOffer() |
java.lang.Integer |
getCountSearch() |
DataTranslationType |
getDataTranslationType()
If this entity allows data translation, should return the translation type
|
AdCategoryImage |
getImage()
De-normalized reference to the first image
|
java.util.List<AdCategoryImage> |
getImages() |
int |
getLevel() |
java.lang.Integer |
getMaxLevel() |
Network |
getNetwork()
Returns the network this entity belongs to
|
AdCategory |
getParent() |
java.util.List<AdCategory> |
getPathFromRoot()
Returns a list, beginning from root category to this one
|
AdCategory |
getRootCategory() |
boolean |
isLeaf() |
boolean |
isRoot() |
void |
setActive(java.lang.Boolean active) |
void |
setChildren(java.util.List<AdCategory> children) |
void |
setCountOffer(java.lang.Integer countOffer) |
void |
setCountSearch(java.lang.Integer countSearch) |
void |
setImage(AdCategoryImage image)
De-normalized reference to the first image
|
void |
setImages(java.util.List<AdCategoryImage> images) |
void |
setNetwork(Network network) |
void |
setParent(AdCategory parent) |
compareTo, getOrder, setOrder, toStringgetDescription, getInternalName, setDescription, setInternalNamegetName, getNames, setNamegetLogType, getVersionisGlobalclone, equals, getId, getId, getIds, getUniqueIds, getUniqueIds, hashCode, isPersistent, isTransientpublic static final int MAX_LEVEL
public java.lang.Boolean getActive()
public java.util.List<AdCategory> getChildren()
public java.lang.Integer getChildrenCount()
public java.lang.Integer getCountOffer()
public java.lang.Integer getCountSearch()
public DataTranslationType getDataTranslationType()
BaseEntitygetDataTranslationType in class BaseEntitypublic AdCategoryImage getImage()
ImageOwnergetImage in interface ImageOwner<AdCategory,AdCategoryImage>public java.util.List<AdCategoryImage> getImages()
getImages in interface ImageOwner<AdCategory,AdCategoryImage>public int getLevel()
public java.lang.Integer getMaxLevel()
public Network getNetwork()
NetworkedEntitygetNetwork in class NetworkedEntitypublic AdCategory getParent()
public java.util.List<AdCategory> getPathFromRoot()
public AdCategory getRootCategory()
public boolean isLeaf()
public boolean isRoot()
public void setActive(java.lang.Boolean active)
public void setChildren(java.util.List<AdCategory> children)
public void setCountOffer(java.lang.Integer countOffer)
public void setCountSearch(java.lang.Integer countSearch)
public void setImage(AdCategoryImage image)
ImageOwnersetImage in interface ImageOwner<AdCategory,AdCategoryImage>public void setImages(java.util.List<AdCategoryImage> images)
setImages in interface ImageOwner<AdCategory,AdCategoryImage>public void setNetwork(Network network)
setNetwork in interface DefinesNetworkpublic void setParent(AdCategory parent)