コード例 #1
0
        public List <ServiceIndexDefinition> GetIndexDefinitions(SecurityToken mySecurityToken, Int64 myTransToken, ServiceVertexType myServiceVertexType, bool myIncludeAncestorDefinitions)
        {
            var Request  = ServiceRequestFactory.MakeRequestGetVertexType(myServiceVertexType.Name);
            var Response = this.GraphDS.GetVertexType <IVertexType>(mySecurityToken, myTransToken, Request, ServiceReturnConverter.ConvertOnlyVertexType);

            return(Response.GetIndexDefinitions(myIncludeAncestorDefinitions).Select(x => new ServiceIndexDefinition(x)).ToList());
        }
コード例 #2
0
        public List <ServiceVertexType> ChildrenVertexTypes(SecurityToken mySecurityToken, Int64 myTransToken, ServiceVertexType myServiceVertexType)
        {
            var Request  = ServiceRequestFactory.MakeRequestGetVertexType(myServiceVertexType.Name);
            var Response = this.GraphDS.GetVertexType <IVertexType>(mySecurityToken, myTransToken, Request, ServiceReturnConverter.ConvertOnlyVertexType);

            return(Response.ChildrenVertexTypes.Select(x => new ServiceVertexType(x)).ToList());
        }
コード例 #3
0
        public ServiceIncomingEdgeDefinition GetIncomingEdgeDefinition(SecurityToken mySecurityToken, Int64 myTransToken, ServiceVertexType myServiceVertexType, string myEdgeName)
        {
            var Request  = ServiceRequestFactory.MakeRequestGetVertexType(myServiceVertexType.Name);
            var Response = this.GraphDS.GetVertexType <IVertexType>(mySecurityToken, myTransToken, Request, ServiceReturnConverter.ConvertOnlyVertexType);

            return(new ServiceIncomingEdgeDefinition(Response.GetIncomingEdgeDefinition(myEdgeName)));
        }
コード例 #4
0
        public bool HasIndexDefinitions(SecurityToken mySecurityToken, Int64 myTransToken, ServiceVertexType myServiceVertexType, bool myIncludeAncestorDefinitions)
        {
            var Request  = ServiceRequestFactory.MakeRequestGetVertexType(myServiceVertexType.Name);
            var Response = this.GraphDS.GetVertexType <IVertexType>(mySecurityToken, myTransToken, Request, ServiceReturnConverter.ConvertOnlyVertexType);

            return(Response.HasIndexDefinitions(myIncludeAncestorDefinitions));
        }
コード例 #5
0
        public bool HasOutgoingEdge(SecurityToken mySecurityToken, Int64 myTransToken, ServiceVertexType myServiceVertexType, string myEdgeName)
        {
            var Request  = ServiceRequestFactory.MakeRequestGetVertexType(myServiceVertexType.Name);
            var Response = this.GraphDS.GetVertexType <IVertexType>(mySecurityToken, myTransToken, Request, ServiceReturnConverter.ConvertOnlyVertexType);

            return(Response.HasOutgoingEdge(myEdgeName));
        }
コード例 #6
0
        public List <ServicePropertyDefinition> GetPropertyDefinitionsByNameListByVertexType(SecurityToken mySecurityToken, Int64 myTransToken, String myServiceVertexTypeName, List <string> myPropertyNames)
        {
            var Request  = ServiceRequestFactory.MakeRequestGetVertexType(myServiceVertexTypeName);
            var Response = this.GraphDS.GetVertexType <IVertexType>(mySecurityToken, myTransToken, Request, ServiceReturnConverter.ConvertOnlyVertexType);

            return(Response.GetPropertyDefinitions(myPropertyNames).Select(x => new ServicePropertyDefinition(x)).ToList());
        }
コード例 #7
0
        public ServicePropertyDefinition GetPropertyDefinitionByIDByVertexType(SecurityToken mySecurityToken, Int64 myTransToken, String myServiceVertexTypeName, long myPropertyID)
        {
            var Request  = ServiceRequestFactory.MakeRequestGetVertexType(myServiceVertexTypeName);
            var Response = this.GraphDS.GetVertexType <IVertexType>(mySecurityToken, myTransToken, Request, ServiceReturnConverter.ConvertOnlyVertexType);

            return(new ServicePropertyDefinition(Response.GetPropertyDefinition(myPropertyID)));
        }
コード例 #8
0
        public ServiceAttributeDefinition GetAttributeDefinitionByID(SecurityToken mySecurityToken, Int64 myTransToken, ServiceVertexType myServiceVertexType, long myAttributeID)
        {
            var Request  = ServiceRequestFactory.MakeRequestGetVertexType(myServiceVertexType.Name);
            var Response = this.GraphDS.GetVertexType <IVertexType>(mySecurityToken, myTransToken, Request, ServiceReturnConverter.ConvertOnlyVertexType);

            return(ConvertHelper.ToServiceAttributeDefinition(Response.GetAttributeDefinition(myAttributeID)));
        }
コード例 #9
0
        public bool IsSealed(SecurityToken mySecurityToken, Int64 myTransToken, ServiceVertexType myServiceVertexType)
        {
            var Request  = ServiceRequestFactory.MakeRequestGetVertexType(myServiceVertexType.Name);
            var Response = this.GraphDS.GetVertexType <IVertexType>(mySecurityToken, myTransToken, Request, ServiceReturnConverter.ConvertOnlyVertexType);

            return(Response.IsSealed);
        }
コード例 #10
0
ファイル: GraphDS_API.cs プロジェクト: alrehamy/sones
        public ServiceVertexType GetVertexType(SecurityToken mySecurityToken, Int64 myTransactionToken, Int64 myVertexTypeID)
        {
            var Request  = ServiceRequestFactory.MakeRequestGetVertexType(myVertexTypeID);
            var Response = this.GraphDS.GetVertexType <IVertexType>(mySecurityToken, myTransactionToken, Request,
                                                                    ServiceReturnConverter.ConvertOnlyVertexType);

            return(new ServiceVertexType(Response));
        }
コード例 #11
0
        public bool IsDescendantOrSelf(SecurityToken mySecurityToken, Int64 myTransToken, ServiceVertexType myServiceVertexType, ServiceVertexType myOtherType)
        {
            var Request  = ServiceRequestFactory.MakeRequestGetVertexType(myOtherType.Name);
            var BaseType = this.GraphDS.GetVertexType <IVertexType>(mySecurityToken, myTransToken, Request, ServiceReturnConverter.ConvertOnlyVertexType);

            Request = ServiceRequestFactory.MakeRequestGetVertexType(myServiceVertexType.Name);
            var Response = this.GraphDS.GetVertexType <IVertexType>(mySecurityToken, myTransToken, Request, ServiceReturnConverter.ConvertOnlyVertexType);

            return(Response.IsDescendantOrSelf(BaseType));
        }
コード例 #12
0
        public ServiceOutgoingEdgeDefinition GetOutgoingEdgeDefinition(SecurityToken mySecurityToken, Int64 myTransToken, ServiceVertexType myServiceVertexType, string myEdgeName)
        {
            var Request  = ServiceRequestFactory.MakeRequestGetVertexType(myServiceVertexType.Name);
            var Response = this.GraphDS.GetVertexType <IVertexType>(mySecurityToken, myTransToken, Request, ServiceReturnConverter.ConvertOnlyVertexType);
            var value    = Response.GetOutgoingEdgeDefinition(myEdgeName);

            if (value != null)
            {
                return(new ServiceOutgoingEdgeDefinition(value));
            }
            return(null);
        }