Interface ICommitDelegator

    • Method Detail

      • getCommitObject

        ICommit getCommitObject​(java.lang.String sha)
                         throws P4JavaException
        Usage: cat-file commit {object-sha}

        (requires 'super' permission)

        Parameters:
        sha - graph SHA
        Returns:
        graph commit object
        Throws:
        P4JavaException - API error
      • getCommitObject

        ICommit getCommitObject​(java.lang.String sha,
                                java.lang.String repo)
                         throws P4JavaException
        Usage: cat-file -n {repo} commit {object-sha}
        Parameters:
        sha - graph SHA
        repo - graph repo
        Returns:
        graph commit object
        Throws:
        P4JavaException - API error
      • getBlobObject

        java.io.InputStream getBlobObject​(java.lang.String repo,
                                          java.lang.String sha)
                                   throws P4JavaException
        Usage: cat-file -n {repo} blob {object-sha}
        Parameters:
        sha - graph SHA
        repo - graph repo
        Returns:
        InputStream of the graph file
        Throws:
        P4JavaException - API error
      • getGraphObject

        IGraphObject getGraphObject​(java.lang.String sha)
                             throws P4JavaException
        Usage: cat-file -t {object-sha}
        Parameters:
        sha - graph SHA
        Returns:
        graph object
        Throws:
        P4JavaException - API error