public class LoadTenantDemoData
extends java.lang.Object
Constructor and Description |
---|
LoadTenantDemoData() |
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) |
public void process(boolean useCOS, java.lang.String tenantCode, java.lang.String adminUser, UserInfo userInfo) throws java.io.IOException, MXException
java.io.IOException
MXException
public 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 switchingMXException
java.rmi.RemoteException
public 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 switchingMXException
java.rmi.RemoteException
public 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 switchingMXException
java.rmi.RemoteException
public 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 switchingMXException
java.rmi.RemoteException
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
TenantInfo
- tenantInfo the tenant info for the owner of the cloned template dataUserInfo
- landlordUserInfo the user info of the landlord, required for context switchingMXException
java.rmi.RemoteException
public void loadImagesForSeedData(java.util.Map 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 switchingMXException
java.rmi.RemoteException
public void loadImages(MboRemote mbo, byte[] imageData, COSApi cosAPI, java.lang.String bucketName, boolean toCOS) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.util.Map getDataToLoad(boolean useCOS) throws MXException
MXException
public java.util.Map getImageDataToLoad(boolean useCOS) throws MXException
MXException
public java.util.Map getImageSeedDataToLoad(boolean useCOS) throws MXException
MXException
public static byte[] readBinaryData(java.io.InputStream input) throws java.io.IOException
java.io.IOException