wt.inf.sharing
Interface DataSharingDelegate

All Known Implementing Classes:
AbstractDataSharingDelegate

public interface DataSharingDelegate

Contains the definitions of methods to be implemented for the specific containers.

Supported API: false

Extendable: false


Method Summary
 void checkValidShare(Persistable object, WTContainer to_container, boolean is_version_share)
          

Supported API: false
 void checkValidShare(WTCollection objects, WTContainer to_container, boolean is_version_share)
          

Supported API: false
 SharedContainerMap setMapAccess(SharedContainerMap map)
          Sets ad hoc access control to the SharedContainerMap and persists it.
 WTCollection setMapAccess(WTCollection maps)
          Sets ad hoc access control to the SharedContainerMap objects contained in the WTCollection passed as argument.
 Persistable setObjectAccess(Persistable object, WTContainer to_container, boolean is_version_share)
          Sets ad hoc access control to the Persistable passed as argument This method is called when the object is being shared to the container passed as argument.
 Persistable setObjectAccess(Persistable object, WTContainer to_container, boolean is_version_share, Folder to_folder)
           
 WTCollection setObjectAccess(WTCollection objects, WTContainer to_container, boolean is_version_share)
          Sets ad hoc access control to the Persistable objects contained in the WTCollection passed as argument This method is called when the object is being shared to the container passed as argument.
 WTCollection setObjectAccess(WTCollection objects, WTContainer to_container, boolean is_version_share, Folder to_folder)
           
 

Method Detail

setMapAccess

public SharedContainerMap setMapAccess(SharedContainerMap map)
                                throws WTException
Sets ad hoc access control to the SharedContainerMap and persists it. This method is called when a share is created. and the map passed as argument has not been persisted yet.

Supported API: false

Parameters:
map -
Returns:
SharedContainerMap
Throws:
WTException

setObjectAccess

public Persistable setObjectAccess(Persistable object,
                                   WTContainer to_container,
                                   boolean is_version_share)
                            throws WTException
Sets ad hoc access control to the Persistable passed as argument This method is called when the object is being shared to the container passed as argument. The object is updated in the database in case it is modified. The updated object is returned.

Supported API: false

Parameters:
object -
to_container -
is_version_share -
Returns:
Persistable
Throws:
WTException

checkValidShare

public void checkValidShare(Persistable object,
                            WTContainer to_container,
                            boolean is_version_share)
                     throws WTException


Supported API: false

Parameters:
object -
to_container -
is_version_share -
Throws:
WTException

setMapAccess

public WTCollection setMapAccess(WTCollection maps)
                          throws WTException
Sets ad hoc access control to the SharedContainerMap objects contained in the WTCollection passed as argument. Returns a collection of persisted shares. This method is called when shares are created. and the maps passed as argument has not been persisted yet.

Supported API: false

Parameters:
maps -
Returns:
WTCollection
Throws:
WTException

setObjectAccess

public WTCollection setObjectAccess(WTCollection objects,
                                    WTContainer to_container,
                                    boolean is_version_share)
                             throws WTException
Sets ad hoc access control to the Persistable objects contained in the WTCollection passed as argument This method is called when the object is being shared to the container passed as argument. The object is updated in the database in case it is modified. Returns a collection of persisted objects.

Supported API: false

Parameters:
objects -
to_container -
is_version_share -
Returns:
WTCollection
Throws:
WTException

checkValidShare

public void checkValidShare(WTCollection objects,
                            WTContainer to_container,
                            boolean is_version_share)
                     throws WTException


Supported API: false

Parameters:
objects -
to_container -
is_version_share -
Throws:
WTException

setObjectAccess

public Persistable setObjectAccess(Persistable object,
                                   WTContainer to_container,
                                   boolean is_version_share,
                                   Folder to_folder)
                            throws WTException
Throws:
WTException

setObjectAccess

public WTCollection setObjectAccess(WTCollection objects,
                                    WTContainer to_container,
                                    boolean is_version_share,
                                    Folder to_folder)
                             throws WTException
Throws:
WTException