Package com.axelor.meta.db
Class MetaMenu
- java.lang.Object
-
- com.axelor.db.Model
-
- com.axelor.auth.db.AuditableModel
-
- com.axelor.meta.db.MetaMenu
-
@Entity public class MetaMenu extends AuditableModel
This object stores the menus.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGroup(Group item)Add the givenGroupitem to thegroupscollection.voidaddRole(Role item)Add the givenRoleitem to therolescollection.voidclearGroups()Clear thegroupscollection.voidclearRoles()Clear therolescollection.booleanequals(Object obj)MetaActiongetAction()StringgetConditionToCheck()Only use this menu-item if the given expression is true (ie `if` condition).Set<Group>getGroups()BooleangetHidden()StringgetIcon()StringgetIconBackground()LonggetId()BooleangetLeft()StringgetLink()BooleangetMobile()StringgetModule()StringgetModuleToCheck()Only use this menu-item if the given module is installed (ie `if-module` condition).StringgetName()IntegergetOrder()MetaMenugetParent()IntegergetPriority()Set<Role>getRoles()StringgetTag()BooleangetTagCount()StringgetTagGet()StringgetTagStyle()StringgetTitle()BooleangetTop()UsergetUser()StringgetXmlId()inthashCode()voidremoveGroup(Group item)Remove the givenGroupitem from thegroupscollection.voidremoveRole(Role item)Remove the givenRoleitem from therolescollection.voidsetAction(MetaAction action)voidsetConditionToCheck(String conditionToCheck)voidsetGroups(Set<Group> groups)voidsetHidden(Boolean hidden)voidsetIcon(String icon)voidsetIconBackground(String iconBackground)voidsetId(Long id)voidsetLeft(Boolean left)voidsetLink(String link)voidsetMobile(Boolean mobile)voidsetModule(String module)voidsetModuleToCheck(String moduleToCheck)voidsetName(String name)voidsetOrder(Integer order)voidsetParent(MetaMenu parent)voidsetPriority(Integer priority)voidsetRoles(Set<Role> roles)voidsetTag(String tag)voidsetTagCount(Boolean tagCount)voidsetTagGet(String tagGet)voidsetTagStyle(String tagStyle)voidsetTitle(String title)voidsetTop(Boolean top)voidsetUser(User user)voidsetXmlId(String xmlId)StringtoString()-
Methods inherited from class com.axelor.auth.db.AuditableModel
getCreatedBy, getCreatedOn, getUpdatedBy, getUpdatedOn
-
Methods inherited from class com.axelor.db.Model
getArchived, getVersion, isSelected, setArchived, setSelected, setVersion
-
-
-
-
Constructor Detail
-
MetaMenu
public MetaMenu()
-
MetaMenu
public MetaMenu(String name)
-
-
Method Detail
-
getPriority
public Integer getPriority()
-
setPriority
public void setPriority(Integer priority)
-
getOrder
public Integer getOrder()
-
setOrder
public void setOrder(Integer order)
-
getXmlId
public String getXmlId()
-
setXmlId
public void setXmlId(String xmlId)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getTitle
public String getTitle()
-
setTitle
public void setTitle(String title)
-
getIcon
public String getIcon()
-
setIcon
public void setIcon(String icon)
-
getIconBackground
public String getIconBackground()
-
setIconBackground
public void setIconBackground(String iconBackground)
-
getModule
public String getModule()
-
setModule
public void setModule(String module)
-
getTag
public String getTag()
-
setTag
public void setTag(String tag)
-
getTagGet
public String getTagGet()
-
setTagGet
public void setTagGet(String tagGet)
-
getTagCount
public Boolean getTagCount()
-
setTagCount
public void setTagCount(Boolean tagCount)
-
getTagStyle
public String getTagStyle()
-
setTagStyle
public void setTagStyle(String tagStyle)
-
getTop
public Boolean getTop()
-
setTop
public void setTop(Boolean top)
-
getLeft
public Boolean getLeft()
-
setLeft
public void setLeft(Boolean left)
-
getMobile
public Boolean getMobile()
-
setMobile
public void setMobile(Boolean mobile)
-
getHidden
public Boolean getHidden()
-
setHidden
public void setHidden(Boolean hidden)
-
getLink
public String getLink()
-
setLink
public void setLink(String link)
-
getParent
public MetaMenu getParent()
-
setParent
public void setParent(MetaMenu parent)
-
getAction
public MetaAction getAction()
-
setAction
public void setAction(MetaAction action)
-
getUser
public User getUser()
-
setUser
public void setUser(User user)
-
addGroup
public void addGroup(Group item)
Add the givenGroupitem to thegroupscollection.- Parameters:
item- the item to add
-
removeGroup
public void removeGroup(Group item)
Remove the givenGroupitem from thegroupscollection.- Parameters:
item- the item to remove
-
clearGroups
public void clearGroups()
Clear thegroupscollection.
-
addRole
public void addRole(Role item)
Add the givenRoleitem to therolescollection.- Parameters:
item- the item to add
-
removeRole
public void removeRole(Role item)
Remove the givenRoleitem from therolescollection.- Parameters:
item- the item to remove
-
clearRoles
public void clearRoles()
Clear therolescollection.
-
getConditionToCheck
public String getConditionToCheck()
Only use this menu-item if the given expression is true (ie `if` condition).- Returns:
- the property value
-
setConditionToCheck
public void setConditionToCheck(String conditionToCheck)
-
getModuleToCheck
public String getModuleToCheck()
Only use this menu-item if the given module is installed (ie `if-module` condition).- Returns:
- the property value
-
setModuleToCheck
public void setModuleToCheck(String moduleToCheck)
-
-