public IRepositoryInfo GetRepositoryInfo(string repositoryId, IExtensionsData extension) { IRepositoryInfo result = null; bool hasExtension = (extension != null) && (extension.Extensions != null) && (extension.Extensions.Count > 0); RepositoryInfoCache cache = session.GetRepositoryInfoCache(); // if extension is not set, check the cache first if (!hasExtension) { result = cache.Get(repositoryId); if (result != null) { return(result); } } // it was not in the cache -> get the SPI and fetch the repository info ICmisSpi spi = session.GetSpi(); result = spi.GetRepositoryService().GetRepositoryInfo(repositoryId, extension); // put it into the cache if (!hasExtension) { cache.Put(result); } return(result); }
public ITypeDefinition GetTypeDefinition(string repositoryId, string typeId, IExtensionsData extension) { ITypeDefinition result = null; bool hasExtension = (extension != null) && (extension.Extensions != null) && (extension.Extensions.Count > 0); TypeDefinitionCache cache = session.GetTypeDefinitionCache(); // if extension is not set, check the cache first if (!hasExtension) { result = cache.Get(repositoryId, typeId); if (result != null) { return(result); } } // it was not in the cache -> get the SPI and fetch the type definition ICmisSpi spi = session.GetSpi(); result = spi.GetRepositoryService().GetTypeDefinition(repositoryId, typeId, extension); // put it into the cache if (!hasExtension && (result != null)) { cache.Put(repositoryId, result); } return(result); }
protected void HandleExtension(XmlReader parser, IExtensionsData extData) { IList <ICmisExtensionElement> extensions = extData.Extensions; if (extensions == null) { extensions = new List <ICmisExtensionElement>(); extData.Extensions = extensions; } if (extensions.Count + 1 > XmlConstraints.MaxExtensionsWidth) { throw new CmisInvalidArgumentException("Too many extensions! (More than " + XmlConstraints.MaxExtensionsWidth + " extensions.)"); } extensions.Add(HandleExtensionLevel(parser, 0)); }
public IList <IRepositoryInfo> GetRepositoryInfos(IExtensionsData extension) { IList <IRepositoryInfo> result = null; bool hasExtension = (extension != null) && (extension.Extensions != null) && (extension.Extensions.Count > 0); // get the SPI and fetch the repository infos ICmisSpi spi = session.GetSpi(); result = spi.GetRepositoryService().GetRepositoryInfos(extension); // put it into the cache if (!hasExtension && (result != null)) { RepositoryInfoCache cache = session.GetRepositoryInfoCache(); foreach (IRepositoryInfo rid in result) { cache.Put(rid); } } return(result); }
public ITypeDefinitionList GetTypeChildren(string repositoryId, string typeId, bool?includePropertyDefinitions, long?maxItems, long?skipCount, IExtensionsData extension) { ITypeDefinitionList result = null; bool hasExtension = (extension != null) && (extension.Extensions != null) && (extension.Extensions.Count > 0); // get the SPI and fetch the type definitions ICmisSpi spi = session.GetSpi(); result = spi.GetRepositoryService().GetTypeChildren(repositoryId, typeId, includePropertyDefinitions, maxItems, skipCount, extension); // put it into the cache if (!hasExtension && (includePropertyDefinitions ?? false) && (result != null) && (result.List != null)) { TypeDefinitionCache cache = session.GetTypeDefinitionCache(); foreach (ITypeDefinition tdd in result.List) { cache.Put(repositoryId, tdd); } } return(result); }
public void DeleteType(string repositoryId, string typeId, IExtensionsData extension) { ICmisSpi spi = session.GetSpi(); spi.GetRepositoryService().DeleteType(repositoryId, typeId, extension); }
public void MoveObject(string repositoryId, ref string objectId, string targetFolderId, string sourceFolderId, IExtensionsData extension) { ObjectServicePortClient port = Provider.GetObjectService(); try { cmisExtensionType cmisExtension = Converter.ConvertExtension(extension); port.moveObject(repositoryId, ref objectId, targetFolderId, sourceFolderId, ref cmisExtension); Converter.ConvertExtension(cmisExtension, extension); } catch (FaultException<cmisFaultType> fe) { throw ConvertException(fe); } catch (Exception e) { throw new CmisRuntimeException("Error: " + e.Message, e); } }
public IObjectData GetObjectByPath(string repositoryId, string path, string filter, bool? includeAllowableActions, IncludeRelationshipsFlag? includeRelationships, string renditionFilter, bool? includePolicyIds, bool? includeAcl, IExtensionsData extension) { ObjectServicePortClient port = Provider.GetObjectService(); try { return Converter.Convert(port.getObjectByPath(repositoryId, path, filter, includeAllowableActions, (enumIncludeRelationships?)CmisValue.CmisToSerializerEnum(includeRelationships), renditionFilter, includePolicyIds, includeAcl, Converter.ConvertExtension(extension))); } catch (FaultException<cmisFaultType> fe) { throw ConvertException(fe); } catch (Exception e) { throw new CmisRuntimeException("Error: " + e.Message, e); } }
public void UpdateProperties(string repositoryId, ref string objectId, ref string changeToken, IProperties properties, IExtensionsData extension) { ObjectServicePortClient port = Provider.GetObjectService(); try { cmisExtensionType cmisExtension = Converter.ConvertExtension(extension); port.updateProperties(repositoryId, ref objectId, ref changeToken, Converter.Convert(properties), ref cmisExtension); Converter.ConvertExtension(cmisExtension, extension); } catch (FaultException<cmisFaultType> fe) { throw ConvertException(fe); } catch (Exception e) { throw new CmisRuntimeException("Error: " + e.Message, e); } }
public string CreateDocumentFromSource(string repositoryId, string sourceId, IProperties properties, string folderId, VersioningState? versioningState, IList<string> policies, IAcl addAces, IAcl removeAces, IExtensionsData extension) { ObjectServicePortClient port = Provider.GetObjectService(); try { cmisExtensionType cmisExtension = Converter.ConvertExtension(extension); string objectId = port.createDocumentFromSource(repositoryId, sourceId, Converter.Convert(properties), folderId, (enumVersioningState?)CmisValue.CmisToSerializerEnum(versioningState), Converter.ConvertList(policies), Converter.Convert(addAces), Converter.Convert(removeAces), ref cmisExtension); Converter.ConvertExtension(cmisExtension, extension); return objectId; } catch (FaultException<cmisFaultType> fe) { throw ConvertException(fe); } catch (Exception e) { throw new CmisRuntimeException("Error: " + e.Message, e); } }
public IProperties GetProperties(string repositoryId, string objectId, string filter, IExtensionsData extension) { ObjectServicePortClient port = Provider.GetObjectService(); try { return Converter.Convert(port.getProperties(repositoryId, objectId, filter, Converter.ConvertExtension(extension))); } catch (FaultException<cmisFaultType> fe) { throw ConvertException(fe); } catch (Exception e) { throw new CmisRuntimeException("Error: " + e.Message, e); } }
public void AddObjectToFolder(string repositoryId, string objectId, string folderId, bool? allVersions, IExtensionsData extension) { MultiFilingServicePortClient port = Provider.GetMultiFilingService(); try { cmisExtensionType cmisExtension = Converter.ConvertExtension(extension); port.addObjectToFolder(repositoryId, objectId, folderId, allVersions == null ? true : (bool)allVersions, ref cmisExtension); Converter.ConvertExtension(cmisExtension, extension); } catch (FaultException<cmisFaultType> fe) { throw ConvertException(fe); } catch (Exception e) { throw new CmisRuntimeException("Error: " + e.Message, e); } }
public IList<IObjectParentData> GetObjectParents(string repositoryId, string objectId, string filter, bool? includeAllowableActions, IncludeRelationshipsFlag? includeRelationships, string renditionFilter, bool? includeRelativePathSegment, IExtensionsData extension) { NavigationServicePortClient port = Provider.GetNavigationService(); try { cmisObjectParentsType[] parents = port.getObjectParents(repositoryId, objectId, filter, includeAllowableActions, (enumIncludeRelationships?)CmisValue.CmisToSerializerEnum(includeRelationships), renditionFilter, includeRelativePathSegment, Converter.ConvertExtension(extension)); if (parents == null) { return null; } List<IObjectParentData> result = new List<IObjectParentData>(); foreach (cmisObjectParentsType parent in parents) { result.Add(Converter.Convert(parent)); } return result; } catch (FaultException<cmisFaultType> fe) { throw ConvertException(fe); } catch (Exception e) { throw new CmisRuntimeException("Error: " + e.Message, e); } }
public IObjectList Query(string repositoryId, string statement, bool? searchAllVersions, bool? includeAllowableActions, IncludeRelationshipsFlag? includeRelationships, string renditionFilter, long? maxItems, long? skipCount, IExtensionsData extension) { DiscoveryServicePortClient port = Provider.GetDiscoveryService(); try { return Converter.Convert(port.query(repositoryId, statement, searchAllVersions, includeAllowableActions, (enumIncludeRelationships?)CmisValue.CmisToSerializerEnum(includeRelationships), renditionFilter, maxItems.ToString(), skipCount.ToString(), Converter.ConvertExtension(extension), null)); } catch (FaultException<cmisFaultType> fe) { throw ConvertException(fe); } catch (Exception e) { throw new CmisRuntimeException("Error: " + e.Message, e); } }
public IObjectList GetContentChanges(string repositoryId, ref string changeLogToken, bool? includeProperties, string filter, bool? includePolicyIds, bool? includeAcl, long? maxItems, IExtensionsData extension) { DiscoveryServicePortClient port = Provider.GetDiscoveryService(); try { return Converter.Convert(port.getContentChanges(repositoryId, ref changeLogToken, includeProperties, filter, includePolicyIds, includeAcl, maxItems.ToString(), Converter.ConvertExtension(extension))); } catch (FaultException<cmisFaultType> fe) { throw ConvertException(fe); } catch (Exception e) { throw new CmisRuntimeException("Error: " + e.Message, e); } }
public IObjectList GetObjectRelationships(string repositoryId, string objectId, bool? includeSubRelationshipTypes, RelationshipDirection? relationshipDirection, string typeId, string filter, bool? includeAllowableActions, long? maxItems, long? skipCount, IExtensionsData extension) { RelationshipServicePortClient port = Provider.GetRelationshipService(); try { return Converter.Convert(port.getObjectRelationships(repositoryId, objectId, includeSubRelationshipTypes == null ? true : (bool)includeSubRelationshipTypes, (enumRelationshipDirection?)CmisValue.CmisToSerializerEnum(relationshipDirection), typeId, filter, includeAllowableActions, maxItems.ToString(), skipCount.ToString(), Converter.ConvertExtension(extension))); } catch (FaultException<cmisFaultType> fe) { throw ConvertException(fe); } catch (Exception e) { throw new CmisRuntimeException("Error: " + e.Message, e); } }
public IList<IObjectData> GetAllVersions(string repositoryId, string objectId, string versionSeriesId, string filter, bool? includeAllowableActions, IExtensionsData extension) { VersioningServicePortClient port = Provider.GetVersioningService(); try { cmisObjectType[] versions = port.getAllVersions(repositoryId, versionSeriesId, filter, includeAllowableActions, Converter.ConvertExtension(extension)); if (versions == null) { return null; } IList<IObjectData> result = new List<IObjectData>(); foreach (cmisObjectType version in versions) { result.Add(Converter.Convert(version)); } return result; } catch (FaultException<cmisFaultType> fe) { throw ConvertException(fe); } catch (Exception e) { throw new CmisRuntimeException("Error: " + e.Message, e); } }
public IProperties GetPropertiesOfLatestVersion(string repositoryId, string objectId, string versionSeriesId, bool major, string filter, IExtensionsData extension) { VersioningServicePortClient port = Provider.GetVersioningService(); try { return Converter.Convert(port.getPropertiesOfLatestVersion(repositoryId, versionSeriesId, major, filter, Converter.ConvertExtension(extension))); } catch (FaultException<cmisFaultType> fe) { throw ConvertException(fe); } catch (Exception e) { throw new CmisRuntimeException("Error: " + e.Message, e); } }
public void CheckIn(string repositoryId, ref string objectId, bool? major, IProperties properties, IContentStream contentStream, string checkinComment, IList<string> policies, IAcl addAces, IAcl removeAces, IExtensionsData extension) { VersioningServicePortClient port = Provider.GetVersioningService(); try { cmisExtensionType cmisExtension = Converter.ConvertExtension(extension); port.checkIn(repositoryId, ref objectId, major, Converter.Convert(properties), Converter.Convert(contentStream), checkinComment, Converter.ConvertList(policies), Converter.Convert(addAces), Converter.Convert(removeAces), ref cmisExtension); Converter.ConvertExtension(cmisExtension, extension); } catch (FaultException<cmisFaultType> fe) { throw ConvertException(fe); } catch (Exception e) { throw new CmisRuntimeException("Error: " + e.Message, e); } }
public IAcl GetAcl(string repositoryId, string objectId, bool? onlyBasicPermissions, IExtensionsData extension) { ACLServicePortClient port = Provider.GetAclService(); try { return Converter.Convert(port.getACL(repositoryId, objectId, onlyBasicPermissions, Converter.ConvertExtension(extension))); } catch (FaultException<cmisFaultType> fe) { throw ConvertException(fe); } catch (Exception e) { throw new CmisRuntimeException("Error: " + e.Message, e); } }
public IList<IObjectInFolderContainer> GetFolderTree(string repositoryId, string folderId, long? depth, string filter, bool? includeAllowableActions, IncludeRelationshipsFlag? includeRelationships, string renditionFilter, bool? includePathSegment, IExtensionsData extension) { NavigationServicePortClient port = Provider.GetNavigationService(); try { cmisObjectInFolderContainerType[] descendants = port.getFolderTree(repositoryId, folderId, depth.ToString(), filter, includeAllowableActions, (enumIncludeRelationships?)CmisValue.CmisToSerializerEnum(includeRelationships), renditionFilter, includePathSegment, Converter.ConvertExtension(extension)); if (descendants == null) { return null; } List<IObjectInFolderContainer> result = new List<IObjectInFolderContainer>(); foreach (cmisObjectInFolderContainerType container in descendants) { result.Add(Converter.Convert(container)); } return result; } catch (FaultException<cmisFaultType> fe) { throw ConvertException(fe); } catch (Exception e) { throw new CmisRuntimeException("Error: " + e.Message, e); } }
public IAcl ApplyAcl(string repositoryId, string objectId, IAcl addAces, IAcl removeAces, AclPropagation? aclPropagation, IExtensionsData extension) { ACLServicePortClient port = Provider.GetAclService(); try { return Converter.Convert(port.applyACL(repositoryId, objectId, Converter.Convert(addAces), Converter.Convert(removeAces), (enumACLPropagation?)CmisValue.CmisToSerializerEnum(aclPropagation), Converter.ConvertExtension(extension))); } catch (FaultException<cmisFaultType> fe) { throw ConvertException(fe); } catch (Exception e) { throw new CmisRuntimeException("Error: " + e.Message, e); } }
public IObjectList GetCheckedOutDocs(string repositoryId, string folderId, string filter, string orderBy, bool? includeAllowableActions, IncludeRelationshipsFlag? includeRelationships, string renditionFilter, long? maxItems, long? skipCount, IExtensionsData extension) { NavigationServicePortClient port = Provider.GetNavigationService(); try { return Converter.Convert(port.getCheckedOutDocs(repositoryId, folderId, filter, orderBy, includeAllowableActions, (enumIncludeRelationships?)CmisValue.CmisToSerializerEnum(includeRelationships), renditionFilter, maxItems.ToString(), skipCount.ToString(), Converter.ConvertExtension(extension))); } catch (FaultException<cmisFaultType> fe) { throw ConvertException(fe); } catch (Exception e) { throw new CmisRuntimeException("Error: " + e.Message, e); } }
public void RemovePolicy(string repositoryId, string policyId, string objectId, IExtensionsData extension) { PolicyServicePortClient port = Provider.GetPolicyService(); try { cmisExtensionType cmisExtension = Converter.ConvertExtension(extension); port.removePolicy(repositoryId, policyId, objectId, ref cmisExtension); Converter.ConvertExtension(cmisExtension, extension); } catch (FaultException<cmisFaultType> fe) { throw ConvertException(fe); } catch (Exception e) { throw new CmisRuntimeException("Error: " + e.Message, e); } }
public string CreatePolicy(string repositoryId, IProperties properties, string folderId, IList<string> policies, IAcl addAces, IAcl removeAces, IExtensionsData extension) { ObjectServicePortClient port = Provider.GetObjectService(); try { cmisExtensionType cmisExtension = Converter.ConvertExtension(extension); string objectId = port.createPolicy(repositoryId, Converter.Convert(properties), folderId, Converter.ConvertList(policies), Converter.Convert(addAces), Converter.Convert(removeAces), ref cmisExtension); Converter.ConvertExtension(cmisExtension, extension); return objectId; } catch (FaultException<cmisFaultType> fe) { throw ConvertException(fe); } catch (Exception e) { throw new CmisRuntimeException("Error: " + e.Message, e); } }
public IList<IObjectData> GetAppliedPolicies(string repositoryId, string objectId, string filter, IExtensionsData extension) { PolicyServicePortClient port = Provider.GetPolicyService(); try { cmisObjectType[] policies = port.getAppliedPolicies(repositoryId, objectId, filter, Converter.ConvertExtension(extension)); if (policies == null) { return null; } List<IObjectData> result = new List<IObjectData>(); foreach (cmisObjectType policy in policies) { result.Add(Converter.Convert(policy)); } return result; } catch (FaultException<cmisFaultType> fe) { throw ConvertException(fe); } catch (Exception e) { throw new CmisRuntimeException("Error: " + e.Message, e); } }
public IList<IRenditionData> GetRenditions(string repositoryId, string objectId, string renditionFilter, long? maxItems, long? skipCount, IExtensionsData extension) { ObjectServicePortClient port = Provider.GetObjectService(); try { cmisRenditionType[] renditions = port.getRenditions(repositoryId, objectId, renditionFilter, maxItems.ToString(), skipCount.ToString(), Converter.ConvertExtension(extension)); if (renditions == null) { return null; } IList<IRenditionData> result = new List<IRenditionData>(); foreach (cmisRenditionType rendition in renditions) { result.Add(Converter.Convert(rendition)); } return result; } catch (FaultException<cmisFaultType> fe) { throw ConvertException(fe); } catch (Exception e) { throw new CmisRuntimeException("Error: " + e.Message, e); } }
public IList<IRepositoryInfo> GetRepositoryInfos(IExtensionsData extension) { RepositoryServicePortClient port = Provider.GetRepositoryServicePort(); try { cmisRepositoryEntryType[] entries = port.getRepositories(Converter.ConvertExtension(extension)); if (entries == null) { return null; } IList<IRepositoryInfo> result = new List<IRepositoryInfo>(); foreach (cmisRepositoryEntryType entry in entries) { cmisRepositoryInfoType info = port.getRepositoryInfo(entry.repositoryId, null); result.Add(Converter.Convert(info)); } return result; } catch (FaultException<cmisFaultType> fe) { throw ConvertException(fe); } catch (Exception e) { throw new CmisRuntimeException("Error: " + e.Message, e); } }
public IContentStream GetContentStream(string repositoryId, string objectId, string streamId, long? offset, long? length, IExtensionsData extension) { ObjectServicePortClient port = Provider.GetObjectService(); try { return Converter.Convert(port.getContentStream( repositoryId, objectId, streamId, offset.ToString(), length.ToString(), Converter.ConvertExtension(extension))); } catch (FaultException<cmisFaultType> fe) { throw ConvertException(fe); } catch (Exception e) { throw new CmisRuntimeException("Error: " + e.Message, e); } }
public IList <ITypeDefinitionContainer> GetTypeDescendants(string repositoryId, string typeId, long?depth, bool?includePropertyDefinitions, IExtensionsData extension) { IList <ITypeDefinitionContainer> result = null; bool hasExtension = (extension != null) && (extension.Extensions != null) && (extension.Extensions.Count > 0); // get the SPI and fetch the type definitions ICmisSpi spi = session.GetSpi(); result = spi.GetRepositoryService().GetTypeDescendants(repositoryId, typeId, depth, includePropertyDefinitions, extension); // put it into the cache if (!hasExtension && (includePropertyDefinitions ?? false) && (result != null)) { TypeDefinitionCache cache = session.GetTypeDefinitionCache(); AddToTypeCache(cache, repositoryId, result); } return(result); }
public ITypeDefinition UpdateType(string repositoryId, ITypeDefinition type, IExtensionsData extension) { ICmisSpi spi = session.GetSpi(); return(spi.GetRepositoryService().UpdateType(repositoryId, type, extension)); }
public void SetContentStream(string repositoryId, ref string objectId, bool? overwriteFlag, ref string changeToken, IContentStream contentStream, IExtensionsData extension) { ObjectServicePortClient port = Provider.GetObjectService(); try { cmisExtensionType cmisExtension = Converter.ConvertExtension(extension); port.setContentStream(repositoryId, ref objectId, overwriteFlag, ref changeToken, Converter.Convert(contentStream), ref cmisExtension); Converter.ConvertExtension(cmisExtension, extension); } catch (FaultException<cmisFaultType> fe) { throw ConvertException(fe); } catch (Exception e) { throw new CmisRuntimeException("Error: " + e.Message, e); } }
public void DeleteObject(string repositoryId, string objectId, bool? allVersions, IExtensionsData extension) { ObjectServicePortClient port = Provider.GetObjectService(); try { cmisExtensionType cmisExtension = Converter.ConvertExtension(extension); port.deleteObject(repositoryId, objectId, allVersions, ref cmisExtension); Converter.ConvertExtension(cmisExtension, extension); } catch (FaultException<cmisFaultType> fe) { throw ConvertException(fe); } catch (Exception e) { throw new CmisRuntimeException("Error: " + e.Message, e); } }
public ITypeDefinition GetTypeDefinition(string repositoryId, string typeId, IExtensionsData extension) { RepositoryServicePortClient port = Provider.GetRepositoryServicePort(); try { return Converter.Convert(port.getTypeDefinition(repositoryId, typeId, Converter.ConvertExtension(extension))); } catch (FaultException<cmisFaultType> fe) { throw ConvertException(fe); } catch (Exception e) { throw new CmisRuntimeException("Error: " + e.Message, e); } }
public ITypeDefinitionList GetTypeChildren(string repositoryId, string typeId, bool? includePropertyDefinitions, long? maxItems, long? skipCount, IExtensionsData extension) { RepositoryServicePortClient port = Provider.GetRepositoryServicePort(); try { return Converter.Convert(port.getTypeChildren(repositoryId, typeId, includePropertyDefinitions, maxItems.ToString(), skipCount.ToString(), Converter.ConvertExtension(extension))); } catch (FaultException<cmisFaultType> fe) { throw ConvertException(fe); } catch (Exception e) { throw new CmisRuntimeException("Error: " + e.Message, e); } }
public void CancelCheckOut(string repositoryId, string objectId, IExtensionsData extension) { VersioningServicePortClient port = Provider.GetVersioningService(); try { cmisExtensionType cmisExtension = Converter.ConvertExtension(extension); port.cancelCheckOut(repositoryId, objectId, ref cmisExtension); Converter.ConvertExtension(cmisExtension, extension); } catch (FaultException<cmisFaultType> fe) { throw ConvertException(fe); } catch (Exception e) { throw new CmisRuntimeException("Error: " + e.Message, e); } }
public IList<ITypeDefinitionContainer> GetTypeDescendants(string repositoryId, string typeId, long? depth, bool? includePropertyDefinitions, IExtensionsData extension) { RepositoryServicePortClient port = Provider.GetRepositoryServicePort(); try { cmisTypeContainer[] descendants = port.getTypeDescendants( repositoryId, typeId, depth.ToString(), includePropertyDefinitions, Converter.ConvertExtension(extension)); if (descendants == null) { return null; } List<ITypeDefinitionContainer> result = new List<ITypeDefinitionContainer>(); foreach (cmisTypeContainer container in descendants) { result.Add(Converter.Convert(container)); } return result; } catch (FaultException<cmisFaultType> fe) { throw ConvertException(fe); } catch (Exception e) { throw new CmisRuntimeException("Error: " + e.Message, e); } }
public ITypeDefinition GetTypeDefinition(string repositoryId, string typeId, IExtensionsData extension) { ITypeDefinition result = null; bool hasExtension = (extension != null) && (extension.Extensions != null) && (extension.Extensions.Count > 0); TypeDefinitionCache cache = session.GetTypeDefinitionCache(); // if extension is not set, check the cache first if (!hasExtension) { result = cache.Get(repositoryId, typeId); if (result != null) { return result; } } // it was not in the cache -> get the SPI and fetch the type definition ICmisSpi spi = session.GetSpi(); result = spi.GetRepositoryService().GetTypeDefinition(repositoryId, typeId, extension); // put it into the cache if (!hasExtension && (result != null)) { cache.Put(repositoryId, result); } return result; }