Esempio n. 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());
        }
Esempio n. 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());
        }
Esempio n. 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)));
        }
Esempio n. 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));
        }
Esempio n. 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));
        }
Esempio n. 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());
        }
Esempio n. 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)));
        }
Esempio n. 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)));
        }
Esempio n. 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);
        }
Esempio n. 10
0
        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));
        }
Esempio n. 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));
        }
Esempio n. 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);
        }