Package com.axelor.meta.db
Class MetaMenu
java.lang.Object
com.axelor.db.Model
com.axelor.auth.db.AuditableModel
com.axelor.meta.db.MetaMenu
This object stores the menus.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the givenGroupitem to thegroupscollection.voidAdd the givenRoleitem to therolescollection.voidClear thegroupscollection.voidClear therolescollection.booleanOnly use this menu-item if the given expression is true (ie `if` condition).getIcon()getId()getLeft()getLink()Only use this menu-item if the given module is installed (ie `if-module` condition).getName()getOrder()getRoles()getTag()getTitle()getUser()getXmlId()inthashCode()voidremoveGroup(Group item) Remove the givenGroupitem from thegroupscollection.voidremoveRole(Role item) Remove the givenRoleitem from therolescollection.voidsetAction(MetaAction action) voidsetConditionToCheck(String conditionToCheck) voidvoidvoidvoidsetIconBackground(String iconBackground) voidvoidvoidvoidvoidvoidsetModuleToCheck(String moduleToCheck) voidvoidvoidvoidsetPriority(Integer priority) voidvoidvoidsetTagCount(Boolean tagCount) voidvoidsetTagStyle(String tagStyle) voidvoidvoidtoString()Methods inherited from class com.axelor.auth.db.AuditableModel
getCreatedBy, getCreatedOn, getUpdatedBy, getUpdatedOnMethods inherited from class com.axelor.db.Model
getArchived, getCid, getVersion, isSelected, setArchived, setCid, setSelected, setVersion
-
Constructor Details
-
MetaMenu
public MetaMenu() -
MetaMenu
-
-
Method Details
-
getId
-
setId
-
getPriority
-
setPriority
-
getOrder
-
setOrder
-
getXmlId
-
setXmlId
-
getName
-
setName
-
getTitle
-
setTitle
-
getIcon
-
setIcon
-
getIconBackground
-
setIconBackground
-
getModule
-
setModule
-
getTag
-
setTag
-
getTagGet
-
setTagGet
-
getTagCount
-
setTagCount
-
getTagStyle
-
setTagStyle
-
getLeft
-
setLeft
-
getMobile
-
setMobile
-
getHidden
-
setHidden
-
getLink
-
setLink
-
getParent
-
setParent
-
getAction
-
setAction
-
getUser
-
setUser
-
getGroups
-
setGroups
-
addGroup
Add the givenGroupitem to thegroupscollection.- Parameters:
item- the item to add
-
removeGroup
Remove the givenGroupitem from thegroupscollection.- Parameters:
item- the item to remove
-
clearGroups
public void clearGroups()Clear thegroupscollection. -
getRoles
-
setRoles
-
addRole
Add the givenRoleitem to therolescollection.- Parameters:
item- the item to add
-
removeRole
Remove the givenRoleitem from therolescollection.- Parameters:
item- the item to remove
-
clearRoles
public void clearRoles()Clear therolescollection. -
getConditionToCheck
Only use this menu-item if the given expression is true (ie `if` condition).- Returns:
- the property value
-
setConditionToCheck
-
getModuleToCheck
Only use this menu-item if the given module is installed (ie `if-module` condition).- Returns:
- the property value
-
setModuleToCheck
-
equals
-
hashCode
public int hashCode() -
toString
-