I have a method which returns a document list consisting of all these attributes:
private String activitySource, activitySystemStatus, regionCode, channel,
creatorUserId, displayOnAccessIndicator, documentLocationCode,
extraDetails, keywordList, lastUserId, summaryText,
textTypeIndicator;
Here's the method:
public DocumentSummary[] getDocumentList(String crn, String dateFormat) {
log.debug("Entering getDocuments() method");
//
RetrieveDocumentListRequestDTO requestDto =
new RetrieveDocumentListRequestDTO();
RetrieveDocumentListResultDTO resultDto =
odrUtils.retrieveDocumentList(crn, requestDto);
Document[] dtoDocuments = resultDto.getDocumentArray();
//
DocumentSummary[] domainDocuments =
new DocumentSummary[dtoDocuments.length];
//
for (int count = 0; count < domainDocuments.length; count++) {
domainDocuments[count] =
new DocumentSummary(dtoDocuments[count], dateFormat);
}
return domainDocuments;
}
Instead of returning a whole list, how can I just return only a list with displayOnAccessIndicator is set?
Any suggestions or sample code would be appreciated.