mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
review updates
This commit is contained in:
@@ -74,7 +74,9 @@ public class RecordsAPI extends RMModelRequest
|
||||
public <T> T getRecordContentText(String recordId) throws Exception
|
||||
{
|
||||
mandatoryString("recordId", recordId);
|
||||
Response response = given().auth().basic(getRMRestWrapper().getTestUser().getUsername(), getRMRestWrapper().getTestUser().getPassword())
|
||||
Response response = given().auth().basic(getRMRestWrapper().getTestUser().getUsername(),
|
||||
getRMRestWrapper().getTestUser().getPassword()
|
||||
)
|
||||
.get("records/{recordId}/content", recordId)
|
||||
.andReturn();
|
||||
|
||||
@@ -84,10 +86,10 @@ public class RecordsAPI extends RMModelRequest
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the html content for the electronic record
|
||||
* Get the content RestHtmlResponse(Response header and body) for the electronic record
|
||||
*
|
||||
* @param recordId The id of the electronic record
|
||||
* @return The content for the given record id
|
||||
* @return The body and the header for the record
|
||||
* @throws Exception for the following cases:
|
||||
* <ul>
|
||||
* <li>{@code recordId} has no content</li>
|
||||
|
Reference in New Issue
Block a user