@Entity @Unique(fields="name", enableDfltMsg=true) public class Feature extends AbstractPersistable<Long>
| Modifier and Type | Field and Description |
|---|---|
static String |
SEQ_FEATURE |
| Constructor and Description |
|---|
Feature() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRole(Role role) |
Set<Action> |
getActions() |
String |
getDescription() |
Long |
getId() |
Module |
getModule() |
String |
getName() |
Set<Role> |
getRoles() |
boolean |
hasRole(Role role) |
void |
removeRole(Role role) |
void |
setActions(Set<Action> actions) |
void |
setDescription(String description) |
protected void |
setId(Long id) |
void |
setModule(Module module) |
void |
setName(String name) |
void |
setRoles(Set<Role> roles) |
getIndexId, getVersion, isNew, toStringpublic static final String SEQ_FEATURE
protected void setId(Long id)
setId in class AbstractPersistable<Long>public Long getId()
getId in class AbstractPersistable<Long>public String getName()
public void setName(String name)
public String getDescription()
public void setDescription(String description)
public Module getModule()
public void setModule(Module module)
public boolean hasRole(Role role)
public void addRole(Role role)
public void removeRole(Role role)
Copyright © 2015–2016 eGovernments Foundation. All rights reserved.