Class NodeTypeMapper


  • public class NodeTypeMapper
    extends java.lang.Object
    Static mapping methods to map between the node type and the Entity Type
    • Constructor Detail

      • NodeTypeMapper

        public NodeTypeMapper()
    • Method Detail

      • mapNodeTypeToEntityTypeGuid

        public static java.lang.String mapNodeTypeToEntityTypeGuid​(NodeType nodeType)
        Map nodeType to entity type guid. The nodeType is the type of node that is exposed in the nodeType API. The subject Area OMAs needs to convert the node type into a guid of an entity type so it can be used to call omrs. The supplied NodeType is mapped to an EntityType name :
        • The NodeType name can match the EntityType name - e.g. Glossary
        • The NodeType name may need to be renamed to the appropriate entity type e.g. Term
        • The NodeType name may map to en entity type with a classification e.g. Taxonomy
        Parameters:
        nodeType - nodeType this is the type of node that is exposed in the nodetype API
        Returns:
        entity Type guid.
      • mapNodeTypeNameToEntityTypeName

        public static java.lang.String mapNodeTypeNameToEntityTypeName​(java.lang.String nodeTypeName)
        Map NodeType name to entity type name. The nodeType name is the name of the type of node that is exposed in the nodeType API. The subject Area OMAS needs to convert the node type nameinto a name of an entity type so it can be used to call omrs. The supplied NodeType nameis mapped to an EntityType name :
        • The NodeType name can match the EntityType name - e.g. Glossary
        • The NodeType name may need to be renamed to the appropriate entity type e.g. Term
        • The NodeType name may map to en entity type with a classification e.g. Taxonomy
        Parameters:
        nodeTypeName - nodeType name this is the type of node that is exposed in the nodetype API
        Returns:
        entity Type name.