@Entity public class Group extends AuditableModel
Constructor and Description |
---|
Group() |
Group(String code,
String name) |
Modifier and Type | Method and Description |
---|---|
void |
addMenu(MetaMenu item)
Add the given
MetaMenu item to the menus . |
void |
addMetaPermission(MetaPermission item)
Add the given
MetaPermission item to the metaPermissions . |
void |
addPermission(Permission item)
Add the given
Permission item to the permissions . |
void |
addRole(Role item)
Add the given
Role item to the roles . |
void |
addView(MetaView item)
Add the given
MetaView item to the views . |
void |
clearMenus()
Clear the
menus collection. |
void |
clearMetaPermissions()
Clear the
metaPermissions collection. |
void |
clearPermissions()
Clear the
permissions collection. |
void |
clearRoles()
Clear the
roles collection. |
void |
clearViews()
Clear the
views collection. |
boolean |
equals(Object obj) |
String |
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.
|
Set<MetaView> |
getViews() |
int |
hashCode() |
void |
removeMenu(MetaMenu item)
Remove the given
MetaMenu item from the menus . |
void |
removeMetaPermission(MetaPermission item)
Remove the given
MetaPermission item from the metaPermissions . |
void |
removePermission(Permission item)
Remove the given
Permission item from the permissions . |
void |
removeRole(Role item)
Remove the given
Role item from the roles . |
void |
removeView(MetaView item)
Remove the given
MetaView item from the views . |
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 |
setViews(Set<MetaView> views) |
String |
toString() |
getCreatedBy, getCreatedOn, getUpdatedBy, getUpdatedOn
getArchived, getVersion, isSelected, setArchived, setSelected, setVersion
public String getCode()
public void setCode(String code)
public String getName()
public void setName(String name)
public String getNavigation()
public void setNavigation(String navigation)
public String getHomeAction()
public void setHomeAction(String homeAction)
public Boolean getTechnicalStaff()
public void setTechnicalStaff(Boolean technicalStaff)
public void addRole(Role item)
Role
item to the roles
.item
- the item to addpublic void removeRole(Role item)
Role
item from the roles
.item
- the item to removepublic void clearRoles()
roles
collection.public Set<Permission> getPermissions()
public void setPermissions(Set<Permission> permissions)
public void addPermission(Permission item)
Permission
item to the permissions
.item
- the item to addpublic void removePermission(Permission item)
Permission
item from the permissions
.item
- the item to removepublic void clearPermissions()
permissions
collection.public Set<MetaPermission> getMetaPermissions()
public void setMetaPermissions(Set<MetaPermission> metaPermissions)
public void addMetaPermission(MetaPermission item)
MetaPermission
item to the metaPermissions
.item
- the item to addpublic void removeMetaPermission(MetaPermission item)
MetaPermission
item from the metaPermissions
.item
- the item to removepublic void clearMetaPermissions()
metaPermissions
collection.public void addMenu(MetaMenu item)
MetaMenu
item to the menus
.item
- the item to addpublic void removeMenu(MetaMenu item)
MetaMenu
item from the menus
.item
- the item to removepublic void clearMenus()
menus
collection.public void addView(MetaView item)
MetaView
item to the views
.item
- the item to addpublic void removeView(MetaView item)
MetaView
item from the views
.item
- the item to removepublic void clearViews()
views
collection.