public class ClassificationMgr extends ClassificationBase
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OBJECT_TYPE_ASSET |
static java.lang.String |
OBJECT_TYPE_COMPANY |
static java.lang.String |
OBJECT_TYPE_COMPONENT |
static java.lang.String |
OBJECT_TYPE_CONTACT |
static java.lang.String |
OBJECT_TYPE_FACILITY |
static java.lang.String |
OBJECT_TYPE_FLOOR |
static java.lang.String |
OBJECT_TYPE_ITEM |
static java.lang.String |
OBJECT_TYPE_JOB |
static java.lang.String |
OBJECT_TYPE_SPACE |
static java.lang.String |
OBJECT_TYPE_SYSTEM |
static java.lang.String |
OBJECT_TYPE_TYPE |
static java.lang.String |
OBJECT_TYPE_ZONE |
static java.lang.String |
QUERY_CLASSSTRUCT |
FIELD_APPLYDOWNHIER, FIELD_CLASSIFICATIONDESC, FIELD_CLASSIFICATIONID, FIELD_CLASSSTRUCTUREID, FIELD_GENASSETDESC, FIELD_HIERARCHYPATH, FIELD_OBJECTNAME, FIELD_OBJECTVALUE, FIELD_ORGID, FIELD_PARENT, FIELD_SITEID, RELATIONSHIP_CLASSSPEC, TABLE_CLASSIFICATION, TABLE_CLASSSTRUCTURE, TABLE_CLASSUSEWITH
Constructor and Description |
---|
ClassificationMgr(ProgressLogger<?> logger,
java.lang.String siteId,
java.lang.String orgId,
UserInfo userInfo) |
Modifier and Type | Method and Description |
---|---|
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
|
void |
cleanup() |
void |
fixupProductDefaultUseWith() |
java.lang.String |
getClassifcationDescriotion(java.lang.String classStructId,
ItemBase item) |
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.
|
java.lang.String |
getClassificationSingle(java.lang.String classificationName,
java.lang.String cobieObjectType,
Item item,
boolean allowSite,
boolean allowOrg) |
void |
setAddMissing(boolean addMissing)
Flag to control if missing classifications are automatically added.
|
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.
|
getClassStrctSet
public static final java.lang.String OBJECT_TYPE_FACILITY
public static final java.lang.String OBJECT_TYPE_FLOOR
public static final java.lang.String OBJECT_TYPE_SPACE
public static final java.lang.String OBJECT_TYPE_COMPONENT
public static final java.lang.String OBJECT_TYPE_SYSTEM
public static final java.lang.String OBJECT_TYPE_ZONE
public static final java.lang.String OBJECT_TYPE_ASSET
public static final java.lang.String OBJECT_TYPE_TYPE
public static final java.lang.String OBJECT_TYPE_CONTACT
public static final java.lang.String OBJECT_TYPE_COMPANY
public static final java.lang.String OBJECT_TYPE_ITEM
public static final java.lang.String OBJECT_TYPE_JOB
public static final java.lang.String QUERY_CLASSSTRUCT
public ClassificationMgr(ProgressLogger<?> logger, java.lang.String siteId, java.lang.String orgId, UserInfo userInfo) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public void cleanup()
public java.lang.String getClassification(java.lang.String classificationName, java.lang.String cobieObjectType, Item item, boolean allowSite, boolean allowOrg)
classificationName
- A comma separated list of classification namescobieObjectType
- 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 reportingpublic java.lang.String getClassificationSingle(java.lang.String classificationName, java.lang.String cobieObjectType, Item item, boolean allowSite, boolean allowOrg)
classificationName
- A classification namecobieObjectType
- 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 reportingpublic java.lang.String getClassifcationDescriotion(java.lang.String classStructId, ItemBase item)
public void setAddMissing(boolean addMissing)
addMissing
- public void setTypesAreSpec(boolean typesAreSpecs)
addMissing
- public void associateAttributeTypesWithClassifications(AttributeTypeMap typeMap, AttributeMapMgr mapMgr, java.lang.String[] sheets)
typeMap
- Actual usage map generated by the COBie parsersheets
- Array of sheet names to processpublic void fixupProductDefaultUseWith()