Last update: 2011-06-23

org.proteios.core.data
Class SharedData

java.lang.Object
  extended by org.proteios.core.data.BasicData
      extended by org.proteios.core.data.OwnedData
          extended by org.proteios.core.data.SharedData
All Implemented Interfaces:
IdentifiableData, OwnableData, ShareableData
Direct Known Subclasses:
CommonData, PluginDefinitionData, SeparationMethodData

public abstract class SharedData
extends OwnedData
implements ShareableData

This class extends the OwnedData class and implements the ShareableData interface. Ie. by extending this class a data item gets an owner and it will be possible to share the item to other users.

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

Constructor Summary
SharedData()
           
 
Method Summary
 ItemKeyData getItemKey()
          Get the ItemKeyData for the item.
 ProjectKeyData getProjectKey()
          Get the ProjectKeyData for the item.
 void setItemKey(ItemKeyData itemKey)
          Set the ItemKeyData for the item.
 void setProjectKey(ProjectKeyData projectKey)
          Set the ProjectKeyData for the item.
 
Methods inherited from class org.proteios.core.data.OwnedData
getOwner, setOwner
 
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.OwnableData
getOwner, setOwner
 
Methods inherited from interface org.proteios.core.data.IdentifiableData
getId, getVersion
 

Constructor Detail

SharedData

public SharedData()
Method Detail

getItemKey

public ItemKeyData getItemKey()
Description copied from interface: ShareableData
Get the ItemKeyData for the item. An item key is used to share an item to individual users and/or groups.

Specified by:
getItemKey in interface ShareableData

setItemKey

public void setItemKey(ItemKeyData itemKey)
Description copied from interface: ShareableData
Set the ItemKeyData for the item. An item key is used to share an item to individual users and or groups. Use null to disable sharing.

Specified by:
setItemKey in interface ShareableData

getProjectKey

public ProjectKeyData getProjectKey()
Description copied from interface: ShareableData
Get the ProjectKeyData for the item. A project key is used to share an item to projects.

Specified by:
getProjectKey in interface ShareableData

setProjectKey

public void setProjectKey(ProjectKeyData projectKey)
Description copied from interface: ShareableData
Set the ProjectKeyData for the item. A project key is used to share an item to projects. Use null to disable sharing.

Specified by:
setProjectKey in interface ShareableData

Last update: 2011-06-23