Last update: 2011-06-23

org.proteios.core.data
Class OwnedData

java.lang.Object
  extended by org.proteios.core.data.BasicData
      extended by org.proteios.core.data.OwnedData
All Implemented Interfaces:
IdentifiableData, OwnableData
Direct Known Subclasses:
JobData, ProjectData, SharedData

public abstract class OwnedData
extends BasicData
implements OwnableData

This class extends the BasicData class and implements the OwnableData interface. Ie. by extending this class a data item gets an owner.

Version:
2.0
Author:
Nicklas
See Also:
OwnedItem, Authentication overview, Basic classes and interfaces

Constructor Summary
OwnedData()
           
 
Method Summary
 UserData getOwner()
          Get the UserData that is the owner of the item.
 void setOwner(UserData owner)
          Change the owner of the item.
 
Methods inherited from class org.proteios.core.data.BasicData
equals, getId, getVersion, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.proteios.core.data.IdentifiableData
getId, getVersion
 

Constructor Detail

OwnedData

public OwnedData()
Method Detail

getOwner

public UserData getOwner()
Description copied from interface: OwnableData
Get the UserData that is the owner of the item.

Specified by:
getOwner in interface OwnableData

setOwner

public void setOwner(UserData owner)
Description copied from interface: OwnableData
Change the owner of the item. Null is not allowed.

Specified by:
setOwner in interface OwnableData

Last update: 2011-06-23