Class SharedLinks


  • public class SharedLinks
    extends ModelRequest<SharedLinks>
    Declares all Rest API under the /shared-links path
    Author:
    Meenal Bhave
    • Constructor Detail

      • SharedLinks

        public SharedLinks​(RestWrapper restWrapper)
    • Method Detail

      • getSharedLinkContent

        public RestResponse getSharedLinkContent​(RestSharedLinksModel sharedLinksModel)
        Retrieve content for a specific sharedLink using GET call on "shared-links/{sharedLinkId}/content"
        Parameters:
        sharedLinksModel -
        Returns:
        RestResponse
      • sendSharedLinkEmail

        public RestResponse sendSharedLinkEmail​(RestSharedLinksModel sharedLinksModel,
                                                java.lang.String postBody)
        Send email with a specific sharedLink using POST call on "shared-links/{sharedLinkId}/email"
        Parameters:
        sharedLinksModel -
        postBody -
        Returns:
        RestResponse
      • getSharedLinkRenditionContent

        public RestResponse getSharedLinkRenditionContent​(RestSharedLinksModel sharedLinksModel,
                                                          java.lang.String renditionId)
        Retrieve rendition content for the specified sharedLink using GET call on "shared-links/{sharedLinkId}/renditions/{renditionId}/content"
        Parameters:
        sharedLinksModel -
        renditionId -
        Returns:
        RestRenditionInfoModel
      • deleteSharedLink

        public void deleteSharedLink​(RestSharedLinksModel sharedLinksModel)
        Removes SharedLink for the specified file, the sharedlink is deleted, file is unshared as a result
        Parameters:
        RestSharedLinksModel -
      • createSharedLink

        public RestSharedLinksModel createSharedLink​(org.alfresco.utility.model.FileModel file)
        Creates SharedLink for the specified file
        Parameters:
        file -
        Returns:
        RestSharedLinksModel
      • createSharedLinks

        public RestSharedLinksModelCollection createSharedLinks​(org.alfresco.utility.model.FileModel... files)
        Creates SharedLink for all the specified files
        Parameters:
        file - list
        Returns:
        RestSharedLinksModelCollection
      • createSharedLinkWithExpiryDate

        public RestSharedLinksModel createSharedLinkWithExpiryDate​(org.alfresco.utility.model.FileModel file,
                                                                   java.lang.String expiryDate)
        Creates SharedLink for the specified file, with the given expiry date
        Parameters:
        file -
        expiryDate - : format: "2027-03-23T23:00:00.000+0000";
        Returns:
        RestSharedLinksModel