org.directdemocracyportal.democracy.model.core
Class Agent

Package class diagram package Agent
java.lang.Object
  extended by org.directdemocracyportal.democracy.model.core.BaseEntity
      extended by org.directdemocracyportal.democracy.model.core.Agent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
GroupAgent, Person, User

@Entity
public abstract class Agent
extends BaseEntity

The Class Agent.

See Also:
Serialized Form

Constructor Summary
Constructor and Description
Agent()
          Instantiates a new agent.
Agent(java.lang.String name)
          Instantiates a new agent.
 
Method Summary
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

Agent

public Agent()
Instantiates a new agent.


Agent

public Agent(java.lang.String name)
Instantiates a new agent.

Parameters:
name - the name
Method Detail

getId

public java.lang.Long getId()
Description copied from class: BaseEntity
Gets the id.

Specified by:
getId in class BaseEntity
Returns:
the id

setId

public void setId(java.lang.Long id)
Sets the id.

Parameters:
id - the new id

getName

public java.lang.String getName()
Gets the name.

Returns:
the name

setName

public void setName(java.lang.String name)
Sets the name.

Parameters:
name - the new name

getRoles

public java.util.Set<Role> getRoles()
Gets the roles.

Returns:
the roles

setRoles

public void setRoles(java.util.Set<Role> roles)
Sets the roles.

Parameters:
roles - the new roles

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getResources

public java.util.Set<Resource> getResources()
Gets the resources.

Returns:
the resources

setResources

public void setResources(java.util.Set<Resource> resources)
Sets the resources.

Parameters:
resources - the new resources


Copyright © 2004-2010 www.DirectDemocracyPortal.org. All Rights Reserved.