CreateRootMap() public method

public CreateRootMap ( GlymaSessionConfiguration configuration, System.Guid domainId, string name, NodeType nodeType, string originalId ) : QueryResponse
configuration TransactionalNodeService.Common.GlymaSessionConfiguration
domainId System.Guid
name string
nodeType TransactionalNodeService.Common.Model.NodeType
originalId string
return TransactionalNodeService.Common.QueryResponse
 public QueryResponse CreateRootMap(string callingUrl, Guid domainId, string name, NodeType nodeType, string originalId)
 {
     using (GlymaNSApp.NodeServiceClient nodeServiceClient = new GlymaNSApp.NodeServiceClient(callingUrl))
     {
         return nodeServiceClient.CreateRootMap(callingUrl, domainId, name, nodeType, originalId);
     }
 }
示例#2
0
 public QueryResponse CreateRootMap(string callingUrl, Guid domainId, string name, NodeType nodeType, string originalId)
 {
     using (GlymaNSApp.NodeServiceClient nodeServiceClient = new GlymaNSApp.NodeServiceClient(callingUrl))
     {
         return(nodeServiceClient.CreateRootMap(callingUrl, domainId, name, nodeType, originalId));
     }
 }
        public QueryResponse CreateRootMap(string callingUrl, Guid domainId, string name, NodeType nodeType, string originalId)
        {
            using (GlymaNSApp.NodeServiceClient nodeServiceClient = new GlymaNSApp.NodeServiceClient(callingUrl))
            {
                using (WebAppSPGlymaSession glymaSession = new WebAppSPGlymaSession(callingUrl, domainId, null, SPGlymaRightFactory.Instance.RootMapCreateRight))
                {
                    GlymaSessionConfiguration configuration = glymaSession.ExportGlymaSession();

                    return(nodeServiceClient.CreateRootMap(configuration, domainId, name, nodeType, originalId));
                }
            }
        }
        public QueryResponse CreateRootMap(string callingUrl, Guid domainId, string name, NodeType nodeType, string originalId)
        {
            using (GlymaNSApp.NodeServiceClient nodeServiceClient = new GlymaNSApp.NodeServiceClient(callingUrl))
            {
                using (WebAppSPGlymaSession glymaSession = new WebAppSPGlymaSession(callingUrl, domainId, null, SPGlymaRightFactory.Instance.RootMapCreateRight))
                {
                    GlymaSessionConfiguration configuration = glymaSession.ExportGlymaSession();

                    return nodeServiceClient.CreateRootMap(configuration, domainId, name, nodeType, originalId);
                }
            }
        }