Пример #1
0
        public List <ServiceEdgeType> ChildrenEdgeTypes(SecurityToken mySecurityToken, Int64 myTransToken, ServiceEdgeType myServiceEdgeType)
        {
            var Request  = ServiceRequestFactory.MakeRequestGetEdgeType(myServiceEdgeType.Name);
            var Response = this.GraphDS.GetEdgeType <IEdgeType>(mySecurityToken, myTransToken, Request, ServiceReturnConverter.ConvertOnlyEdgeType);

            return(Response.ChildrenEdgeTypes.Select(x => new ServiceEdgeType(x)).ToList());
        }
Пример #2
0
        public ServiceEdgeType ParentEdgeType(SecurityToken mySecurityToken, Int64 myTransToken, ServiceEdgeType myServiceEdgeType)
        {
            var Request  = ServiceRequestFactory.MakeRequestGetEdgeType(myServiceEdgeType.Name);
            var Response = this.GraphDS.GetEdgeType <IEdgeType>(mySecurityToken, myTransToken, Request, ServiceReturnConverter.ConvertOnlyEdgeType);

            return(new ServiceEdgeType(Response.ParentEdgeType));
        }
Пример #3
0
        public bool HasProperties(SecurityToken mySecurityToken, Int64 myTransToken, ServiceEdgeType myServiceEdgeType, bool myIncludeAncestorDefinitions)
        {
            var Request  = ServiceRequestFactory.MakeRequestGetEdgeType(myServiceEdgeType.Name);
            var Response = this.GraphDS.GetEdgeType <IEdgeType>(mySecurityToken, myTransToken, Request, ServiceReturnConverter.ConvertOnlyEdgeType);

            return(Response.HasProperties(myIncludeAncestorDefinitions));
        }
Пример #4
0
        public List <ServicePropertyDefinition> GetPropertyDefinitionsByNameListByEdgeType(SecurityToken mySecurityToken, Int64 myTransToken, String myServiceEdgeTypeName, List <string> myPropertyNames)
        {
            var Request  = ServiceRequestFactory.MakeRequestGetEdgeType(myServiceEdgeTypeName);
            var Response = this.GraphDS.GetEdgeType <IEdgeType>(mySecurityToken, myTransToken, Request, ServiceReturnConverter.ConvertOnlyEdgeType);

            return(Response.GetPropertyDefinitions(myPropertyNames).Select(x => new ServicePropertyDefinition(x)).ToList());
        }
Пример #5
0
        public ServicePropertyDefinition GetPropertyDefinitionByIDByEdgeType(SecurityToken mySecurityToken, Int64 myTransToken, String myServiceEdgeTypeName, long myPropertyID)
        {
            var Request  = ServiceRequestFactory.MakeRequestGetEdgeType(myServiceEdgeTypeName);
            var Response = this.GraphDS.GetEdgeType <IEdgeType>(mySecurityToken, myTransToken, Request, ServiceReturnConverter.ConvertOnlyEdgeType);

            return(new ServicePropertyDefinition(Response.GetPropertyDefinition(myPropertyID)));
        }
Пример #6
0
        public bool HasProperty(SecurityToken mySecurityToken, Int64 myTransToken, ServiceEdgeType myServiceEdgeType, string myAttributeName)
        {
            var Request  = ServiceRequestFactory.MakeRequestGetEdgeType(myServiceEdgeType.Name);
            var Response = this.GraphDS.GetEdgeType <IEdgeType>(mySecurityToken, myTransToken, Request, ServiceReturnConverter.ConvertOnlyEdgeType);

            return(Response.HasProperty(myAttributeName));
        }
Пример #7
0
        public List <ServiceAttributeDefinition> GetAttributeDefinitions(SecurityToken mySecurityToken, Int64 myTransToken, ServiceEdgeType myServiceEdgeType, bool myIncludeAncestorDefinitions)
        {
            var Request  = ServiceRequestFactory.MakeRequestGetEdgeType(myServiceEdgeType.Name);
            var Response = this.GraphDS.GetEdgeType <IEdgeType>(mySecurityToken, myTransToken, Request, ServiceReturnConverter.ConvertOnlyEdgeType);

            return(Response.GetAttributeDefinitions(myIncludeAncestorDefinitions).Select(x => ConvertHelper.ToServiceAttributeDefinition(x)).ToList());
        }
Пример #8
0
        public ServiceAttributeDefinition GetAttributeDefinitionByID(SecurityToken mySecurityToken, Int64 myTransToken, ServiceEdgeType myServiceEdgeType, long myAttributeID)
        {
            var Request  = ServiceRequestFactory.MakeRequestGetEdgeType(myServiceEdgeType.Name);
            var Response = this.GraphDS.GetEdgeType <IEdgeType>(mySecurityToken, myTransToken, Request, ServiceReturnConverter.ConvertOnlyEdgeType);

            return(ConvertHelper.ToServiceAttributeDefinition(Response.GetAttributeDefinition(myAttributeID)));
        }
Пример #9
0
        public ServiceEdgeType GetEdgeType(SecurityToken mySecurityToken, Int64 myTransactionToken,
                                           Int64 myEdgeTypeID, String myEdition = null)
        {
            var Request  = ServiceRequestFactory.MakeRequestGetEdgeType(myEdgeTypeID, myEdition);
            var Response = this.GraphDS.GetEdgeType <IEdgeType>(mySecurityToken, myTransactionToken, Request,
                                                                ServiceReturnConverter.ConvertOnlyEdgeType);

            return(new ServiceEdgeType(Response));
        }
Пример #10
0
        public bool IsDescendantOrSelf(SecurityToken mySecurityToken, Int64 myTransToken, ServiceEdgeType myServiceEdgeType, ServiceEdgeType myOtherType)
        {
            var Request  = ServiceRequestFactory.MakeRequestGetEdgeType(myOtherType.Name);
            var BaseType = this.GraphDS.GetEdgeType <IEdgeType>(mySecurityToken, myTransToken, Request, ServiceReturnConverter.ConvertOnlyEdgeType);

            Request = ServiceRequestFactory.MakeRequestGetEdgeType(myServiceEdgeType.Name);
            var Response = this.GraphDS.GetEdgeType <IEdgeType>(mySecurityToken, myTransToken, Request, ServiceReturnConverter.ConvertOnlyEdgeType);

            return(Response.IsDescendantOrSelf(BaseType));
        }