org.directdemocracyportal.democracy.model.core
Class GroupAgent

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

@Entity
public abstract class GroupAgent
extends Agent

The Class GroupAgent.

See Also:
Serialized Form

Constructor Summary
Constructor and Description
GroupAgent()
          Instantiates a new group agent.
GroupAgent(java.lang.String name)
          Instantiates a new group agent.
 
Method Summary
Modifier and Type Method and Description
 Role findDefinedRoleByName(java.lang.String name)
          Find defined role by name.
 GroupAgent findOrgByName(java.lang.String name)
          Find org by name.
 java.util.Set<GroupAgent> getChildren()
          Gets the children.
 java.util.Set<Role> getDefinedRoles()
          Gets the defined roles.
 GroupAgent getParent()
          Gets the parent.
 void setChildren(java.util.Set<GroupAgent> children)
          Sets the children.
 void setDefinedRoles(java.util.Set<Role> definedRoles)
          Sets the defined roles.
 void setParent(GroupAgent parent)
          Sets the parent.
 
Methods inherited from class org.directdemocracyportal.democracy.model.core.Agent
equals, getId, getName, getResources, getRoles, hashCode, setId, setName, setResources, setRoles
 
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

GroupAgent

public GroupAgent()
Instantiates a new group agent.


GroupAgent

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

Parameters:
name - the name
Method Detail

getParent

public GroupAgent getParent()
Gets the parent.

Returns:
the parent

setParent

public void setParent(GroupAgent parent)
Sets the parent.

Parameters:
parent - the new parent

getChildren

public java.util.Set<GroupAgent> getChildren()
Gets the children.

Returns:
the children

setChildren

public void setChildren(java.util.Set<GroupAgent> children)
Sets the children.

Parameters:
children - the new children

getDefinedRoles

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

Returns:
the defined roles

setDefinedRoles

public void setDefinedRoles(java.util.Set<Role> definedRoles)
Sets the defined roles.

Parameters:
definedRoles - the new defined roles

findOrgByName

public GroupAgent findOrgByName(java.lang.String name)
Find org by name.

Parameters:
name - the name
Returns:
the group agent

findDefinedRoleByName

public Role findDefinedRoleByName(java.lang.String name)
Find defined role by name.

Parameters:
name - the name
Returns:
the role


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