Package com.axelor.auth.db
Class Group
- java.lang.Object
-
- com.axelor.db.Model
-
- com.axelor.auth.db.AuditableModel
-
- com.axelor.auth.db.Group
-
@Entity public class Group extends AuditableModel
This object stores the groups.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMenu(MetaMenu item)
Add the givenMetaMenu
item to themenus
collection.void
addMetaPermission(MetaPermission item)
Add the givenMetaPermission
item to themetaPermissions
collection.void
addPermission(Permission item)
Add the givenPermission
item to thepermissions
collection.void
addRole(Role item)
Add the givenRole
item to theroles
collection.void
addView(MetaView item)
Add the givenMetaView
item to theviews
collection.void
clearMenus()
Clear themenus
collection.void
clearMetaPermissions()
Clear themetaPermissions
collection.void
clearPermissions()
Clear thepermissions
collection.void
clearRoles()
Clear theroles
collection.void
clearViews()
Clear theviews
collection.boolean
equals(Object obj)
Boolean
getCanViewCollaboration()
Specify whether the members of this group can view collaborationString
getCode()
String
getHomeAction()
Default home action.Long
getId()
Set<MetaMenu>
getMenus()
Set<MetaPermission>
getMetaPermissions()
String
getName()
String
getNavigation()
Set<Permission>
getPermissions()
Set<Role>
getRoles()
Boolean
getTechnicalStaff()
Specify whether the members of this group are technical staff.ViewCustomizationPermission
getViewCustomizationPermission()
Set<MetaView>
getViews()
int
hashCode()
void
removeMenu(MetaMenu item)
Remove the givenMetaMenu
item from themenus
collection.void
removeMetaPermission(MetaPermission item)
Remove the givenMetaPermission
item from themetaPermissions
collection.void
removePermission(Permission item)
Remove the givenPermission
item from thepermissions
collection.void
removeRole(Role item)
Remove the givenRole
item from theroles
collection.void
removeView(MetaView item)
Remove the givenMetaView
item from theviews
collection.void
setCanViewCollaboration(Boolean canViewCollaboration)
void
setCode(String code)
void
setHomeAction(String homeAction)
void
setId(Long id)
void
setMenus(Set<MetaMenu> menus)
void
setMetaPermissions(Set<MetaPermission> metaPermissions)
void
setName(String name)
void
setNavigation(String navigation)
void
setPermissions(Set<Permission> permissions)
void
setRoles(Set<Role> roles)
void
setTechnicalStaff(Boolean technicalStaff)
void
setViewCustomizationPermission(ViewCustomizationPermission viewCustomizationPermission)
void
setViews(Set<MetaView> views)
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
-
-
-
-
Method Detail
-
getCode
public String getCode()
-
setCode
public void setCode(String code)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getNavigation
public String getNavigation()
-
setNavigation
public void setNavigation(String navigation)
-
getHomeAction
public String getHomeAction()
Default home action.- Returns:
- the property value
-
setHomeAction
public void setHomeAction(String homeAction)
-
getTechnicalStaff
public Boolean getTechnicalStaff()
Specify whether the members of this group are technical staff.- Returns:
- the property value
-
setTechnicalStaff
public void setTechnicalStaff(Boolean technicalStaff)
-
getCanViewCollaboration
public Boolean getCanViewCollaboration()
Specify whether the members of this group can view collaboration- Returns:
- the property value
-
setCanViewCollaboration
public void setCanViewCollaboration(Boolean canViewCollaboration)
-
getViewCustomizationPermission
public ViewCustomizationPermission getViewCustomizationPermission()
-
setViewCustomizationPermission
public void setViewCustomizationPermission(ViewCustomizationPermission viewCustomizationPermission)
-
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.
-
getPermissions
public Set<Permission> getPermissions()
-
setPermissions
public void setPermissions(Set<Permission> permissions)
-
addPermission
public void addPermission(Permission item)
Add the givenPermission
item to thepermissions
collection.- Parameters:
item
- the item to add
-
removePermission
public void removePermission(Permission item)
Remove the givenPermission
item from thepermissions
collection.- Parameters:
item
- the item to remove
-
clearPermissions
public void clearPermissions()
Clear thepermissions
collection.
-
getMetaPermissions
public Set<MetaPermission> getMetaPermissions()
-
setMetaPermissions
public void setMetaPermissions(Set<MetaPermission> metaPermissions)
-
addMetaPermission
public void addMetaPermission(MetaPermission item)
Add the givenMetaPermission
item to themetaPermissions
collection.- Parameters:
item
- the item to add
-
removeMetaPermission
public void removeMetaPermission(MetaPermission item)
Remove the givenMetaPermission
item from themetaPermissions
collection.- Parameters:
item
- the item to remove
-
clearMetaPermissions
public void clearMetaPermissions()
Clear themetaPermissions
collection.
-
addMenu
public void addMenu(MetaMenu item)
Add the givenMetaMenu
item to themenus
collection.- Parameters:
item
- the item to add
-
removeMenu
public void removeMenu(MetaMenu item)
Remove the givenMetaMenu
item from themenus
collection.- Parameters:
item
- the item to remove
-
clearMenus
public void clearMenus()
Clear themenus
collection.
-
addView
public void addView(MetaView item)
Add the givenMetaView
item to theviews
collection.- Parameters:
item
- the item to add
-
removeView
public void removeView(MetaView item)
Remove the givenMetaView
item from theviews
collection.- Parameters:
item
- the item to remove
-
clearViews
public void clearViews()
Clear theviews
collection.
-
-