for (int i = 0, len = docReq.size() ; i < len ; i++) { tmpReq = docReq.get(i); tmpHomeID = tmpReq.getHomeCommunityId(); if (tmpHomeID == null || tmpHomeID.trim().length() == 0) { throw new XDSException(XDSException.XDS_ERR_MISSING_HOME_COMMUNITY_ID, "Missing HomeCommunityID for doc.uniqueID "+tmpReq.getDocumentUniqueId(), null); tmpRepoID = tmpReq.getRepositoryUniqueId(); tmpList = repoRequests.get(tmpRepoID); if (tmpList == null) {
List<RegistryError> mainErrors = regErrors.getRegistryError(); for ( DocumentRequest docReq : req.getDocumentRequest() ) { reqRepoUid = docReq.getRepositoryUniqueId(); docUid = docReq.getDocumentUniqueId(); if ( reqRepoUid.equals(repositoryUID)) { doc = retrieveDocument(docUid);
if (docReq != null && docReq.size() > 0) { List<DocumentRequest> tmpList; String repositoryID = docReq.get(0).getRepositoryUniqueId(); String tmpRepoID; DocumentRequest tmpReq; for (int i = docReq.size()-1 ; i > 0 ; i--) { tmpRepoID = docReq.get(i).getRepositoryUniqueId(); if (!repositoryID.equals(tmpRepoID)) { tmpReq = docReq.remove(i);
List<RegistryError> mainErrors = regErrors.getRegistryError(); for ( DocumentRequest docReq : req.getDocumentRequest() ) { reqRepoUid = docReq.getRepositoryUniqueId(); docUid = docReq.getDocumentUniqueId(); if (reqRepoUid == null || docUid == null || reqRepoUid.trim().length() == 0 || docUid.trim().length() == 0) { mainErrors.add(XDSUtil.getRegistryError(XDSException.XDS_ERR_SEVERITY_ERROR, XDSException.XDS_ERR_REPOSITORY_ERROR,
String home = req.getDocumentRequest().get(0).getHomeCommunityId(); if (home == null) throw new XDSException( XDSException.XDS_ERR_MISSING_HOME_COMMUNITY_ID, "Missing Home Community ID in request! repositoryID: "+repositoryID, null);
/** * Create an instance of {@link RetrieveDocumentSetRequestType.DocumentRequest } * */ public RetrieveDocumentSetRequestType.DocumentRequest createRetrieveDocumentSetRequestTypeDocumentRequest() { return new RetrieveDocumentSetRequestType.DocumentRequest(); }