public class AssetCatalogService extends AppService implements AssetCatalogServiceRemote
ASSET, ITEM, LOCATION, TICKET, validObjects, WORKORDER
APPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGER
appenderPrefix, LOGGERNAME_APP, LOGGERNAME_CRONTASK, LOGGERNAME_CRONTASKMGR, LOGGERNAME_DBCONNECTION, LOGGERNAME_DD, LOGGERNAME_DM, LOGGERNAME_DMPREVIEW, LOGGERNAME_EVENT, LOGGERNAME_EXCEPTION, LOGGERNAME_MAIL, LOGGERNAME_MAXIMO, LOGGERNAME_MT, LOGGERNAME_NULLMBOPOINTER, LOGGERNAME_SECURITY, LOGGERNAME_SENDFAILED, LOGGERNAME_SERVICE, LOGGERNAME_SQL, LOGGERNAME_SQL_CRONTASKMGR, LOGGERNAME_TXN, loggerPrefix
Constructor and Description |
---|
AssetCatalogService() |
AssetCatalogService(MXServer mxServer) |
Modifier and Type | Method and Description |
---|---|
MboSetRemote |
anyLevelSearch(UserInfo userInfo,
java.lang.String objectName,
java.lang.String[] classificationsArray)
provide anyLevelSearch on the classstructureset upon known
classifications regardless of their levels in the classstructure
hierarchy.
Returns a mboset to the caller. |
java.lang.String |
attributesSearch(UserInfo userInfo,
java.lang.String objectName,
MboSetRemote searchAttrSet)
Returns sql string for the passed ClassSpec set
|
java.lang.String |
attributesSearch(UserInfo userInfo,
java.lang.String objectName,
MboSetRemote searchAttrSet,
MboSetRemote relatedAttrSet)
Returns sql string for the passed ClassSpec set
|
MboSetRemote |
attributesSearch(UserInfo userInfo,
java.lang.String objectName,
java.lang.String[][] attrAndValues)
for Asset Catalog Search
This method returns a mbo set of ITEM,ASSET,LOCATION to the caller.
It performs search to get a mboset based on a set of attributes, and/or values. |
MboSetRemote |
attributesSearch(UserInfo userInfo,
java.lang.String objectName,
java.lang.String[][] attrAndValues,
boolean convertArray)
This method takes a two dimensional array and first converts it into the
format recognized by attributeSearch(String,String[][]), calls attributesSearch
passing the new array and let attributeSearch return a MboSet.
|
java.lang.String |
classAndAttributesSearch(UserInfo userInfo,
java.lang.String objectName,
MboRemote selectedClassStructureMbo,
MboSetRemote classSpecSet)
Returns sql string for the passed ClassSpec set
|
MboSetRemote |
classAndAttributesSearch(UserInfo userInfo,
java.lang.String objectName,
java.lang.String[][] itemColumns,
java.lang.String[][] invVendorColumns,
java.lang.String[][] attrAndValues,
java.lang.String[] classificationsArray)
for Asset Cataogl Search
This method returns a mbo set of ITEM,ASSET,LOCATION to the caller;
it performs search to get a mboset based on a list of classstructureids(
obtained from the passed classifications array),
a set of item related values, a set of invvendor related values, and
a set of attributes, and/or values.
|
MboSetRemote |
classAndAttributesSearch(UserInfo userInfo,
java.lang.String objectName,
java.lang.String[] classificationsArray,
java.lang.String[][] attrAndValues,
boolean convertArray)
This method returns a mboSet of ASSET,ITEM, or LOCATIONS based on
a list of classstructureids and an array of attributes and values.
Two things it first does: 1) Call getClassStructureList to get a list of classstructureids 2) Convert the two dimensional array into the format recognized by classAttributeSearch(UserInfo,String,String, String[][]) if boolean convertArray is true; If convertArray is false, it does not do any conversion. |
MboSetRemote |
classAndAttributesSearch(UserInfo userInfo,
java.lang.String objectName,
java.lang.String classStructureid,
java.lang.String[][] attrAndValues)
for Asset Catalog Search:
This method returns a mbo set of ITEM,ASSET,LOCATION to the caller. It performs search to get a mboset based on a classstructureid, a set of attributes, and/or values. The method loops thru the array, producing a where clause to filter the mboset to return to the caller. |
MboSetRemote |
classAndAttributesSearch(UserInfo userInfo,
java.lang.String objectName,
java.lang.String classStructureid,
java.lang.String[][] attrAndValues,
boolean convertArray)
This method returns a mboSet of ASSET,ITEM, or LOCATIONS;
It first converts the passed two dimensional array into the
format recognized by classAttributeSearch(String,String, String[][]) if boolean
convertArray is true;
If convertArray is false, it does not do the conversion.
It then calls classAndAttributesSearch(UserInfo userInfo,String,String,String[][]) to perform the search and return a mboSet. |
MboSetRemote |
classAndAttributesSearchCU(UserInfo userInfo,
java.lang.String[] classificationsArray,
java.lang.String[][] attrAndValues,
boolean convertArray)
This method returns a mboSet of PSSCU based on
a list of classstructureids and an array of attributes and values.
Two things it first does: 1) Call getClassStructureList to get a list of classstructureids 2) Convert the two dimensional array into the format recognized by classAttributeSearch(UserInfo,String,String, String[][]) if boolean convertArray is true; If convertArray is false, it does not do any conversion. |
MboSetRemote |
classStructureSearch(UserInfo userInfo,
java.lang.String objectName,
java.lang.String classStructureid)
This method provides logic for asset catalog search on a classstructureid
and returns to the calling program a mboset(Item,Asset,Locations)
on which each mbo has the classstructureid.
|
MboSetRemote |
classStructureSearch(UserInfo userInfo,
java.lang.String objectName,
java.lang.String[] classificationsArray)
This method provides logic for classifications search on a classstructureid
and returns to the calling program a mboset(Item,Asset,Locations,workorder,ticket)
on which each mbo has the classstructureid.
This method figures out the classstructureid by the combination of the classifications in the array and returns a mboSet of Item,Asset, or Locations. |
void |
clearAssetAttrHash()
IJ18346:before using the hashtable, clear the hashtable so the hashtable is clean
After using it, clear the hashtable.
|
java.lang.String[][] |
convertList(java.lang.String classstructureid,
java.lang.String[][] attrAndValues)
take a two dimensional array and converts into another two dimensional array
[index][0]=asset attriture id
[index][1]=value
[index][2]=searchType
[index][3]=measureunit
This method assumes that values are all ALNVALUE.
|
java.lang.String[][] |
convertList(UserInfo userInfo,
java.lang.String[][] attrAndValues)
This method takes a two dimensional array and converts it to another
two dimensional array recognized by attributesSearch(String,String[][]).
|
void |
createCategoryToSR(java.lang.String description,
java.lang.Integer order)
create a new classification to be used with sr
|
java.lang.String |
createRelatedAttributeWhereClause(java.lang.String[][] attrAndValues,
MboSetRemote specSet) |
void |
createSubCategoryToSR(java.lang.String parent,
java.lang.String description,
java.lang.Integer order)
create a new classification to be used with sr
|
void |
deleteMbosetNotViaMbo(MboRemote mbo,
MboSetRemote mboSetReferencedNotViaMbo)
07-21454: delete the mbos from the top owner
|
void |
doNotGenerateDescForThisObject(java.lang.String objectName)
08-16655:
Objects that do not want the Classification logic to generate description for business reasons should call this method
Currently(rel7.1.1.2), no MAXIMO core objects call this method
|
java.lang.String |
generateDescription(ClassStructureRemote classMbo,
SpecificationMboSetRemote specSet)
generates description based upon the asset catalog setup and returns it
to the caller.
|
MboSetRemote |
generateSpecSet(MboRemote mbo)
generates specSet for the mbo passed.
|
MboSetRemote |
generateSpecSet(MboRemote mbo,
java.lang.String itemNum)
08-12303: added generateSpecSet(MboRemote,String, MboRemote) because
there are other cases where specifications are not generated from
Classspec besides ItemSpec.
|
MboSetRemote |
generateSpecSet(MboRemote mbo,
java.lang.String itemNum,
MboRemote baseMbo)
Overloaded of genenateSpecSet, if itemNum is null or empty string, then
classspecSet will be used as the template to generate specset.
|
MboSetRemote |
getAllAttributes(UserInfo userInfo,
java.lang.String[] classificationsArray)
This method will return an AssetAttributeSet depending upon the passed
string array containing classifications.
|
MboSetRemote |
getAllItems(UserInfo userInfo,
java.lang.String[] classificationsArray)
This method will return an ItemSet depending upon the passed
classificationsArray.
|
java.lang.String |
getAttributeInternalType(java.lang.String assetattrid,
java.lang.String orgid,
java.lang.String siteid)
IJ18346: get internal datatype from the hashtable if existing instead of
database fetches
|
MboSetRemote |
getAttributesSearchMboSet()
07-17112: get the MboSet from which attribute search is launched
|
MboSetRemote |
getAttributeValues(UserInfo userInfo,
java.lang.String assetattrid)
Returns a list of ALNDOMAINVALUEs or NUMDOMAINVALUEs for an assetattribute.
|
MboSetRemote |
getAttributeValues(UserInfo userInfo,
java.lang.String classstructureid,
java.lang.String assetattrid)
Returns a list of ALNDOMAINVALUEs or NUMDOMAINVALUEs for the assetattribute of a
classstructure.
|
MboSetRemote |
getChildren(UserInfo userInfo,
java.lang.String[] classificationsArray,
int currentLevel,
java.lang.String searchString,
java.lang.String searchType)
this method returns the next level classifications for given parent classifications.
|
java.lang.String |
getClassAndAttributesSearchWhere(UserInfo userInfo,
java.lang.String objectName,
java.lang.String classStructureid,
java.lang.String[][] attrAndValues,
java.lang.String[][] itemWhere,
java.lang.String[][] invVendorWhere)
generate the where clause for classAndAttribute search
|
java.lang.String |
getClassAndRelatedAttributesSearchWhere(UserInfo userInfo,
java.lang.String objectName,
java.lang.String[][] attrAndValues) |
MboRemote |
getClassSpecUseWith(MboRemote classSpec,
java.lang.String objectName)
06-20672: get classspecusewith infor for each classSpec mbo passed for the objectname
|
MboRemote |
getClassStructure(UserInfo userInfo,
java.lang.String classStructureUID)
get classstructure record for the passed classstructureUID
|
MboRemote |
getClassStructure(UserInfo userInfo,
java.lang.String[] classificationsArray)
This method takes an array of classificationids in the order of
highest level to the lowest level node in the classstructure hierarchy and
return a classtructure mbo if found else returns null
|
MboRemote |
getClassStructure(UserInfo userInfo,
java.lang.String[] classificationsArray,
boolean returnANewMbo)
This method takes an array of classificationids in the order of
highest level to the lowest level node in the classstructure hierarchy and
return a classtructure mbo if found else returns a new classstructure mbo if returnANewMbo boolean
is true else returns null.
|
MboRemote |
getClassStructureFromPath(UserInfo userInfo,
java.lang.String hierarchyPath)
Get the right classstructure node based on the hierarchypath passed.
|
MboRemote |
getClassStructureFromPath(UserInfo userInfo,
java.lang.String hierarchyPath,
java.lang.String objectName)
09-11009: getClassStructureFromPath, mostly, will return just one ClassStructure mbo
but we allow duplicate hierarchypath and it can have multiple classstructure records that
have same hierarchypaths
|
MboRemote |
getClassStructureFromPath(UserInfo userInfo,
java.lang.String hierarchyPath,
java.lang.String orgid,
java.lang.String siteid)
10-18046: overloaded method to add orgid and siteid
|
java.lang.String |
getClassStructureId(UserInfo userInfo,
java.lang.String objectName,
java.lang.String attrName,
java.lang.String attrValue)
This method returns the classstructureid for a item,asset,
locations record.
|
java.lang.String |
getClassStructureList(UserInfo userInfo,
java.lang.String[] classificationsArray)
reutrns a string containing a list of classstructureids
|
MboSetRemote |
getClassStructureMboList(UserInfo userInfo,
java.lang.String[] classificationsArray)
returns a ClassStructure MboSet based on the passed classification array
|
MboSetRemote |
getClassStructureTopDown(MboSetRemote parentSet,
java.util.Vector classificationVector,
int whichElement) |
MboRemote |
getClassUseWithDomain(UserInfo userInfo,
java.lang.String objectName)
Returns the Mbo(sysnonymdomain) if the passed objectName is
defined in the domain "CLASSUSEWITH"
|
java.lang.String |
getCorrectObjectName(MboRemote mbo)
returns the name of the base object if this passed mbo is a view.
|
java.lang.String |
getCorrectObjectName(UserInfo userInfo,
java.lang.String objectName)
06-20672: return base object name for the object Name passed
|
java.lang.String |
getDescDelimiter()
08-16526: get the delimiter from maxvar ASSETDESCDELIMITER
|
java.lang.String |
getDescDelimiter(boolean isForClassDesc)
Get the delimiter from maxvar ASSETDESCDELIMITER
special cases
|
MboSetRemote |
getMeasureUnits(UserInfo userInfo,
java.lang.String classStructureId,
java.lang.String assetAttrid,
java.lang.String objectName)
Returns a set of MeasureUnits which are referenced by
ITEMSPEC/ASSETSPEC/LOCATIONSPEC for an assetAttridId.
|
MboSetRemote |
getSpecifications(MboRemote mbo)
This method returns a mboset - ITEMSPEC, ASSETSPEC, or
LocationSpec to the caller
|
java.util.Vector |
getUseWithDomainBaseObjects(UserInfo userInfo)
06-20672: store the domain objects where domainid='CLASSUSEWITH' in the vector
|
MboSetRemote |
getUseWithDomainObjects(UserInfo userInfo,
boolean persistentObjectsOnly)
06-20672: returns mboset of maxattribute where sameasobject='CLASSSTRUCTURE'
and sameasattribute='CLASSSTRUCTUREID'
|
void |
init()
Initialize the Application Service.
|
java.util.Vector |
parsePathIntoVector(java.lang.String hierarchyPathPassed)
parse HIERARCHYPATH and store each classificationid in a vector
|
void |
processOldAndNewSpecSets(MboSetRemote oldSpecDeletedSet,
MboSetRemote newSpecSet)
if the classstructureid is being changed and there are existing specifications tied the
the object, then need to process the case where there are common
attributes between the old specification set and the new specification set.
|
void |
setAttributeInternalTye(java.lang.String assetattrid,
java.lang.String orgid,
java.lang.String siteid,
java.lang.String internalType)
IJ18346: for performance: store the internal datatype for the key as
assetattrid+orgid+siteid
|
void |
setAttributesSearchMboSet(MboSetRemote mboSet)
07-17112: set the mboset from the Classification Attribute Search
|
java.util.Vector |
sortedClassSpecSet(MboSetRemote classSpecSet,
MboRemote mbo)
08-22431: classspecset needs to be sorted by sequence in ClassSpecUseWith table
|
java.lang.String |
stringBySearchType(java.lang.String searchType,
java.lang.String searchString)
This method returns a sql string depending on the searchType.
|
boolean |
toGenerateDescForThisObject(java.lang.String objectName)
08-16655: if the objectName passed exists in the vector vectorObjectsToSkipDescGen,
then it means the object does not want its description to be updated
by classification logic.
|
void |
updateClassification(MboRemote classstructure,
java.lang.String description,
java.lang.Integer sortOrder)
update classification structure and classification
|
void |
validateObjectName(java.lang.String objectName)
This method checks to see if the parameter objectName
is one of the three names defined in psdi.app.assetcatalog.AssetCatalogServiceRemote;
i.e.
|
checkSecurity, configure, destroy, freeDBConnection, freeMboSet, getCriteria, getCurrentState, getDBConnection, getLiveObjCount, getLoad, getMaximoDD, getMaxVar, getMboSet, getMXServer, getName, getProfile, getProxy, getSchemaOwner, getServiceInfo, getServiceLogger, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, initCriteriaList, isAppService, isRunning, isSingletonService, restart, setProxy, setRunning, setURL, verifyUser, verifyUser
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkSecurity, getCriteria, getCurrentState, getLiveObjCount, getMboSet, getName, getSchemaOwner, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, verifyUser, verifyUser
isAppService, isSingletonService, restart
public AssetCatalogService() throws java.rmi.RemoteException
java.rmi.RemoteException
public AssetCatalogService(MXServer mxServer) throws java.rmi.RemoteException
name
- -- a "Name" for the Service.srvEnv
- -- the "Server Environment" this Service is being
created in.java.rmi.RemoteException
public MboRemote getClassStructure(UserInfo userInfo, java.lang.String[] classificationsArray) throws MXException, java.rmi.RemoteException
getClassStructure
in interface AssetCatalogServiceRemote
userInfo
- user information used to request a mbo setclassificationsArray
- array containing classificationids in the
order of classstructure hierarchy.
The array may look like {"PUMP","CNTRFGL","OIL"}MXException
java.rmi.RemoteException
public void init()
AppService
init
in interface Service
init
in class AppService
Service
public MboRemote getClassStructure(UserInfo userInfo, java.lang.String[] classificationsArray, boolean returnANewMbo) throws MXException, java.rmi.RemoteException
getClassStructure
in interface AssetCatalogServiceRemote
userInfo
- user information used to request a mbo setclassificationsArray
- array containing classificationids in the
order of classstructure hierarchy.
The array may look like {"PUMP","CNTRFGL","OIL"}boolean
- returnANewMbo if the combination of classifications is not
found in any classstructure record, returns a new classstructure MboMXException
java.rmi.RemoteException
public MboRemote getClassStructure(UserInfo userInfo, java.lang.String classStructureUID) throws MXException, java.rmi.RemoteException
getClassStructure
in interface AssetCatalogServiceRemote
userInfo
- classStructureUID
- MXException
java.rmi.RemoteException
public MboRemote getClassStructureFromPath(UserInfo userInfo, java.lang.String hierarchyPath) throws MXException, java.rmi.RemoteException
getClassStructureFromPath
in interface AssetCatalogServiceRemote
MXException
java.rmi.RemoteException
public java.util.Vector parsePathIntoVector(java.lang.String hierarchyPathPassed)
hierarchyPathPassed
- public MboSetRemote getClassStructureMboList(UserInfo userInfo, java.lang.String[] classificationsArray) throws MXException, java.rmi.RemoteException
getClassStructureMboList
in interface AssetCatalogServiceRemote
userinfo
- classificationArray
- String array contains classifications containing
the hierarchy path of classstructures.
The array may contains {"PUMP","CNTRFGL","OIL"}
Any classStructure that is classified as PUMP/CNTRFGL/OIL and
all of the children are returned.MXException
java.rmi.RemoteException
public java.lang.String getClassStructureList(UserInfo userInfo, java.lang.String[] classificationsArray) throws MXException, java.rmi.RemoteException
userInfo
- classificationsArray
- array containing classifications in the order
of hierarchy path. They may look like {"PUMP","CNTRFGL","OIL"}MXException
java.rmi.RemoteException
public MboSetRemote getAllAttributes(UserInfo userInfo, java.lang.String[] classificationsArray) throws MXException, java.rmi.RemoteException
getAllAttributes
in interface AssetCatalogServiceRemote
userInfo
- classificationsArray
- String array containing classificationsMXException
java.rmi.RemoteException
public MboSetRemote getAllItems(UserInfo userInfo, java.lang.String[] classificationsArray) throws MXException, java.rmi.RemoteException
getAllItems
in interface AssetCatalogServiceRemote
userInfo
- classificationsArray
- MXException
java.rmi.RemoteException
public MboSetRemote classStructureSearch(UserInfo userInfo, java.lang.String objectName, java.lang.String[] classificationsArray) throws MXException, java.rmi.RemoteException
classStructureSearch
in interface AssetCatalogServiceRemote
userInfo
- objectName
- classificationsArray
- MXException
java.rmi.RemoteException
public MboSetRemote classStructureSearch(UserInfo userInfo, java.lang.String objectName, java.lang.String classStructureid) throws MXException, java.rmi.RemoteException
classStructureSearch
in interface AssetCatalogServiceRemote
userInfo
- user information used to instantiate a mbo setobjectName=the
- name of the mboSet to be returned to the caller.
the objectName is defined in psdi.app.assetcatalog.AssetCatalogServiceRemote
as static Strings: ITEM, ASSET, and LOCATIONSclassStructureid
- the classstructureid to be searched upon.MXException
java.rmi.RemoteException
public MboSetRemote anyLevelSearch(UserInfo userInfo, java.lang.String objectName, java.lang.String[] classificationsArray) throws MXException, java.rmi.RemoteException
anyLevelSearch
in interface AssetCatalogServiceRemote
userInfo
- user information used to instantiate a mbo setobjectName=the
- name of the mboSet to be returned to the caller
the objectName is defined in psdi.app.assetcatalog.AssetCatalogServiceRemoteuserInfo
- objectName
- he name of the mboSet to be returned to the caller
the objectName is defined in psdi.app.assetcatalog.AssetCatalogServiceRemoteclassificationsArray
- String containing classificationsMXException
java.rmi.RemoteException
public MboSetRemote classAndAttributesSearch(UserInfo userInfo, java.lang.String objectName, java.lang.String classStructureid, java.lang.String[][] attrAndValues) throws MXException, java.rmi.RemoteException
classAndAttributesSearch
in interface AssetCatalogServiceRemote
userInfo
- user information used to instantiate a mbo setobjectName=the
- name of the mboSet to be returned to the callerclassStructureid,
- can be a single classstructureid or a list of classstructureidsString[][]
- attrAndValues: for Example:MXException
java.rmi.RemoteException
public java.lang.String getClassAndAttributesSearchWhere(UserInfo userInfo, java.lang.String objectName, java.lang.String classStructureid, java.lang.String[][] attrAndValues, java.lang.String[][] itemWhere, java.lang.String[][] invVendorWhere) throws MXException, java.rmi.RemoteException
getClassAndAttributesSearchWhere
in interface AssetCatalogServiceRemote
userInfo
- objectName
- classStructureid
- attrAndValues
- itemWhere
- invVendorWhere
- MXException
java.rmi.RemoteException
public MboSetRemote classAndAttributesSearch(UserInfo userInfo, java.lang.String objectName, java.lang.String classStructureid, java.lang.String[][] attrAndValues, boolean convertArray) throws MXException, java.rmi.RemoteException
classAndAttributesSearch
in interface AssetCatalogServiceRemote
userInfo
- user information used to instantiate a mbo setobjectName=the
- name of the mboSet to be returned to the caller.The
- classStructureid to be searched uponString[][]
- attrAndValues: for Example:convetArray
- true will indicate the passed arrary needs to be converted
to the format that is recognized by
classAndAttributesSearch(UserInfo,String,String,String[][])MXException
java.rmi.RemoteException
public MboSetRemote classAndAttributesSearch(UserInfo userInfo, java.lang.String objectName, java.lang.String[] classificationsArray, java.lang.String[][] attrAndValues, boolean convertArray) throws MXException, java.rmi.RemoteException
userInfo
- objectName
- classificationsArray
- attrAndValues
- convertArray
- MXException
java.rmi.RemoteException
public MboSetRemote classAndAttributesSearch(UserInfo userInfo, java.lang.String objectName, java.lang.String[][] itemColumns, java.lang.String[][] invVendorColumns, java.lang.String[][] attrAndValues, java.lang.String[] classificationsArray) throws MXException, java.rmi.RemoteException
classAndAttributesSearch
in interface AssetCatalogServiceRemote
userInfo
- user information to request a mbo setobjectName=the
- name of the mboSet to be returned to the caller.
the objectName is defined in psdi.app.assetcatalog.AssetCatalogServiceRemote
as static Strings: ITEM, ASSET, and LOCATIONSString[][]
- itemColumns: for Example:String[][]
- invVendorColumns: for example:String[][]
- attrAndValues: for Example:String[]
- classificationsArray --> array containing classifications array indexes.MXException
java.rmi.RemoteException
public MboSetRemote attributesSearch(UserInfo userInfo, java.lang.String objectName, java.lang.String[][] attrAndValues) throws MXException, java.rmi.RemoteException
attributesSearch
in interface AssetCatalogServiceRemote
userInfo
- user information used to request a mbo setobjectName=the
- name of the mboSet to be returned to the caller.String[][]
- attrAndValues: for Example:MXException
java.rmi.RemoteException
public MboSetRemote attributesSearch(UserInfo userInfo, java.lang.String objectName, java.lang.String[][] attrAndValues, boolean convertArray) throws MXException, java.rmi.RemoteException
attributesSearch
in interface AssetCatalogServiceRemote
userInfo
- user information to request a mbo setobjectName=the
- name of the mboSet to be returned to the caller.String[][]
- attrAndValues: for Example:convetArray
- true will indicate the passed arrary needs to be converted
to the format that is recognized by attributesSearch(String,String[][]).MXException
java.rmi.RemoteException
public MboSetRemote getMeasureUnits(UserInfo userInfo, java.lang.String classStructureId, java.lang.String assetAttrid, java.lang.String objectName) throws MXException, java.rmi.RemoteException
getMeasureUnits
in interface AssetCatalogServiceRemote
userInfo
- user information to request a mbo set.classStructureId
- the classstructureid this measureunit is referenced byassetAttridId
- the assetAttridId this measureunitid is referenced byobjectName=the
- name of the mboSet to be returned to the caller.MXException
java.rmi.RemoteException
public java.lang.String getClassStructureId(UserInfo userInfo, java.lang.String objectName, java.lang.String attrName, java.lang.String attrValue) throws MXException, java.rmi.RemoteException
getClassStructureId
in interface AssetCatalogServiceRemote
userInfo
- user information to request a mbo setobjectName=the
- name of the mboSet to be returned to the caller.
the objectName is defined in psdi.app.assetcatalog.AssetCatalogServiceRemote
as static Strings: ITEM, ASSET, and LOCATIONSattrName
- column name for an item,locations,or asset. Valid inputs
will include "itemnum","assetnum", and "location".attrValue
- value for the itemnum,assetnum, and locations.MXException
java.rmi.RemoteException
public MboSetRemote getAttributeValues(UserInfo userInfo, java.lang.String classstructureid, java.lang.String assetattrid) throws MXException, java.rmi.RemoteException
getAttributeValues
in interface AssetCatalogServiceRemote
userInfo
- user information to instantiate a mbosetclassstructureid
- the ClassStructureidassetattrid
- the asset attribute idMXException
java.rmi.RemoteException
public MboSetRemote getAttributeValues(UserInfo userInfo, java.lang.String assetattrid) throws MXException, java.rmi.RemoteException
getAttributeValues
in interface AssetCatalogServiceRemote
userInfo
- user information to request a mbo setassetattrid
- the asset attribute idMXException
java.rmi.RemoteException
public void validateObjectName(java.lang.String objectName) throws MXException, java.rmi.RemoteException
validateObjectName
in interface AssetCatalogServiceRemote
objectName=the
- name of the mboSet to be returned to the caller.
the objectName is defined in psdi.app.assetcatalog.AssetCatalogServiceRemote
as static Strings: ITEM, ASSET, and LOCATIONSMXException
java.rmi.RemoteException
public MboSetRemote getSpecifications(MboRemote mbo) throws MXException, java.rmi.RemoteException
getSpecifications
in interface AssetCatalogServiceRemote
mbo
- valid ones are psdi.app.item.ItemRemote,
psdi.app.asset.AssetRemote,
psdi.app.location.LocationRemote.MXException
java.rmi.RemoteException
public MboSetRemote getChildren(UserInfo userInfo, java.lang.String[] classificationsArray, int currentLevel, java.lang.String searchString, java.lang.String searchType) throws MXException, java.rmi.RemoteException
getChildren
in interface AssetCatalogServiceRemote
userInfo
- user information to request a mbo setclassificationsArray
- string array containing classificationscurrentLevel
- the current level in drilldownsearchString
- the String to further determine if the next level classifications should be includedsearchType
- valid entries are "B"egin With, "C"ontain,
Exact "M"atch. This determines how a query is constructed.MXException
java.rmi.RemoteException
public java.lang.String[][] convertList(UserInfo userInfo, java.lang.String[][] attrAndValues) throws MXException, java.rmi.RemoteException
convertList
in interface AssetCatalogServiceRemote
attrAndValues
- attrAndValues[index][0]=assetattributeid,
attrAndValues[index][1]= values.
attrAndValues[index][2]= measureunitid.
attrAndValues[index][3]="ALN" or "NUMERIC"
For Exampe attrAndValues[0][0]="SPEED"
attrAndValues[0][1]=">100"
attrAndValues[0][2]="EACH"
attrAndValues[0][4]="SEC-1"(The SECTION field)MXException
java.rmi.RemoteException
public java.lang.String[][] convertList(java.lang.String classstructureid, java.lang.String[][] attrAndValues) throws MXException, java.rmi.RemoteException
convertList
in interface AssetCatalogServiceRemote
MXException
java.rmi.RemoteException
public java.lang.String stringBySearchType(java.lang.String searchType, java.lang.String searchString) throws MXException, java.rmi.RemoteException
stringBySearchType
in interface AssetCatalogServiceRemote
MXException
java.rmi.RemoteException
public MboSetRemote classAndAttributesSearchCU(UserInfo userInfo, java.lang.String[] classificationsArray, java.lang.String[][] attrAndValues, boolean convertArray) throws MXException, java.rmi.RemoteException
classAndAttributesSearchCU
in interface AssetCatalogServiceRemote
MXException
java.rmi.RemoteException
public java.lang.String classAndAttributesSearch(UserInfo userInfo, java.lang.String objectName, MboRemote selectedClassStructureMbo, MboSetRemote classSpecSet) throws MXException, java.rmi.RemoteException
classAndAttributesSearch
in interface AssetCatalogServiceRemote
MXException
java.rmi.RemoteException
public java.lang.String attributesSearch(UserInfo userInfo, java.lang.String objectName, MboSetRemote searchAttrSet) throws MXException, java.rmi.RemoteException
attributesSearch
in interface AssetCatalogServiceRemote
MXException
java.rmi.RemoteException
public java.lang.String attributesSearch(UserInfo userInfo, java.lang.String objectName, MboSetRemote searchAttrSet, MboSetRemote relatedAttrSet) throws MXException, java.rmi.RemoteException
attributesSearch
in interface AssetCatalogServiceRemote
MXException
java.rmi.RemoteException
public java.lang.String getClassAndRelatedAttributesSearchWhere(UserInfo userInfo, java.lang.String objectName, java.lang.String[][] attrAndValues) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.String createRelatedAttributeWhereClause(java.lang.String[][] attrAndValues, MboSetRemote specSet) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.String generateDescription(ClassStructureRemote classMbo, SpecificationMboSetRemote specSet) throws MXException, java.rmi.RemoteException
generateDescription
in interface AssetCatalogServiceRemote
classMbo
- ClassStructure passed to determine if description is
to be generated.specSet
- the item/asset/locations specificationsMXException
java.rmi.RemoteException
public MboSetRemote generateSpecSet(MboRemote mbo) throws MXException, java.rmi.RemoteException
generateSpecSet
in interface AssetCatalogServiceRemote
MXException
java.rmi.RemoteException
public MboSetRemote generateSpecSet(MboRemote mbo, java.lang.String itemNum) throws MXException, java.rmi.RemoteException
generateSpecSet
in interface AssetCatalogServiceRemote
MXException
java.rmi.RemoteException
public MboSetRemote generateSpecSet(MboRemote mbo, java.lang.String itemNum, MboRemote baseMbo) throws MXException, java.rmi.RemoteException
generateSpecSet
in interface AssetCatalogServiceRemote
mbo
- itemNum
- MXException
java.rmi.RemoteException
public java.lang.String getCorrectObjectName(MboRemote mbo) throws MXException, java.rmi.RemoteException
getCorrectObjectName
in interface AssetCatalogServiceRemote
mbo
- MXException
java.rmi.RemoteException
public java.lang.String getCorrectObjectName(UserInfo userInfo, java.lang.String objectName) throws MXException, java.rmi.RemoteException
getCorrectObjectName
in interface AssetCatalogServiceRemote
objectName
- MXException
java.rmi.RemoteException
public java.util.Vector getUseWithDomainBaseObjects(UserInfo userInfo) throws MXException, java.rmi.RemoteException
getUseWithDomainBaseObjects
in interface AssetCatalogServiceRemote
MXException
java.rmi.RemoteException
public MboSetRemote getUseWithDomainObjects(UserInfo userInfo, boolean persistentObjectsOnly) throws MXException, java.rmi.RemoteException
getUseWithDomainObjects
in interface AssetCatalogServiceRemote
userInfo
- userInfopersistentObjectsOnly:
- if true, then it returns only the persistent objects in the
domain. Non-persistent objects will not be includedMXException
java.rmi.RemoteException
public MboRemote getClassSpecUseWith(MboRemote classSpec, java.lang.String objectName) throws MXException, java.rmi.RemoteException
classSpec
- objectName
- MXException
java.rmi.RemoteException
public MboRemote getClassUseWithDomain(UserInfo userInfo, java.lang.String objectName) throws MXException, java.rmi.RemoteException
userInfo
- objectName
- MXException
java.rmi.RemoteException
public void processOldAndNewSpecSets(MboSetRemote oldSpecDeletedSet, MboSetRemote newSpecSet) throws MXException, java.rmi.RemoteException
oldSpecDeletedSet
- newSpecSet
- MXException
java.rmi.RemoteException
public void setAttributesSearchMboSet(MboSetRemote mboSet) throws MXException, java.rmi.RemoteException
setAttributesSearchMboSet
in interface AssetCatalogServiceRemote
appMboSet,
- the result set or appset from attribute search.MXException
java.rmi.RemoteException
public MboSetRemote getAttributesSearchMboSet() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void deleteMbosetNotViaMbo(MboRemote mbo, MboSetRemote mboSetReferencedNotViaMbo) throws MXException, java.rmi.RemoteException
mbo
- mboSetReferencedNotViaMbo
- MXException
java.rmi.RemoteException
public void doNotGenerateDescForThisObject(java.lang.String objectName) throws MXException, java.rmi.RemoteException
doNotGenerateDescForThisObject
in interface AssetCatalogServiceRemote
MXException
java.rmi.RemoteException
public boolean toGenerateDescForThisObject(java.lang.String objectName) throws MXException, java.rmi.RemoteException
toGenerateDescForThisObject
in interface AssetCatalogServiceRemote
MXException
java.rmi.RemoteException
public java.lang.String getDescDelimiter() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.util.Vector sortedClassSpecSet(MboSetRemote classSpecSet, MboRemote mbo) throws MXException, java.rmi.RemoteException
classSpecSet
- mbo
- MXException
java.rmi.RemoteException
public MboRemote getClassStructureFromPath(UserInfo userInfo, java.lang.String hierarchyPath, java.lang.String objectName) throws MXException, java.rmi.RemoteException
getClassStructureFromPath
in interface AssetCatalogServiceRemote
userInfo
- hierarchyPath
- objectName
- MXException
java.rmi.RemoteException
public java.lang.String getDescDelimiter(boolean isForClassDesc) throws MXException, java.rmi.RemoteException
isForClassDesc
- - this delimiter is for classification generationMXException
java.rmi.RemoteException
public MboSetRemote getClassStructureTopDown(MboSetRemote parentSet, java.util.Vector classificationVector, int whichElement) throws MXException, java.rmi.RemoteException
parentSet
- - parent classStructureSet,classificationVector
- - parsed elements from the hierarchypath stringwhichElement
- - recursively - indicates which element in the vector to use
until we drill down to the bottom node.MXException
java.rmi.RemoteException
public MboRemote getClassStructureFromPath(UserInfo userInfo, java.lang.String hierarchyPath, java.lang.String orgid, java.lang.String siteid) throws MXException, java.rmi.RemoteException
getClassStructureFromPath
in interface AssetCatalogServiceRemote
userInfo
- hierarchyPath
- orgid
- siteid
- MXException
java.rmi.RemoteException
public void createCategoryToSR(java.lang.String description, java.lang.Integer order) throws MXException, java.rmi.RemoteException
description
- - classification descriptionorder
- - Ticket Template sort orderMXException
java.rmi.RemoteException
public void createSubCategoryToSR(java.lang.String parent, java.lang.String description, java.lang.Integer order) throws MXException, java.rmi.RemoteException
description
- - classification descriptionparent
- - classification parentMXException
java.rmi.RemoteException
public void updateClassification(MboRemote classstructure, java.lang.String description, java.lang.Integer sortOrder) throws MXException, java.rmi.RemoteException
description
- - classification descriptionsortOrder
- -Ticket Template sort orderMXException
java.rmi.RemoteException
public java.lang.String getAttributeInternalType(java.lang.String assetattrid, java.lang.String orgid, java.lang.String siteid) throws MXException, java.rmi.RemoteException
assetattrid
- orgid
- sitieid
- MXException
java.rmi.RemoteException
public void setAttributeInternalTye(java.lang.String assetattrid, java.lang.String orgid, java.lang.String siteid, java.lang.String internalType) throws MXException, java.rmi.RemoteException
assetattrid
- orgid
- sitieid
- internalType
- MXException
java.rmi.RemoteException
public void clearAssetAttrHash() throws MXException, java.rmi.RemoteException
clearAssetAttrHash
in interface AssetCatalogServiceRemote
MXException
java.rmi.RemoteException