org.directdemocracyportal.democracy.model.core
Class Resource

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

@Entity
public abstract class Resource
extends BaseEntity

The Class Resource.

See Also:
Serialized Form

Constructor Summary
Constructor and Description
Resource()
          Instantiates a new resource.
 
Method Summary
Modifier and Type Method and Description
 java.lang.Long getId()
          Gets the id.
 java.lang.String getName()
          Gets the name.
 Agent getOwner()
          Gets the owner.
 void setId(java.lang.Long id)
          Sets the id.
 void setName(java.lang.String name)
          Sets the name.
 void setOwner(Agent owner)
          Sets the owner.
 
Methods inherited from class org.directdemocracyportal.democracy.model.core.BaseEntity
isNew
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Resource

public Resource()
Instantiates a new resource.

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

getOwner

public Agent getOwner()
Gets the owner.

Returns:
the owner

setOwner

public void setOwner(Agent owner)
Sets the owner.

Parameters:
owner - the new owner


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