C# Class NodeService.MappingToolService

Inheritance: IMappingToolService
ファイルを表示 Open project: chris-tomich/Glyma

Public Methods

Method 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

Method 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 method

public AddNode ( System.Guid domainId, SoapNodeType nodeType, string originalId ) : SoapNode
domainId System.Guid
nodeType SoapNodeType
originalId string
return SoapNode

ConnectNodes() public method

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

CreateNewDomain() public method

public CreateNewDomain ( string domainName ) : SoapNode
domainName string
return SoapNode

CreateNewMap() public method

public CreateNewMap ( System.Guid domainId, string mapName ) : System.Guid
domainId System.Guid
mapName string
return System.Guid

DeleteMetadata() public method

public DeleteMetadata ( MetadataContext context ) : DeleteResult
context MetadataContext
return DeleteResult

DeleteNode() public method

public DeleteNode ( System.Guid domainId, System.Guid nodeId ) : DeleteResult
domainId System.Guid
nodeId System.Guid
return DeleteResult

DeleteNodePromoteTransclusion() public method

public DeleteNodePromoteTransclusion ( System.Guid domainId, System.Guid mapIdToDeleteFrom, System.Guid nodeIdToDelete ) : DeleteResult
domainId System.Guid
mapIdToDeleteFrom System.Guid
nodeIdToDelete System.Guid
return DeleteResult

DeleteNodeTransclusion() public method

public DeleteNodeTransclusion ( System.Guid domainId, System.Guid mapIdToDeleteFrom, System.Guid nodeIdToDelete ) : DeleteResult
domainId System.Guid
mapIdToDeleteFrom System.Guid
nodeIdToDelete System.Guid
return DeleteResult

DeleteRelationship() public method

public DeleteRelationship ( System.Guid domainId, System.Guid relationshipId ) : DeleteResult
domainId System.Guid
relationshipId System.Guid
return DeleteResult

GetAllNodes() public method

public GetAllNodes ( System.Guid domainId ) : SoapNode>.Dictionary
domainId System.Guid
return SoapNode>.Dictionary

GetAllSoapTypes() public method

public GetAllSoapTypes ( ) : List
return List

GetContainerMapNodeId() public method

public GetContainerMapNodeId ( System.Guid domainId, System.Guid nodeId ) : System.Guid
domainId System.Guid
nodeId System.Guid
return System.Guid

GetDomainMapNodes() public method

public GetDomainMapNodes ( System.Guid domainId ) : RelatedNodesSearchResult
domainId System.Guid
return RelatedNodesSearchResult

GetDomainMapNodes() public method

public GetDomainMapNodes ( System.Guid domainId, int page, int pageSize ) : RelatedNodesSearchResult
domainId System.Guid
page int
pageSize int
return RelatedNodesSearchResult

GetDomainNodeId() public method

public GetDomainNodeId ( System.Guid domainId ) : System.Guid
domainId System.Guid
return System.Guid

GetDomainNodeIds() public method

public GetDomainNodeIds ( ) : Guid>.Dictionary
return Guid>.Dictionary

GetMapsNodes() public method

public GetMapsNodes ( System.Guid domainId, System.Guid mapNodeId ) : RelatedNodesSearchResult
domainId System.Guid
mapNodeId System.Guid
return RelatedNodesSearchResult

GetNodes() public method

public GetNodes ( Guid>.Dictionary nodeIds ) : SoapNode>.Dictionary
nodeIds Guid>.Dictionary
return SoapNode>.Dictionary

GetNodesWithConditions() public method

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

GetNodesXmlQuery() public method

public GetNodesXmlQuery ( string graphQueryXml ) : RelatedNodesSearchResult
graphQueryXml string
return RelatedNodesSearchResult

GetRelatedNodes() public method

public GetRelatedNodes ( System.Guid domainId, System.Guid nodeId, int depth ) : RelatedNodesSearchResult
domainId System.Guid
nodeId System.Guid
depth int
return RelatedNodesSearchResult

InsertNodes() public method

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
return void

MappingToolService() public method

public MappingToolService ( ) : System
return System

PasteNodeClone() public method

public PasteNodeClone ( System.Guid domainId, System.Guid copiedNodeId ) : SoapNode
domainId System.Guid
copiedNodeId System.Guid
return SoapNode

RenameNodeMetadata() public method

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
return bool

UpdateNodeMetadata() public method

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
return SoapNode