org.directdemocracyportal.democracy.model.core
Class Role

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

@Entity
public class Role
extends BaseEntity

The Class Role.

See Also:
Serialized Form

Constructor Summary
Constructor and Description
Role()
          Instantiates a new role.
 
Method Summary
Modifier and Type Method and Description
 boolean equals(java.lang.Object obj)
           
 GroupAgent getGroupAgent()
          Gets the group agent.
 java.lang.Long getId()
          Gets the id.
 java.lang.String getLongDescription()
          Gets the long description.
 java.lang.String getName()
          Gets the name.
 java.util.Set<Agent> getPlayers()
          Gets the players.
 java.lang.String getShortDescription()
          Gets the short description.
 int hashCode()
           
 void setGroupAgent(GroupAgent organisation)
          Sets the group agent.
 void setId(java.lang.Long id)
          Sets the id.
 void setLongDescription(java.lang.String longDescription)
          Sets the long description.
 void setName(java.lang.String name)
          Sets the name.
 void setPlayers(java.util.Set<Agent> players)
          Sets the players.
 void setShortDescription(java.lang.String shortDescription)
          Sets the short description.
 
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

Role

public Role()
Instantiates a new role.

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

getGroupAgent

public GroupAgent getGroupAgent()
Gets the group agent.

Returns:
the group agent

setGroupAgent

public void setGroupAgent(GroupAgent organisation)
Sets the group agent.

Parameters:
organisation - the new group agent

getPlayers

public java.util.Set<Agent> getPlayers()
Gets the players.

Returns:
the players

setPlayers

public void setPlayers(java.util.Set<Agent> players)
Sets the players.

Parameters:
players - the new players

getShortDescription

public java.lang.String getShortDescription()
Gets the short description.

Returns:
the short description

setShortDescription

public void setShortDescription(java.lang.String shortDescription)
Sets the short description.

Parameters:
shortDescription - the new short description

getLongDescription

public java.lang.String getLongDescription()
Gets the long description.

Returns:
the long description

setLongDescription

public void setLongDescription(java.lang.String longDescription)
Sets the long description.

Parameters:
longDescription - the new long description

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


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