|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.directdemocracyportal.democracy.model.core.BaseEntity
org.directdemocracyportal.democracy.model.core.Agent
@Entity public abstract class Agent extends BaseEntity
The Class Agent.
| Constructor and Description |
|---|
Agent()
Instantiates a new agent. |
Agent(java.lang.String name)
Instantiates a new agent. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.Long |
getId()
Gets the id. |
java.lang.String |
getName()
Gets the name. |
java.util.Set<Resource> |
getResources()
Gets the resources. |
java.util.Set<Role> |
getRoles()
Gets the roles. |
int |
hashCode()
|
void |
setId(java.lang.Long id)
Sets the id. |
void |
setName(java.lang.String name)
Sets the name. |
void |
setResources(java.util.Set<Resource> resources)
Sets the resources. |
void |
setRoles(java.util.Set<Role> roles)
Sets the roles. |
| Methods inherited from class org.directdemocracyportal.democracy.model.core.BaseEntity |
|---|
isNew |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Agent()
public Agent(java.lang.String name)
name - the name| Method Detail |
|---|
public java.lang.Long getId()
BaseEntity
getId in class BaseEntitypublic void setId(java.lang.Long id)
id - the new idpublic java.lang.String getName()
public void setName(java.lang.String name)
name - the new namepublic java.util.Set<Role> getRoles()
public void setRoles(java.util.Set<Role> roles)
roles - the new rolespublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.util.Set<Resource> getResources()
public void setResources(java.util.Set<Resource> resources)
resources - the new resources
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||