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
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:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet theItemKeyData
for the item.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 Details
-
itemKey
-
projectKey
-
-
Constructor Details
-
SharedData
public SharedData()
-
-
Method Details
-
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
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
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
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
-