Package net.sf.basedb.core.data
Class SharedData
- java.lang.Object
-
- net.sf.basedb.core.data.BasicData
-
- net.sf.basedb.core.data.OwnedData
-
- net.sf.basedb.core.data.SharedData
-
- All Implemented Interfaces:
IdentifiableData
,OwnableData
,ShareableData
- Direct Known Subclasses:
CommonData
public abstract class SharedData extends OwnedData implements ShareableData
This class extends theOwnedData
class and implements theShareableData
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
, Developer documentation: User authentication, Developer documentation: Basic classes and interfaces
-
-
Field Summary
Fields Modifier and Type Field Description private ItemKeyData
itemKey
private ProjectKeyData
projectKey
-
Constructor Summary
Constructors Constructor Description SharedData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemKeyData
getItemKey()
Get theItemKeyData
for the item.ProjectKeyData
getProjectKey()
Get theProjectKeyData
for the item.void
setItemKey(ItemKeyData itemKey)
Set theItemKeyData
for the item.void
setProjectKey(ProjectKeyData projectKey)
Set theProjectKeyData
for the item.-
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.IdentifiableData
getId, getVersion
-
Methods inherited from interface net.sf.basedb.core.data.OwnableData
getOwner, setOwner
-
-
-
-
Field Detail
-
itemKey
private ItemKeyData itemKey
-
projectKey
private ProjectKeyData projectKey
-
-
Method Detail
-
getItemKey
public ItemKeyData getItemKey()
Description copied from interface:ShareableData
Get theItemKeyData
for the item. An item key is used to share an item to individual users and/or groups.- Specified by:
getItemKey
in interfaceShareableData
-
setItemKey
public void setItemKey(ItemKeyData itemKey)
Description copied from interface:ShareableData
Set theItemKeyData
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 interfaceShareableData
-
getProjectKey
public ProjectKeyData getProjectKey()
Description copied from interface:ShareableData
Get theProjectKeyData
for the item. A project key is used to share an item to projects.- Specified by:
getProjectKey
in interfaceShareableData
-
setProjectKey
public void setProjectKey(ProjectKeyData projectKey)
Description copied from interface:ShareableData
Set theProjectKeyData
for the item. A project key is used to share an item to projects. Use null to disable sharing.- Specified by:
setProjectKey
in interfaceShareableData
-
-