public class LoadTenantDemoData
extends java.lang.Object
| Constructor and Description |
|---|
LoadTenantDemoData() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.Integer,com.ibm.json.java.JSONObject> |
getDataToLoad(boolean useCOS) |
java.util.Map<java.lang.Integer,byte[]> |
getImageDataToLoad(boolean useCOS) |
java.util.Map<java.lang.String,byte[]> |
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<java.lang.String,byte[]> imageMap,
UserInfo userInfo,
int tenantID,
COSApi cosAPI,
java.lang.String bucketName,
boolean toCOS)
Load demo data.
|
void |
loadTestData(java.util.Map<java.lang.Integer,com.ibm.json.java.JSONObject> dataMap,
java.util.Map<java.lang.Integer,byte[]> 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) |
public void process(boolean useCOS,
java.lang.String tenantCode,
java.lang.String adminUser,
UserInfo userInfo)
throws java.io.IOException,
MXException
java.io.IOExceptionMXExceptionpublic void loadData(int tenantID,
java.lang.String userId,
UserInfo userInfo)
throws MXException,
java.rmi.RemoteException
tenantId - tenantId the tenantuserId - user id the tenant administratorpartNum - part numberuseCOS - store images to COS to to Maximo IMGLIB tableUserInfo - landlordUserInfo the user info of the landlord, required for context switchingMXExceptionjava.rmi.RemoteExceptionpublic void loadData(int tenantId,
java.lang.String userId,
UserInfo userInfo,
boolean toCOS,
boolean loadDemoData)
throws MXException,
java.rmi.RemoteException
tenantId - tenantId the tenantuserId - user id the tenant administratorpartNum - part numberuseCOS - store images to COS to to Maximo IMGLIB tableUserInfo - landlordUserInfo the user info of the landlord, required for context switchingMXExceptionjava.rmi.RemoteExceptionpublic void processDemoData(java.lang.String userId,
UserInfo userInfo,
int tenantID,
COSApi cosAPI,
java.lang.String bucketName,
boolean toCOS)
throws MXException,
java.rmi.RemoteException
TenantInfo - tenantInfo the tenant info for the owner of the cloned template dataUserInfo - landlordUserInfo the user info of the landlord, required for context switchingMXExceptionjava.rmi.RemoteExceptionpublic void processImages(java.lang.String userId,
UserInfo userInfo,
int tenantID,
COSApi cosAPI,
java.lang.String bucketName,
boolean toCOS)
throws MXException,
java.rmi.RemoteException
TenantInfo - tenantInfo the tenant info for the owner of the cloned template dataUserInfo - landlordUserInfo the user info of the landlord, required for context switchingMXExceptionjava.rmi.RemoteExceptionpublic void loadTestData(java.util.Map<java.lang.Integer,com.ibm.json.java.JSONObject> dataMap,
java.util.Map<java.lang.Integer,byte[]> imageMap,
java.lang.String adminUser,
UserInfo userInfo,
int tenantID,
COSApi cosAPI,
java.lang.String bucketName,
boolean toCOS)
throws MXException,
java.rmi.RemoteException
TenantInfo - tenantInfo the tenant info for the owner of the cloned template dataUserInfo - landlordUserInfo the user info of the landlord, required for context switchingMXExceptionjava.rmi.RemoteExceptionpublic void loadImagesForSeedData(java.util.Map<java.lang.String,byte[]> imageMap,
UserInfo userInfo,
int tenantID,
COSApi cosAPI,
java.lang.String bucketName,
boolean toCOS)
throws MXException,
java.rmi.RemoteException
TenantInfo - tenantInfo the tenant info for the owner of the cloned template dataUserInfo - landlordUserInfo the user info of the landlord, required for context switchingMXExceptionjava.rmi.RemoteExceptionpublic void loadImages(MboRemote mbo, byte[] imageData, COSApi cosAPI, java.lang.String bucketName, boolean toCOS) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.util.Map<java.lang.Integer,com.ibm.json.java.JSONObject> getDataToLoad(boolean useCOS)
throws MXException
MXExceptionpublic java.util.Map<java.lang.Integer,byte[]> getImageDataToLoad(boolean useCOS)
throws MXException
MXExceptionpublic java.util.Map<java.lang.String,byte[]> getImageSeedDataToLoad(boolean useCOS)
throws MXException
MXExceptionpublic static byte[] readBinaryData(java.io.InputStream input)
throws java.io.IOException
java.io.IOException