public SvcAppSPGlymaSession(GlymaSessionConfiguration configuration) { _configuration = configuration; _sessionId = Guid.Empty; _session = new MapSession(this); _parameters = new MapParameters(this); }
public SvcAppSPGlymaSession(GlymaSessionConfiguration configuration, Guid sessionId, bool preload) : this(configuration, sessionId) { if (preload) { _session.LoadTransactions(); _parameters.LoadParameters(); } }
public SvcAppSPGlymaSession(GlymaSessionConfiguration configuration, Guid sessionId) { _configuration = configuration; _sessionId = sessionId; _session = new MapSession(this, _sessionId); _parameters = new MapParameters(this); }
public QueryResponse CreateRootMap(GlymaSessionConfiguration configuration, Guid domainId, string name, NodeType nodeType, string originalId) { QueryResponse result = null; // run the call against the application proxy NodeServiceApplicationProxy.Invoke(_serviceContext, proxy => result = proxy.CreateRootMap(configuration, domainId, name, nodeType, originalId)); return result; }
public Guid BeginTransaction(GlymaSessionConfiguration configuration) { Guid result = Guid.Empty; // run the call against the application proxy NodeServiceApplicationProxy.Invoke(_serviceContext, proxy => result = proxy.BeginTransaction(configuration)); return result; }
public int DeleteRootMap(GlymaSessionConfiguration configuration, Guid domainId, Guid rootMapId) { int result = 0; // run the call against the application proxy NodeServiceApplicationProxy.Invoke(_serviceContext, proxy => result = proxy.DeleteRootMap(configuration, domainId, rootMapId)); return result; }
public MapResponse CreateDomain(GlymaSessionConfiguration configuration, string name) { MapResponse result = null; // run the call against the application proxy NodeServiceApplicationProxy.Invoke(_serviceContext, proxy => result = proxy.CreateDomain(configuration, name)); return result; }
public MapParameter UpdateBulkMetadata(GlymaSessionConfiguration configuration, Guid sessionId, Guid responseParameter, MapParameter domainId, MapParameter metadata, string name, string value) { using (IGlymaSession glymaSession = new SvcAppSPGlymaSession(configuration, sessionId)) { return Base.UpdateBulkMetadata(glymaSession, sessionId, responseParameter, domainId, metadata, name, value); } }
public MapParameter UpdateBulkRelationship(GlymaSessionConfiguration configuration, Guid sessionId, Guid responseParameter, MapParameter domainId, MapParameter relationshipId, Dictionary<DescriptorType, MapParameter> nodes, RelationshipType relationshipType) { using (IGlymaSession glymaSession = new SvcAppSPGlymaSession(configuration, sessionId)) { return Base.UpdateBulkRelationship(glymaSession, sessionId, responseParameter, domainId, relationshipId, nodes, relationshipType); } }
public MapParameter UpdateBulkNode(GlymaSessionConfiguration configuration, Guid sessionId, Guid responseParameter, MapParameter domainId, MapParameter nodeId, NodeType nodeType) { using (IGlymaSession glymaSession = new SvcAppSPGlymaSession(configuration, sessionId)) { return Base.UpdateBulkNode(glymaSession, sessionId, responseParameter, domainId, nodeId, nodeType); } }
public MapParameter DeleteBulkMetadata(GlymaSessionConfiguration configuration, Guid sessionId, Guid responseParameter, MapParameter domainId, MapParameter metadata) { using (IGlymaSession glymaSession = new SvcAppSPGlymaSession(configuration, sessionId)) { return Base.DeleteBulkMetadata(glymaSession, sessionId, responseParameter, domainId, metadata); } }
public MapParameter DeleteBulkRelationship(GlymaSessionConfiguration configuration, Guid sessionId, Guid responseParameter, MapParameter domainId, MapParameter relationshipId) { using (IGlymaSession glymaSession = new SvcAppSPGlymaSession(configuration, sessionId)) { return Base.DeleteBulkRelationship(glymaSession, sessionId, responseParameter, domainId, relationshipId); } }
public MapParameter DeleteNode(GlymaSessionConfiguration configuration, Guid sessionId, MapParameter domainId, MapParameter nodeId) { return DeleteBulkNode(configuration, sessionId, Guid.Empty, domainId, nodeId); }
public QueryResponse QueryMapPaged(GlymaSessionConfiguration configuration, Guid domainId, Guid nodeId, int maxDepth, EdgeConditions edgeConditions, FilterConditions filterConditions, int objectIndex) { return QueryMap(configuration, domainId, nodeId, maxDepth, false, edgeConditions, filterConditions, objectIndex); }
public Dictionary<Guid, QueryResponse> QueryDomains(GlymaSessionConfiguration configuration) { using (IGlymaSession glymaSession = new SvcAppSPGlymaSession(configuration)) { return Base.QueryDomains(glymaSession); } }
public MapParameter AddMetadata(GlymaSessionConfiguration configuration, Guid sessionId, MapParameter domainId, MapParameter rootMapId, MapParameter node, MapParameter relationship, DescriptorType descriptorType, MetadataType metadataType, string name, string value) { return AddBulkMetadata(configuration, sessionId, Guid.Empty, domainId, rootMapId, node, relationship, descriptorType, metadataType, name, value); }
public MapParameter AddBulkMetadata(GlymaSessionConfiguration configuration, Guid sessionId, Guid responseParameter, MapParameter domainId, MapParameter rootMapId, MapParameter node, MapParameter relationship, DescriptorType descriptorType, MetadataType metadataType, string name, string value) { using (IGlymaSession glymaSession = new SvcAppSPGlymaSession(configuration, sessionId)) { return Base.AddBulkMetadata(glymaSession, sessionId, responseParameter, domainId, rootMapId, node, relationship, descriptorType, metadataType, name, value); } }
public QueryResponse QueryMap(GlymaSessionConfiguration configuration, Guid domainId, Guid nodeId, int maxDepth, bool isFullDomainSearch, EdgeConditions edgeConditions, FilterConditions filterConditions, int objectIndex) { using (IGlymaSession glymaSession = new SvcAppSPGlymaSession(configuration)) { return Base.QueryMap(glymaSession, domainId, nodeId, maxDepth, isFullDomainSearch, edgeConditions, filterConditions, objectIndex); } }
public MapParameter DeleteRelationship(GlymaSessionConfiguration configuration, Guid sessionId, MapParameter domainId, MapParameter relationshipId) { return DeleteBulkRelationship(configuration, sessionId, Guid.Empty, domainId, relationshipId); }
public QueryResponse QueryMapByDomain(GlymaSessionConfiguration configuration, Guid domainId, int maxDepth, EdgeConditions edgeConditions, FilterConditions filterConditions) { using (IGlymaSession glymaSession = new SvcAppSPGlymaSession(configuration)) { return Base.QueryMapByDomain(glymaSession, domainId, maxDepth, edgeConditions, filterConditions); } }
public MapParameter DeleteMetadata(GlymaSessionConfiguration configuration, Guid sessionId, MapParameter domainId, MapParameter metadata) { return DeleteBulkMetadata(configuration, sessionId, Guid.Empty, domainId, metadata); }
/// <summary> /// TODO: This method needs to be moved from here as it makes calls to schema specific methods. /// </summary> /// <param name="callingUrl"></param> /// <param name="domainId"></param> /// <param name="conditions"></param> /// <param name="pageNumber"></param> /// <param name="pageSize"></param> /// <returns></returns> public SearchMapResult SearchMap(GlymaSessionConfiguration configuration, Guid domainId, Guid rootMapUid, SearchConditions conditions, int pageNumber, int pageSize) { if (pageNumber == 0) { pageNumber = 1; } if (pageSize == 0) { pageSize = 5; } using (IGlymaSession glymaSession = new SvcAppSPGlymaSession(configuration)) { return Base.SearchMap(glymaSession, domainId, rootMapUid, conditions, pageNumber, pageSize); } }
public MapParameter UpdateNode(GlymaSessionConfiguration configuration, Guid sessionId, MapParameter domainId, MapParameter nodeId, NodeType nodeType) { return UpdateBulkNode(configuration, sessionId, Guid.Empty, domainId, nodeId, nodeType); }
public MapParameter AddNode(GlymaSessionConfiguration configuration, Guid sessionId, MapParameter domainId, MapParameter rootMapId, NodeType nodeType, string originalId) { return AddBulkNode(configuration, sessionId, Guid.Empty, domainId, rootMapId, nodeType, originalId); }
public MapParameter UpdateRelationship(GlymaSessionConfiguration configuration, Guid sessionId, MapParameter domainId, MapParameter relationshipId, Dictionary<DescriptorType, MapParameter> nodes, RelationshipType relationshipType) { return UpdateBulkRelationship(configuration, sessionId, Guid.Empty, domainId, relationshipId, nodes, relationshipType); }
public MapParameter AddBulkNode(GlymaSessionConfiguration configuration, Guid sessionId, Guid responseParameter, MapParameter domainId, MapParameter rootMapId, NodeType nodeType, string originalId) { using (IGlymaSession glymaSession = new SvcAppSPGlymaSession(configuration, sessionId)) { return Base.AddBulkNode(glymaSession, sessionId, responseParameter, domainId, rootMapId, nodeType, originalId); } }
public MapParameter UpdateMetadata(GlymaSessionConfiguration configuration, Guid sessionId, MapParameter domainId, MapParameter metadata, string name, string value) { return UpdateBulkMetadata(configuration, sessionId, Guid.Empty, domainId, metadata, name, value); }
public MapParameter AddRelationship(GlymaSessionConfiguration configuration, Guid sessionId, MapParameter domainId, MapParameter rootMapId, Dictionary<DescriptorType, MapParameter> nodes, RelationshipType relationshipType, string originalId) { return AddBulkRelationship(configuration, sessionId, Guid.Empty, domainId, rootMapId, nodes, relationshipType, originalId); }
public bool IsSessionCompleted(GlymaSessionConfiguration configuration, Guid sessionId) { using (IGlymaSession glymaSession = new SvcAppSPGlymaSession(configuration, sessionId)) { return Base.IsSessionCompleted(glymaSession, sessionId); } }
public MapParameter AddBulkRelationship(GlymaSessionConfiguration configuration, Guid sessionId, Guid responseParameter, MapParameter domainId, MapParameter rootMapId, Dictionary<DescriptorType, MapParameter> nodes, RelationshipType relationshipType, string originalId) { using (IGlymaSession glymaSession = new SvcAppSPGlymaSession(configuration, sessionId)) { return Base.AddBulkRelationship(glymaSession, sessionId, responseParameter, domainId, rootMapId, nodes, relationshipType, originalId); } }