|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.proteios.core.BasicItem<D>
org.proteios.core.OwnedItem<D>
org.proteios.core.SharedItem<D>
public abstract class SharedItem<D extends SharedData>
This class inherits from the OwnedItem
class and implements the Shareable interface.
An Shareable item is an item that can be
shared to User:s, Group:s and Project:s
Shareable| Method Summary | |
|---|---|
ItemKey |
getItemKey()
Get the ItemKey that is used to share this item to users
and groups. |
ProjectKey |
getProjectKey()
Get the ProjectKey that is used to share this item to projects. |
boolean |
isShared()
Check if this item has been shared or not. |
void |
setItemKey(ItemKey itemKey)
Set the ItemKey for this item. |
void |
setProjectKey(ProjectKey projectKey)
Set the ProjectKey for this item. |
| Methods inherited from class org.proteios.core.OwnedItem |
|---|
getOwner, setOwner |
| Methods inherited from class org.proteios.core.BasicItem |
|---|
checkPermission, equals, getDbControl, getId, getPermissions, getSessionControl, getVersion, hashCode, hasPermission, isDetached, isInDatabase, isUsed, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.proteios.core.Ownable |
|---|
getOwner, setOwner |
| Methods inherited from interface org.proteios.core.Identifiable |
|---|
getId, getType, getVersion |
| Methods inherited from interface org.proteios.core.AccessControlled |
|---|
checkPermission, hasPermission |
| Method Detail |
|---|
public ItemKey getItemKey()
throws PermissionDeniedException,
BaseException
ShareableItemKey that is used to share this item to users
and groups.
getItemKey in interface ShareableItemKey object
PermissionDeniedException - If the logged in user doesn't
have read permission to the key
BaseException - If there is another error
public void setItemKey(ItemKey itemKey)
throws PermissionDeniedException
ShareableItemKey for this item.
setItemKey in interface ShareableitemKey - The new item key for the item, or null to stop
sharing this item
PermissionDeniedException - If the logged in user doesn't
have permission to change the key on the item
public ProjectKey getProjectKey()
throws PermissionDeniedException,
BaseException
ShareableProjectKey that is used to share this item to projects.
getProjectKey in interface ShareableProjectKey object
PermissionDeniedException - If the logged in user doesn't
have read permission to the key
BaseException - If there is another error
public void setProjectKey(ProjectKey projectKey)
throws PermissionDeniedException
ShareableProjectKey for this item.
setProjectKey in interface ShareableprojectKey - The new project key for the item, or null to stop
sharing this item
PermissionDeniedException - If the logged in user doesn't
have permission to change the key on the itempublic boolean isShared()
Shareable
isShared in interface Shareable
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||