/// <summary> /// Get all references. /// </summary> /// <param name="clientInformation">Information about the client that makes this web service call.</param> /// <returns>All references.</returns> public List <WebReference> GetReferences(WebClientInformation clientInformation) { using (WebServiceContext context = GetWebServiceContext(clientInformation)) { try { return(ReferenceManager.GetReferences(context)); } catch (Exception exception) { WebServiceData.LogManager.LogError(context, exception); throw; } } }
/// <summary> /// Get information about a reference relation. /// </summary> /// <param name="clientInformation">Information about the client that makes this web service call.</param> /// <param name="referenceRelationId">Id for reference relation.</param> /// <returns>A WebReferenceRelation object.</returns> public WebReferenceRelation GetReferenceRelationById(WebClientInformation clientInformation, int referenceRelationId) { using (WebServiceContext context = GetWebServiceContext(clientInformation)) { try { return(ReferenceManager.GetReferenceRelationById(context, referenceRelationId)); } catch (Exception exception) { WebServiceData.LogManager.LogError(context, exception); throw; } } }
/// <summary> /// Deletes specified reference relation. /// </summary> /// <param name="clientInformation">Information about the client that makes this web service call.</param> /// <param name="referenceRelationId">The reference relation id.</param> public void DeleteReferenceRelation(WebClientInformation clientInformation, Int32 referenceRelationId) { using (WebServiceContext context = GetWebServiceContext(clientInformation)) { try { ReferenceManager.DeleteReferenceRelation(context, referenceRelationId); } catch (Exception exception) { WebServiceData.LogManager.LogError(context, exception); throw; } } }
/// <summary> /// Create a new reference. /// </summary> /// <param name="clientInformation">Information about the client that makes this web service call.</param> /// <param name="reference">New reference to create.</param> public void CreateReference(WebClientInformation clientInformation, WebReference reference) { using (WebServiceContext context = GetWebServiceContext(clientInformation)) { try { ReferenceManager.CreateReference(context, reference); } catch (Exception exception) { WebServiceData.LogManager.LogError(context, exception); throw; } } }
/// <summary> /// Get reference relations that are related to specified object. /// </summary> /// <param name="clientInformation">Information about the client that makes this web service call.</param> /// <param name="relatedObjectGuid">GUID for the related object.</param> /// <returns>Reference relations that are related to specified object.</returns> public List <WebReferenceRelation> GetReferenceRelationsByRelatedObjectGuid(WebClientInformation clientInformation, String relatedObjectGuid) { using (WebServiceContext context = GetWebServiceContext(clientInformation)) { try { return(ReferenceManager.GetReferenceRelationsByGuid(context, relatedObjectGuid)); } catch (Exception exception) { WebServiceData.LogManager.LogError(context, exception); throw; } } }