psdi.app.bim.loader

Class ClassificationMgr

    • Constructor Detail

      • ClassificationMgr

        public ClassificationMgr(ProgressLogger logger,
                                 java.lang.String siteId,
                                 java.lang.String orgId,
                                 UserInfo userInfo)
                          throws java.rmi.RemoteException,
                                 MXException
        Throws:
        java.rmi.RemoteException
        MXException
    • Method Detail

      • cleanup

        public void cleanup()
      • getClassification

        public java.lang.String getClassification(java.lang.String classificationName,
                                                  java.lang.String cobieObjectType,
                                                  Item item,
                                                  boolean allowSite,
                                                  boolean allowOrg)
        Parses a list of Classifications and tries to find a match in Maximo based on the Classification description. The first match found is used. The matching process attempts to recognize classifications that are OmniClass numbers and converts them to a normalized format to help in matching. if a classification is not found and the addMissing flag is set and there is a default for the object type, then the classification is added under the default. if the flag is not set, but there is a default, the default is returned.
        Parameters:
        classificationName - A comma separated list of classification names
        cobieObjectType - The COBie or Maximo object the classification is to be used with. Used to validate or add useWith entries.
        item - The item from the COBie parse tree. Used for error reporting
        Returns:
        A matched classification, or a new classification, or the default for the object type or null.
      • getClassificationSingle

        public java.lang.String getClassificationSingle(java.lang.String classificationName,
                                                        java.lang.String cobieObjectType,
                                                        Item item,
                                                        boolean allowSite,
                                                        boolean allowOrg)
        Parameters:
        classificationName - A classification name
        cobieObjectType - The COBie or Maximo object the classification is to be used with. Used to validate or add useWith entries.
        item - The item from the COBie parse tree. Used for error reporting
        Returns:
      • getClassifcationDescriotion

        public java.lang.String getClassifcationDescriotion(java.lang.String classStructId,
                                                            ItemBase item)
      • setAddMissing

        public void setAddMissing(boolean addMissing)
        Flag to control if missing classifications are automatically added. Classifications are added under the default for the object type specified in the import project configuration.
        Parameters:
        addMissing -
      • setTypesAreSpec

        public void setTypesAreSpec(boolean typesAreSpecs)
        The COBie type table can either by imported as products or design specifications the classification managers needs to know which to set the correct use with values.
        Parameters:
        addMissing -
      • associateAttributeTypesWithClassifications

        public void associateAttributeTypesWithClassifications(AttributeTypeMap typeMap,
                                                               AttributeMapMgr mapMgr,
                                                               java.lang.String[] sheets)
        Associate attribute types with a Classification based on observed usage This should be called after the sheets in the sheet list have been loaded
        Parameters:
        typeMap - Actual usage map generated by the COBie parser
        sheets - Array of sheet names to process
      • fixupProductDefaultUseWith

        public void fixupProductDefaultUseWith()