NamingUtility (CMDB Model API)
Keywords: com.collation.platform.model.util.NamingUtility interface

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.collation.platform.model.util
Interface NamingUtility

All Known Implementing Classes:
  GeneralMigrationNamingUtility, NamingUtilityExternal, NamingUtilityInternal

    public interface NamingUtility

NamingUtility class is used to provide a mapping of Object pointers to unique Guids for the names of the objects

Method Summary
`java.util.List` | `computeGuidResults(ModelObject mo, java.util.HashMap dependencyMap)` computeGuidResults is used to compute the Guids for a given object tree.
`java.util.List` | `computeGuidResults(ModelObject mo, java.util.HashMap dependencyMap, long version)` computeGuidResults is used to compute the Guids for a given object tree.

Method Detail

### computeGuidResults

    java.util.List computeGuidResults(ModelObject mo,
                                      java.util.HashMap dependencyMap)

  computeGuidResults is used to compute the Guids for a given object tree. The function accepts the modelObject and a pointer to a HashMap that is used to store the Guid to object pointers dependency list. The ModelObject may be a single object or a tree of ModelObjects. The function traverses the object looking for contained objects and stores the list of Guids per object in a GuidResult object. As each Guid is formed, a dependency list is also maintained which is then used by the caller to determine the objects that were used to form this Guid

  Parameters:
    `mo:ModelObject` - - ModelObject tree
    `dependencyMap:HashMap` - - Map of Guid to object pointers used
  Returns:
    List - List of GuidResult objects

### computeGuidResults

    java.util.List computeGuidResults(ModelObject mo,
                                      java.util.HashMap dependencyMap,
                                      long version)

  computeGuidResults is used to compute the Guids for a given object tree. The function accepts the modelObject and a pointer to a HashMap that is used to store the Guid to object pointers dependency list. The ModelObject may be a single object or a tree of ModelObjects. The function traverses the object looking for contained objects and stores the list of Guids per object in a GuidResult object. As each Guid is formed, a dependency list is also maintained which is then used by the caller to determine the objects that were used to form this Guid

  Parameters:
    `mo:ModelObject` - - ModelObject tree
    `dependencyMap:HashMap` - - Map of Guid to object pointers used
    `version:long` - - version of the guid aliases to use
  Returns:
    List - List of GuidResult objects

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD