Class RestCoreAPI


  • public class RestCoreAPI
    extends ModelRequest<RestCoreAPI>
    Defines the entire Rest Core API {@link https://api-explorer.alfresco.com/api-explorer/} select "Core API"
    • Constructor Detail

      • RestCoreAPI

        public RestCoreAPI​(RestWrapper restWrapper)
    • Method Detail

      • usingSite

        public Site usingSite​(java.lang.String siteId)
        Provides DSL on all REST calls under sites/{siteId}/... API path
        Parameters:
        siteId -
        Returns:
        Site
      • usingSite

        public Site usingSite​(org.alfresco.utility.model.SiteModel siteModel)
        Provides DSL on all REST calls under sites/{siteId}/... API path
        Parameters:
        SiteModel -
        Returns:
        Site
      • getSites

        public RestSiteModelsCollection getSites()
                                          throws java.lang.Exception
        Provides DSL on all REST calls under /sites API path
        Returns:
        Site
        Throws:
        java.lang.Exception
      • usingResource

        public Node usingResource​(org.alfresco.utility.model.RepoTestModel node)
                           throws java.lang.Exception
        Provides DSL on all REST calls under /nodes API path
        Returns:
        Node
        Throws:
        java.lang.Exception
      • usingNode

        public Node usingNode​(org.alfresco.utility.model.RepoTestModel node)
                       throws java.lang.Exception
        Parameters:
        node -
        Returns:
        Throws:
        java.lang.Exception
      • usingNode

        public Node usingNode()
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • usingUser

        public People usingUser​(org.alfresco.utility.model.UserModel person)
                         throws java.lang.Exception
        Provides DSL of all REST calls under /people API path
        Returns:
        People
        Throws:
        java.lang.Exception
      • usingMe

        public People usingMe()
                       throws java.lang.Exception
        Make REST calls using current authenticated user, but using -me- instead of username
        Returns:
        People
        Throws:
        java.lang.Exception
      • usingAuthUser

        public People usingAuthUser()
                             throws java.lang.Exception
        Make REST calls using current authenticated user. This is set on the #authenticateUser(UserModel) call
        Returns:
        People
        Throws:
        java.lang.Exception
      • usingNetworks

        public Networks usingNetworks()
        Provides DSL on all REST calls under /network API path
        Returns:
        Networks
      • usingQueries

        public Queries usingQueries()
      • usingAudit

        public Audit usingAudit()
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • usingTrashcan

        public Trashcan usingTrashcan()
      • usingSharedLinks

        public SharedLinks usingSharedLinks()
        SharedLinks api endpoint
        Returns:
        SharedLinks api endpoint
      • usingGroups

        public Groups usingGroups()
      • usingActions

        public Actions usingActions()
      • usingDownloads

        public Downloads usingDownloads()
      • usingDownloads

        public Downloads usingDownloads​(RestDownloadsModel downloadsModel)
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception