@Override public List<CmisRepositoryEntryType> getRepositories(CmisExtensionType extension) throws CmisException { CmisService service = null; try { service = getServiceForRepositoryInfo(wsContext, null); if (stopBeforeService(service)) { return null; } List<RepositoryInfo> infoDataList = service.getRepositoryInfos(convert(extension)); if (stopAfterService(service)) { return null; } if (infoDataList == null) { return null; } List<CmisRepositoryEntryType> result = new ArrayList<CmisRepositoryEntryType>(); for (RepositoryInfo infoData : infoDataList) { CmisRepositoryEntryType entry = new CmisRepositoryEntryType(); entry.setRepositoryId(infoData.getId()); entry.setRepositoryName(infoData.getName()); result.add(entry); } return result; } catch (Exception e) { throw convertException(e); } finally { closeService(service); } }
public RepositoryInfoImpl(RepositoryInfo data) { id = data.getId(); name = data.getName(); description = data.getDescription(); versionSupported = data.getCmisVersionSupported(); capabilities = data.getCapabilities(); rootFolderId = data.getRootFolderId(); aclCapabilities = data.getAclCapabilities(); principalAnonymous = data.getPrincipalIdAnonymous(); principalAnyone = data.getPrincipalIdAnyone(); thinClientUri = data.getThinClientUri(); changesIncomplete = data.getChangesIncomplete(); changesOnType = data.getChangesOnType(); latestChangeLogToken = data.getLatestChangeLogToken(); vendorName = data.getVendorName(); productName = data.getProductName(); productVersion = data.getProductVersion(); extensionFeatures = data.getExtensionFeatures(); setExtensions(data.getExtensions()); }
result.setRepositoryDescription(repositoryInfo.getDescription()); result.setRepositoryId(repositoryInfo.getId()); result.setRepositoryName(repositoryInfo.getName()); result.setRootFolderId(repositoryInfo.getRootFolderId()); result.setThinClientURI(repositoryInfo.getThinClientUri());
public RepositoryInfoImpl(RepositoryInfo data) { id = data.getId(); name = data.getName(); description = data.getDescription(); versionSupported = data.getCmisVersionSupported(); capabilities = data.getCapabilities(); rootFolderId = data.getRootFolderId(); aclCapabilities = data.getAclCapabilities(); principalAnonymous = data.getPrincipalIdAnonymous(); principalAnyone = data.getPrincipalIdAnyone(); thinClientUri = data.getThinClientUri(); changesIncomplete = data.getChangesIncomplete(); changesOnType = data.getChangesOnType(); latestChangeLogToken = data.getLatestChangeLogToken(); vendorName = data.getVendorName(); productName = data.getProductName(); productVersion = data.getProductVersion(); extensionFeatures = data.getExtensionFeatures(); setExtensions(data.getExtensions()); }
XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_REPINFO_NAME, source.getName()); XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_REPINFO_DESCRIPTION, source.getDescription()); XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_REPINFO_VENDOR, source.getVendorName());
XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_REPINFO_NAME, source.getName()); XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_REPINFO_DESCRIPTION, source.getDescription()); XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_REPINFO_VENDOR, source.getVendorName());
result.put(JSON_REPINFO_NAME, repositoryInfo.getName()); result.put(JSON_REPINFO_DESCRIPTION, repositoryInfo.getDescription()); result.put(JSON_REPINFO_VENDOR, repositoryInfo.getVendorName());
result.put(JSON_REPINFO_NAME, repositoryInfo.getName()); result.put(JSON_REPINFO_DESCRIPTION, repositoryInfo.getDescription()); result.put(JSON_REPINFO_VENDOR, repositoryInfo.getVendorName());