ShareLinkService
Functions
clean_links @classmethod
Method that clean the shared links
clean_expired_links :
bool - True If true delete the expired links
clean_invalid_links :
bool - True If true delete links where model does not exist anymore
find_by_token_and_check @classmethod
token :
str Return type :
ShareLink find_by_token_and_check_validity @classmethod
Method that find a shared entity link by its token and check if it is valid
token :
str Return type :
ShareLink find_by_type_and_entity @classmethod
Method that find a shared entity link by its entity id and type
entity_type :
ShareLinkEntityType entity_id :
str link_type :
ShareLinkType Return type :
gws_core.share.share_link.ShareLink | None generate_user_access_token_for_space_link @classmethod
Method called from Space to generate a user access token for a space link. As this is called by space, the user is authenticated
token :
str user :
UserFullDTO Return type :
GenerateUserAccessTokenForSpaceResponse