com.im.df.api 5.9

com.im.df.api.capabilities
Interface DFSharedObjectCapability

All Superinterfaces:
DFCapability
All Known Subinterfaces:
DFSharedObjectOwnerCapability

public interface DFSharedObjectCapability
extends DFCapability

This capability should be added to all user specific DFItems. It means this capability can be part of DFList, DFQuery and DFView.

This is an optional functionality so you should not expect it's always part of these DFItems. This interface is read-only so you can't change sharing status property value using it. If you are owner of the object you can try to obtain DFSharedObjectOwnerCapability and change the sharing status there.


Field Summary
static String PROP_OWNER
          Code name of 'owner' property.
static String PROP_SHARING
          Code name of 'sharing' property.
 
Method Summary
 String getOwner()
          Get username of this DFItem's owner.
 DFSharing getSharing()
          Get the current sharing of this object
 

Field Detail

PROP_SHARING

static final String PROP_SHARING
Code name of 'sharing' property.

See Also:
Constant Field Values

PROP_OWNER

static final String PROP_OWNER
Code name of 'owner' property.

See Also:
Constant Field Values
Method Detail

getSharing

DFSharing getSharing()
Get the current sharing of this object

Returns:
The current sharing status

getOwner

String getOwner()
Get username of this DFItem's owner. This name corresponds to usernames which can be obtained from IJCUserLoginService. If the current user is owner, the name returned from this method should be the same like IJCUserLoginService.whoAmI() return value.

Returns:
Username of owner of the DFItem object.

com.im.df.api 5.9