public List<Audit> getAuditsForEntity(BigInteger entityId) throws IOException, TokenExpiredException {
        String requestUrl = RESOURCE + "/entity/" + entityId.toString();
        ArgusResponse response = getClient().executeHttpRequest(ArgusHttpClient.RequestType.GET, requestUrl, null);

        assertValidResponse(response, requestUrl);
        return fromJson(response.getResult(), new TypeReference<List<Audit>>() { });
    }
public List < Audit > getAuditsForEntity ( BigInteger entityId ) throws IOException , TokenExpiredException { String requestUrl = RESOURCE + "/entity/" + entityId . toString ( ) ; ArgusResponse response = getClient ( ) . executeHttpRequest ( ArgusHttpClient . RequestType . GET , requestUrl , null ) ; assertValidResponse ( response , requestUrl ) ; return fromJson ( response . getResult ( ) , new TypeReference < List < Audit > > ( ) { } ) ; }
Returns the audit history for the given entity.

@param   entityId  The ID of the entity for which to retrieve the audit history.

@return  The audit history for the entity.

@throws  IOException  If the server cannot be reached.
@throws  TokenExpiredException   If the token sent along with the request has expired