Interface DFSharedObjectOwnerCapability

    • Method Detail

      • setSharing

        void setSharing​(com.im.commons.sharing.DFSharing sharing,
                        com.im.commons.progress.DFEnvironmentRW env)
        Change the sharing status of the object. If object's sharing status is going to be lowered, it means other users could still see it as it's part of their locally cached models. Once other user closes the connection and reload the model the object will not be there anymore. (depending if it's PUBLIC or SHARED).
        Parameters:
        sharing - new sharing object
        env - environment
      • giveOwnershipTo

        void giveOwnershipTo​(java.lang.String user,
                             com.im.commons.progress.DFEnvironmentRW env)
        Give ownership of the item to another user. This capability becomes invalid in the process.
        Parameters:
        user - the new owner login
        env - environment
        See Also:
        isValid()
      • isValid

        boolean isValid()
        The owner capability may be invalidated by passing the item ownership to another user. Once invalidated, this object never becomes valid again.
        Returns:
        whether the object is still valid