psdi.iface.util

Class LoadTenantDemoData

  • java.lang.Object
    • psdi.iface.util.LoadTenantDemoData


  • public class LoadTenantDemoData
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.Map getDataToLoad(boolean useCOS) 
      java.util.Map getImageDataToLoad(boolean useCOS) 
      java.util.Map getImageSeedDataToLoad(boolean useCOS) 
      void loadData(int tenantID, java.lang.String userId, UserInfo userInfo)
      Create demo data if necessary and images.
      void loadData(int tenantId, java.lang.String userId, UserInfo userInfo, boolean toCOS, boolean loadDemoData)
      Create demo data if necessary and images.
      void loadImages(MboRemote mbo, byte[] imageData, COSApi cosAPI, java.lang.String bucketName, boolean toCOS) 
      void loadImagesForSeedData(java.util.Map imageMap, UserInfo userInfo, int tenantID, COSApi cosAPI, java.lang.String bucketName, boolean toCOS)
      Load demo data.
      void loadTestData(java.util.Map dataMap, java.util.Map imageMap, java.lang.String adminUser, UserInfo userInfo, int tenantID, COSApi cosAPI, java.lang.String bucketName, boolean toCOS)
      Load demo data.
      void process(boolean useCOS, java.lang.String tenantCode, java.lang.String adminUser, UserInfo userInfo) 
      void processDemoData(java.lang.String userId, UserInfo userInfo, int tenantID, COSApi cosAPI, java.lang.String bucketName, boolean toCOS)
      Load demo data.
      void processImages(java.lang.String userId, UserInfo userInfo, int tenantID, COSApi cosAPI, java.lang.String bucketName, boolean toCOS)
      Load demo data.
      static byte[] readBinaryData(java.io.InputStream input) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LoadTenantDemoData

        public LoadTenantDemoData()
    • Method Detail

      • process

        public void process(boolean useCOS,
                            java.lang.String tenantCode,
                            java.lang.String adminUser,
                            UserInfo userInfo)
                     throws java.io.IOException,
                            MXException
        Throws:
        java.io.IOException
        MXException
      • loadData

        public void loadData(int tenantID,
                             java.lang.String userId,
                             UserInfo userInfo)
                      throws MXException,
                             java.rmi.RemoteException
        Create demo data if necessary and images.
        Parameters:
        tenantId - tenantId the tenant
        userId - user id the tenant administrator
        partNum - part number
        useCOS - store images to COS to to Maximo IMGLIB table
        UserInfo - landlordUserInfo the user info of the landlord, required for context switching
        Throws:
        MXException
        java.rmi.RemoteException
      • loadData

        public void loadData(int tenantId,
                             java.lang.String userId,
                             UserInfo userInfo,
                             boolean toCOS,
                             boolean loadDemoData)
                      throws MXException,
                             java.rmi.RemoteException
        Create demo data if necessary and images.
        Parameters:
        tenantId - tenantId the tenant
        userId - user id the tenant administrator
        partNum - part number
        useCOS - store images to COS to to Maximo IMGLIB table
        UserInfo - landlordUserInfo the user info of the landlord, required for context switching
        Throws:
        MXException
        java.rmi.RemoteException
      • processDemoData

        public void processDemoData(java.lang.String userId,
                                    UserInfo userInfo,
                                    int tenantID,
                                    COSApi cosAPI,
                                    java.lang.String bucketName,
                                    boolean toCOS)
                             throws MXException,
                                    java.rmi.RemoteException
        Load demo data. Need temporarily until UI functionality available.
        Parameters:
        TenantInfo - tenantInfo the tenant info for the owner of the cloned template data
        UserInfo - landlordUserInfo the user info of the landlord, required for context switching
        Throws:
        MXException
        java.rmi.RemoteException
      • processImages

        public void processImages(java.lang.String userId,
                                  UserInfo userInfo,
                                  int tenantID,
                                  COSApi cosAPI,
                                  java.lang.String bucketName,
                                  boolean toCOS)
                           throws MXException,
                                  java.rmi.RemoteException
        Load demo data. Need temporarily until UI functionality available.
        Parameters:
        TenantInfo - tenantInfo the tenant info for the owner of the cloned template data
        UserInfo - landlordUserInfo the user info of the landlord, required for context switching
        Throws:
        MXException
        java.rmi.RemoteException
      • loadTestData

        public void loadTestData(java.util.Map dataMap,
                                 java.util.Map imageMap,
                                 java.lang.String adminUser,
                                 UserInfo userInfo,
                                 int tenantID,
                                 COSApi cosAPI,
                                 java.lang.String bucketName,
                                 boolean toCOS)
                          throws MXException,
                                 java.rmi.RemoteException
        Load demo data. Need temporarily untill UI functionality available.
        Parameters:
        TenantInfo - tenantInfo the tenant info for the owner of the cloned template data
        UserInfo - landlordUserInfo the user info of the landlord, required for context switching
        Throws:
        MXException
        java.rmi.RemoteException
      • loadImagesForSeedData

        public void loadImagesForSeedData(java.util.Map imageMap,
                                          UserInfo userInfo,
                                          int tenantID,
                                          COSApi cosAPI,
                                          java.lang.String bucketName,
                                          boolean toCOS)
                                   throws MXException,
                                          java.rmi.RemoteException
        Load demo data. Need temporarily untill UI functionality available.
        Parameters:
        TenantInfo - tenantInfo the tenant info for the owner of the cloned template data
        UserInfo - landlordUserInfo the user info of the landlord, required for context switching
        Throws:
        MXException
        java.rmi.RemoteException
      • loadImages

        public void loadImages(MboRemote mbo,
                               byte[] imageData,
                               COSApi cosAPI,
                               java.lang.String bucketName,
                               boolean toCOS)
                        throws MXException,
                               java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • getImageDataToLoad

        public java.util.Map getImageDataToLoad(boolean useCOS)
                                         throws MXException
        Throws:
        MXException
      • getImageSeedDataToLoad

        public java.util.Map getImageSeedDataToLoad(boolean useCOS)
                                             throws MXException
        Throws:
        MXException
      • readBinaryData

        public static byte[] readBinaryData(java.io.InputStream input)
                                     throws java.io.IOException
        Throws:
        java.io.IOException