2.17.2: 2011-06-17

net.sf.basedb.core.data
Class SharedData

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

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

Field Summary
private  ItemKeyData itemKey
           
private  ProjectKeyData projectKey
           
 
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 net.sf.basedb.core.data.OwnedData
getOwner, setOwner
 
Methods inherited from class net.sf.basedb.core.data.BasicData
equals, getId, getVersion, hashCode, setId, setVersion, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sf.basedb.core.data.OwnableData
getOwner, setOwner
 
Methods inherited from interface net.sf.basedb.core.data.IdentifiableData
getId, getVersion
 

Field Detail

itemKey

private ItemKeyData itemKey

projectKey

private ProjectKeyData projectKey
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

2.17.2: 2011-06-17