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 void
addGroup(Group item)
Add the givenGroup
item to thegroups
collection.void
addRole(Role item)
Add the givenRole
item to theroles
collection.void
clearGroups()
Clear thegroups
collection.void
clearRoles()
Clear theroles
collection.boolean
equals(Object obj)
MetaAction
getAction()
String
getConditionToCheck()
Only use this menu-item if the given expression is true (ie `if` condition).Set<Group>
getGroups()
Boolean
getHidden()
String
getIcon()
String
getIconBackground()
Long
getId()
Boolean
getLeft()
String
getLink()
Boolean
getMobile()
String
getModule()
String
getModuleToCheck()
Only use this menu-item if the given module is installed (ie `if-module` condition).String
getName()
Integer
getOrder()
MetaMenu
getParent()
Integer
getPriority()
Set<Role>
getRoles()
String
getTag()
Boolean
getTagCount()
String
getTagGet()
String
getTagStyle()
String
getTitle()
Boolean
getTop()
User
getUser()
String
getXmlId()
int
hashCode()
void
removeGroup(Group item)
Remove the givenGroup
item from thegroups
collection.void
removeRole(Role item)
Remove the givenRole
item from theroles
collection.void
setAction(MetaAction action)
void
setConditionToCheck(String conditionToCheck)
void
setGroups(Set<Group> groups)
void
setHidden(Boolean hidden)
void
setIcon(String icon)
void
setIconBackground(String iconBackground)
void
setId(Long id)
void
setLeft(Boolean left)
void
setLink(String link)
void
setMobile(Boolean mobile)
void
setModule(String module)
void
setModuleToCheck(String moduleToCheck)
void
setName(String name)
void
setOrder(Integer order)
void
setParent(MetaMenu parent)
void
setPriority(Integer priority)
void
setRoles(Set<Role> roles)
void
setTag(String tag)
void
setTagCount(Boolean tagCount)
void
setTagGet(String tagGet)
void
setTagStyle(String tagStyle)
void
setTitle(String title)
void
setTop(Boolean top)
void
setUser(User user)
void
setXmlId(String xmlId)
String
toString()
-
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 givenGroup
item to thegroups
collection.- Parameters:
item
- the item to add
-
removeGroup
public void removeGroup(Group item)
Remove the givenGroup
item from thegroups
collection.- Parameters:
item
- the item to remove
-
clearGroups
public void clearGroups()
Clear thegroups
collection.
-
addRole
public void addRole(Role item)
Add the givenRole
item to theroles
collection.- Parameters:
item
- the item to add
-
removeRole
public void removeRole(Role item)
Remove the givenRole
item from theroles
collection.- Parameters:
item
- the item to remove
-
clearRoles
public void clearRoles()
Clear theroles
collection.
-
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)
-
-