Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Introduction

...

Proposed grouping of interface methods:

  • Read the parent of a DataNode that matches an xpath expression
  • Read all DataNodes under an anchor point
  • Read the anchor of a DataNode
  • Read all DataNodes that match a schemaNodeIdentifier

    Interface NameInterface Definition

     Interface Capabilities

    Model InterfaceBehavior interface that represents cps modules.
    1. Create a module set
    2. Add modules to a module set
    3. Read all modules
    4. Validate modules
    5. Upgrade a module set (individual module upgrade)
    6. Create a module set and validate it against a module reference (using a separate SPI)
    Data Interface

    Behavior interface that represents CPS data.

    1. Create a DataNode under an anchor.
    2. Delete a dataspace
    3. Create a dataspace
    4. Create an anchor
    5. Read an anchor of a particular DataNode
    6. Read an anchor in a namespace and dataspace
    7. Read all anchors for one dataspace
    8. Delete an anchor for a namespace in a dataspace
    9. Associate an anchor to a module set
    10. Associate an dataspace to a anchor
    11. Read all dataspaces
    12. Create a DataNode under another DataNode.
    13. Associate an a DataNode to a anchor
    Query InterfaceProvides the capability to query CPS data using XPaths.

    ModuleStoreService
    • String createModuleSet(String dataspaceName, String moduleSetName, InputStream modulesData);
    • Collection<ModuleRef> getModuleReferences(String dataspaceName);
    • Void deleteModuleSet(String dataspaceName, String moduleSetName);
    CpsAdminService
    • String createDataspace(String dataspaceName);
    • Collection<String> getDataspaces();
    • void deleteDataspace(String dataspaceName);
    • String createAnchor(String dataspaceName, String anchorName);
    • Collection<Anchor> getAnchors(String dataspaceName);
    • Anchor getAnchor(String dataspaceName, String anchorName);
    • void deleteAnchor(String dataspaceName, String anchorName);
    • void associateAnchorToModuleSet(String dataspaceName, String moduleSetName, String anchorName);
    DataService
    • String addDataNode(String dataspaceName, String anchorName, DataNode dataNode);
    • String addDataNode(String dataspaceName, String anchorName, String xPath, DataNode dataNode);
    • Integer count(String dataspaceName, String anchorName, String cpsPath);
    • Integer count(String dataspaceName, String cpsPath);
    • void updateDataNode(String dataspaceName, String anchorName, DataNode dataNode);
    • void setLeaf(String dataspaceName, String anchorName, String xPath, String leafName, Object leafValue);
    QueryService
    • DataNode getDataNode(String dataspaceName, String anchorName, String xPathId);
    • Collection<DataNode> getDataNodes(String dataspaceName, String xPathId);
    • Collection<DataNode> queryDataNodesByCPsPath(String dataspaceName, String cpsPath);
    • Collection<DataNode> queryDataNodesBySchemaNodeIdentifier(String dataspaceName, String schemaNodeIdentifier);

    Java Doc

    View file
    nameJavaDoc.zip
    height250

    ...