C# Class NodeService.MappingToolService

Inheritance: IMappingToolService
Afficher le fichier Open project: chris-tomich/Glyma

Méthodes publiques

Méthode Description
AddNode ( System.Guid domainId, SoapNodeType nodeType, string originalId ) : SoapNode
ConnectNodes ( System.Guid domainId, Guid>.Dictionary nodes, SoapRelationshipType relationshipType, string originalId ) : ConnectedNodesResult
CreateNewDomain ( string domainName ) : SoapNode
CreateNewMap ( System.Guid domainId, string mapName ) : System.Guid
DeleteMetadata ( MetadataContext context ) : DeleteResult
DeleteNode ( System.Guid domainId, System.Guid nodeId ) : DeleteResult
DeleteNodePromoteTransclusion ( System.Guid domainId, System.Guid mapIdToDeleteFrom, System.Guid nodeIdToDelete ) : DeleteResult
DeleteNodeTransclusion ( System.Guid domainId, System.Guid mapIdToDeleteFrom, System.Guid nodeIdToDelete ) : DeleteResult
DeleteRelationship ( System.Guid domainId, System.Guid relationshipId ) : DeleteResult
GetAllNodes ( System.Guid domainId ) : SoapNode>.Dictionary
GetAllSoapTypes ( ) : List
GetContainerMapNodeId ( System.Guid domainId, System.Guid nodeId ) : System.Guid
GetDomainMapNodes ( System.Guid domainId ) : RelatedNodesSearchResult
GetDomainMapNodes ( System.Guid domainId, int page, int pageSize ) : RelatedNodesSearchResult
GetDomainNodeId ( System.Guid domainId ) : System.Guid
GetDomainNodeIds ( ) : Guid>.Dictionary
GetMapsNodes ( System.Guid domainId, System.Guid mapNodeId ) : RelatedNodesSearchResult
GetNodes ( Guid>.Dictionary nodeIds ) : SoapNode>.Dictionary
GetNodesWithConditions ( System.Guid domainId, System.Guid nodeId, int maxDepth, List conditions ) : RelatedNodesSearchResult
GetNodesXmlQuery ( string graphQueryXml ) : RelatedNodesSearchResult
GetRelatedNodes ( System.Guid domainId, System.Guid nodeId, int depth ) : RelatedNodesSearchResult
InsertNodes ( System.Guid domainId, System.Guid mapId, string siteUrl, byte userToken, System.Guid webId, System.Guid listId, int itemId ) : void
MappingToolService ( ) : System
PasteNodeClone ( System.Guid domainId, System.Guid copiedNodeId ) : SoapNode
RenameNodeMetadata ( System.Guid domainId, System.Guid soapNodeId, System.Guid soapRelationshipId, SoapDescriptorType soapDescriptorType, string originalMetadataName, string newMetadataName ) : bool
UpdateNodeMetadata ( System.Guid domainId, System.Guid soapNodeId, System.Guid soapRelationshipId, SoapDescriptorType soapDescriptorType, string metadataName, string metadataValue, SoapMetadataType soapMetadataType ) : SoapNode

Private Methods

Méthode Description
AddAllNodes ( INode nodes, SoapNodeType>.Dictionary soapNodeTypes, SoapMetadataType>.Dictionary soapMetaTypes, System.Guid domainUid, SoapNode>.Dictionary addedNodes ) : void
ConnectNodes ( INode nodes, SoapRelationshipType>.Dictionary soapRelTypes, SoapDescriptorType>.Dictionary soapDescTypes, System.Guid domainUid, SoapNode>.Dictionary addedNodes, SoapRelationship>.Dictionary addedRelationships, bool isDomainNodeMapNode ) : void
ConnectToMap ( System.Guid domainId, System.Guid mapId, System.Guid nodeId, SoapDescriptorType>.Dictionary soapDescTypes, SoapRelationshipType>.Dictionary soapRelTypes ) : ConnectedNodesResult
ContainsMetadataKeyName ( SoapNode soapNode, string keyName ) : bool

Tests for the existence of the metadata key name in all the metadata for a node. This is useful to work out if a node has any coordinates stored in the metadata for the context it is in.

CreateNode ( System.Guid nodeTypeId, string originalId ) : System.Data.Node
DeleteMetadata ( MetadataContext context, DeleteResult result, MappingToolDatabaseDataContext mappingDb, IQueryable deleteMetadatas ) : void
GetSoapTypes ( SoapNodeType>.Dictionary &soapNodeTypes, SoapRelationshipType>.Dictionary &soapRelTypes, SoapMetadataType>.Dictionary &soapMetaTypes, SoapDescriptorType>.Dictionary &soapDescTypes ) : void
IsNodeInMap ( System.Guid domainId, System.Guid mapId, System.Guid nodeId ) : bool
RecurseThroughGraph ( GraphQuery graphQuery, System.Data.Node currentNode, int currentDepth ) : List
RecurseThroughLevels ( SoapNode>.Dictionary nodes, System.Guid domainId, System.Data.Node currentNode, System.Data.Node initialSearchNode, int depth, List conditions ) : void
SetMetadata ( INode nodes, SoapRelationshipType>.Dictionary soapNodeTypes, SoapMetadataType>.Dictionary soapMetaTypes, SoapDescriptorType>.Dictionary soapDescTypes, System.Guid domainUid, SoapNode>.Dictionary addedNodes, SoapRelationship>.Dictionary addedRelationships, bool isDomainNodeRoot ) : void
UpdateMetadata ( MappingToolDatabaseDataContext mappingDb, System.Guid soapNodeId, System.Guid soapRelationshipId, SoapDescriptorType soapDescriptorType, string metadataName, string metadataValue, SoapMetadataType soapMetadataType, System.Data.Node node ) : SoapMetadata

Method Details

AddNode() public méthode

public AddNode ( System.Guid domainId, SoapNodeType nodeType, string originalId ) : SoapNode
domainId System.Guid
nodeType SoapNodeType
originalId string
Résultat SoapNode

ConnectNodes() public méthode

public ConnectNodes ( System.Guid domainId, Guid>.Dictionary nodes, SoapRelationshipType relationshipType, string originalId ) : ConnectedNodesResult
domainId System.Guid
nodes Guid>.Dictionary
relationshipType SoapRelationshipType
originalId string
Résultat ConnectedNodesResult

CreateNewDomain() public méthode

public CreateNewDomain ( string domainName ) : SoapNode
domainName string
Résultat SoapNode

CreateNewMap() public méthode

public CreateNewMap ( System.Guid domainId, string mapName ) : System.Guid
domainId System.Guid
mapName string
Résultat System.Guid

DeleteMetadata() public méthode

public DeleteMetadata ( MetadataContext context ) : DeleteResult
context MetadataContext
Résultat DeleteResult

DeleteNode() public méthode

public DeleteNode ( System.Guid domainId, System.Guid nodeId ) : DeleteResult
domainId System.Guid
nodeId System.Guid
Résultat DeleteResult

DeleteNodePromoteTransclusion() public méthode

public DeleteNodePromoteTransclusion ( System.Guid domainId, System.Guid mapIdToDeleteFrom, System.Guid nodeIdToDelete ) : DeleteResult
domainId System.Guid
mapIdToDeleteFrom System.Guid
nodeIdToDelete System.Guid
Résultat DeleteResult

DeleteNodeTransclusion() public méthode

public DeleteNodeTransclusion ( System.Guid domainId, System.Guid mapIdToDeleteFrom, System.Guid nodeIdToDelete ) : DeleteResult
domainId System.Guid
mapIdToDeleteFrom System.Guid
nodeIdToDelete System.Guid
Résultat DeleteResult

DeleteRelationship() public méthode

public DeleteRelationship ( System.Guid domainId, System.Guid relationshipId ) : DeleteResult
domainId System.Guid
relationshipId System.Guid
Résultat DeleteResult

GetAllNodes() public méthode

public GetAllNodes ( System.Guid domainId ) : SoapNode>.Dictionary
domainId System.Guid
Résultat SoapNode>.Dictionary

GetAllSoapTypes() public méthode

public GetAllSoapTypes ( ) : List
Résultat List

GetContainerMapNodeId() public méthode

public GetContainerMapNodeId ( System.Guid domainId, System.Guid nodeId ) : System.Guid
domainId System.Guid
nodeId System.Guid
Résultat System.Guid

GetDomainMapNodes() public méthode

public GetDomainMapNodes ( System.Guid domainId ) : RelatedNodesSearchResult
domainId System.Guid
Résultat RelatedNodesSearchResult

GetDomainMapNodes() public méthode

public GetDomainMapNodes ( System.Guid domainId, int page, int pageSize ) : RelatedNodesSearchResult
domainId System.Guid
page int
pageSize int
Résultat RelatedNodesSearchResult

GetDomainNodeId() public méthode

public GetDomainNodeId ( System.Guid domainId ) : System.Guid
domainId System.Guid
Résultat System.Guid

GetDomainNodeIds() public méthode

public GetDomainNodeIds ( ) : Guid>.Dictionary
Résultat Guid>.Dictionary

GetMapsNodes() public méthode

public GetMapsNodes ( System.Guid domainId, System.Guid mapNodeId ) : RelatedNodesSearchResult
domainId System.Guid
mapNodeId System.Guid
Résultat RelatedNodesSearchResult

GetNodes() public méthode

public GetNodes ( Guid>.Dictionary nodeIds ) : SoapNode>.Dictionary
nodeIds Guid>.Dictionary
Résultat SoapNode>.Dictionary

GetNodesWithConditions() public méthode

public GetNodesWithConditions ( System.Guid domainId, System.Guid nodeId, int maxDepth, List conditions ) : RelatedNodesSearchResult
domainId System.Guid
nodeId System.Guid
maxDepth int
conditions List
Résultat RelatedNodesSearchResult

GetNodesXmlQuery() public méthode

public GetNodesXmlQuery ( string graphQueryXml ) : RelatedNodesSearchResult
graphQueryXml string
Résultat RelatedNodesSearchResult

GetRelatedNodes() public méthode

public GetRelatedNodes ( System.Guid domainId, System.Guid nodeId, int depth ) : RelatedNodesSearchResult
domainId System.Guid
nodeId System.Guid
depth int
Résultat RelatedNodesSearchResult

InsertNodes() public méthode

public InsertNodes ( System.Guid domainId, System.Guid mapId, string siteUrl, byte userToken, System.Guid webId, System.Guid listId, int itemId ) : void
domainId System.Guid
mapId System.Guid
siteUrl string
userToken byte
webId System.Guid
listId System.Guid
itemId int
Résultat void

MappingToolService() public méthode

public MappingToolService ( ) : System
Résultat System

PasteNodeClone() public méthode

public PasteNodeClone ( System.Guid domainId, System.Guid copiedNodeId ) : SoapNode
domainId System.Guid
copiedNodeId System.Guid
Résultat SoapNode

RenameNodeMetadata() public méthode

public RenameNodeMetadata ( System.Guid domainId, System.Guid soapNodeId, System.Guid soapRelationshipId, SoapDescriptorType soapDescriptorType, string originalMetadataName, string newMetadataName ) : bool
domainId System.Guid
soapNodeId System.Guid
soapRelationshipId System.Guid
soapDescriptorType SoapDescriptorType
originalMetadataName string
newMetadataName string
Résultat bool

UpdateNodeMetadata() public méthode

public UpdateNodeMetadata ( System.Guid domainId, System.Guid soapNodeId, System.Guid soapRelationshipId, SoapDescriptorType soapDescriptorType, string metadataName, string metadataValue, SoapMetadataType soapMetadataType ) : SoapNode
domainId System.Guid
soapNodeId System.Guid
soapRelationshipId System.Guid
soapDescriptorType SoapDescriptorType
metadataName string
metadataValue string
soapMetadataType SoapMetadataType
Résultat SoapNode