psdi.app.bim

Class BIMService

    • Constructor Detail

      • BIMService

        public BIMService(MXServer mxServer)
                   throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • BIMService

        public BIMService()
                   throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • getLoaderFactory

        public Factory getLoaderFactory()
        Description copied from interface: BIMServiceRemote
        Gets a factory classed used to create most loader classes. This class may be replaced to extend loader features. A default COBie24 factory is created by the BIM service at initialization
        Specified by:
        getLoaderFactory in interface BIMServiceRemote
        Returns:
        Current loader Factory instance
      • setFactory

        public void setFactory(Factory factory)
        Description copied from interface: BIMServiceRemote
        Update the loader factory. Should typically only be called during Maximo initialization
        Specified by:
        setFactory in interface BIMServiceRemote
      • getMaximoVersion

        public int getMaximoVersion()
                             throws java.rmi.RemoteException
        Specified by:
        getMaximoVersion in interface BIMServiceRemote
        Throws:
        java.rmi.RemoteException
      • getProject

        public MboRemote getProject(UserInfo userInfo,
                                    java.lang.String attribute,
                                    long key)
                             throws MXException,
                                    java.rmi.RemoteException
        returns BIMProject Mbo based on the unique key passed
        Specified by:
        getProject in interface BIMServiceRemote
        Parameters:
        userInfo -
        key -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.app.bim.BIMService#getProject(UserInfo userInfo,String attribute,String key)
      • copyFile

        public void copyFile(java.io.InputStream is,
                             java.lang.String targetDir,
                             java.lang.String fileName)
                      throws MXException
        Throws:
        MXException
      • startSession

        public MboRemote startSession(UserInfo userInfo,
                                      java.lang.String projectId,
                                      java.lang.String sessionId,
                                      java.lang.String siteId)
                               throws java.rmi.RemoteException,
                                      MXException
        Description copied from interface: BIMServiceRemote
        Web method to start a session via REST THe session must be ready to run, including having files uploaded and upload records defined
        Specified by:
        startSession in interface BIMServiceRemote
        Returns:
        JSOM error object
        Throws:
        java.rmi.RemoteException
        MXException
      • startClassificationImport

        public MboRemote startClassificationImport(UserInfo userInfo,
                                                   java.lang.String importId,
                                                   java.lang.String fileType)
                                            throws java.rmi.RemoteException,
                                                   MXException
        Description copied from interface: BIMServiceRemote
        Web method to start an Omniclass or Uniformate import session via REST THe session must be ready to run, including having files uploaded
        Specified by:
        startClassificationImport in interface BIMServiceRemote
        Returns:
        JSOM error object
        Throws:
        java.rmi.RemoteException
        MXException
      • deleteDirecotry

        public static void deleteDirecotry(java.io.File file)