public class DMDeployablePkg extends NonPersistentMbo implements DMDeployablePkgRemote, FixedLoggers
| Modifier and Type | Class and Description |
|---|---|
class |
DMDeployablePkg.ProductInfo |
MULTILANGCOPY, phantomList, phantomQueueAPPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGERappenderPrefix, 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, loggerPrefixALLROWS, CHANGEDBY_USER, COUNT_ADDITIONS, COUNT_AFTERSAVE, COUNT_DATABASE, COUNT_DELETED, COUNT_EXISTING, DBCONFIG, DELAYVALIDATION, DELAYVALIDATIONONLY, DISCARDABLE, GOTCOMPLETEWHERE, HIDDEN, NO_RELATEDMBOS_OF_OWNERSCHILDREN_FETCH, NOACCESSCHECK, NOACTION, NOADD, NOCOMMIT, NODELETE, NONE, NOOVERWRITE, NOSAVE, NOSETVALUE, NOUPDATE, NOVALIDATION, NOVALIDATION_AND_NOACTION, NOVALIDATION_AND_NOACTION_ALLOWCROSSOVER, READONLY, REBUILD, REQUIRED, SAMEVALUEVALIDATION, SETBYPARENT, USER| Constructor and Description |
|---|
DMDeployablePkg(MboSet ms)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkCompiledSource()
Check whether package has compiled source files.
|
void |
createPkgDeployStatus(MboRemote stageMbo,
boolean isSuccessful,
java.lang.Throwable t)
After all pkgmetadata deployed, update the package status to deploy statuses
|
void |
delete(long accessModifier)
Delete an incoming package's staging records or file.
|
void |
deletePkgFile(java.lang.String deployPkgName)
Delete pkg file from staging inbound area.
|
MboRemote |
deployPkgMetaData()
Deploy the package metadata.
|
static java.util.Date |
getCreateDate(byte[] manifest)
Returns the create date of the package given the stream of manifest.
|
static java.util.Date |
getCreateDate(java.lang.String fileName)
Returns the create date of the package.
|
byte[] |
getManifest()
Returns the content of manifest from the package file or the staging table.
|
java.util.Map |
getSourceProductInfo()
Get source products information
|
java.util.Map |
getTargetProductInfo()
Get target products information
|
int |
getVersionCheckResult()
Get the result of version check
|
boolean |
isFileExist(java.lang.String deployPkgName)
Check if pkg file also exist or not.
|
boolean |
isOKToDeploy()
Validates all database, Maximo,Addon versions before deploy starts
|
void |
loadStagingRecords()
If the package is a file, load data into staging table.
|
boolean |
previewCheck()
For preview delete the package before preview again.
|
void |
readManifest()
Read the manifest information from this package and format it.
|
void |
updateDistStatusForFile(java.lang.String pkgDefName,
java.lang.String source,
java.lang.String pkgName)
Update distribution status for file type
|
int |
versionCheck(java.util.List srcNeedToBeChecked)
Check the version of source and target products and sets the mbo set to display in dialog
|
add, addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, appValidate, blindCopy, canDelete, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkRecordLock, checkSiteOrgAccessForSave, clear, clearRelatedSets, clearRelatedSets, commit, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, deleteDoclinks, determineRequiredFieldsFromERM, duplicate, enableMethod, evaluateCondition, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, evaluateRestriction, excludeObjectForPropagate, findAllNullRequiredFields, fireEvent, generateAutoKey, generateContentUID, getAlwaysFlags, getAttrRestrictionFlag, getAttrRestrictions, getBoolean, getByte, getBytes, getCheckpoint, getClientLocale, getClientTimeZone, getCommLogOwnerNameAndUniqueId, getCondition, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainFilterWhere, getDomainIDs, getDouble, getESId, getExistingMboSet, getFetchIndex, getFieldExceptions, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertOrgForSite, getInsertSite, getInstanciatedMboSet, getInstanciatedMboValue, getInt, getIntegrationService, getKeyValue, getLanguageRecordRowStamp, getLinesRelationship, getList, getLockedByDisplayName, getLockedByUserID, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboCtx, getMboData, getMboDataSet, getMboForAttribute, getMboForAttributeStatic, getMboInitialValue, getMboList, getMboLogger, getMboRecordData, getMboServer, getMboSet, getMboSet, getMboSet, getMboSetInfo, getMboSetInfo, getMboValue, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getProfile, getPropagateKeyFlag, getProxy, getRecordIdentifer, getRecordMboName, getRecordType, getRelatedSets, getRelatedWhere, getRelatedWhere, getRelationshipNameToLangTable, getResourceName, getRowRestrictionFlag, getRowStamp, getRowStampObject, getSecurityLogger, getSiteOrg, getSqlLogger, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getSynonymValueWhere, getTenantId, getTenantIdForNoMboRecordData, getThisMboSet, getTranslator, getUniqueIdentifer, getUniqueIDName, getUniqueIDValue, getUniqueLanguageIDRecord, getUserInfo, getUserName, getValidateOrder, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, init, initFieldFlagsOnMbo, initRelationship, isApiBatchError, isAppLockEnabled, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, isDuringInit, isEAuditFieldModified, isESigFieldModified, isFlagSet, isForDM, isLocked, isLocked, isLockedByMe, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNoSql, isNull, isOptionGranted, isSelected, isSkipCopyField, isValid, isZombie, lock, modify, moveFieldFlagsToMboValue, needCallInitFieldFlag, orEvaluateConditions, propagateKeyValue, removeCtx, removeRelatedSet, resolveNoSqlWhere, rollbackToCheckpoint, save, select, setAppDefaultValue, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDatabaseDefaultValues, setDatabaseDefaultValues, setDefaultValue, setDefaultValues, setDeleted, setDuringInit, setEAuditFieldModified, setESId, setESigFieldModified, setFetchIndex, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setHierarchyLink, setIgnoreRecordLockCheck, setLangCodeDefault, setMboCtx, setMLValue, setModified, setModifiedForIntegrationOnly, setNewMbo, setNoSql, setPropagateKeyFlag, setPropagateKeyFlag, setProxy, setReadonlyWhenParentIsReadonly, setRecordType, setReferencedMbo, setReferencedMbo, setResolveNoSqlWhere, setResourceName, setTenantIdForNoMboRecordData, setUniqueIDValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueFromSequence, setValueNull, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, skipCopyField, smartFill, smartFind, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, throwRequiredException, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, undeleteDoclinks, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, addMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, duplicate, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, excludeObjectForPropagate, generateAutoKey, getBoolean, getByte, getBytes, getCommLogOwnerNameAndUniqueId, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainIDs, getDouble, getExistingMboSet, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertSite, getInt, getKeyValue, getLinesRelationship, getList, getLockedByDisplayName, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboData, getMboDataSet, getMboInitialValue, getMboList, getMboSet, getMboSet, getMboSet, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getPropagateKeyFlag, getRecordIdentifer, getSiteOrg, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getThisMboSet, getUniqueIDName, getUniqueIDValue, getUserInfo, getUserName, hasHierarchyLink, hasLockSaveRights, isAutoKeyed, isBasedOn, isFlagSet, isForDM, isLocked, isLocked, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNull, isOptionGranted, isSelected, isZombie, lock, propagateKeyValue, rollbackToCheckpoint, select, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDeleted, setESigFieldModified, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setIgnoreRecordLockCheck, setMLValue, setModified, setNewMbo, setPropagateKeyFlag, setPropagateKeyFlag, setReferencedMbo, setReferencedMbo, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueNull, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unlock, unselect, validate, validateAttributespublic DMDeployablePkg(MboSet ms) throws java.rmi.RemoteException
ms - The CommTmpltChangeStatus MboSet.java.rmi.RemoteExceptionpublic void readManifest()
throws MXException,
java.rmi.RemoteException
readManifest in interface DMDeployablePkgRemoteMXExceptionjava.rmi.RemoteExceptionpublic byte[] getManifest()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void loadStagingRecords()
throws MXException,
java.rmi.RemoteException
loadStagingRecords in interface DMDeployablePkgRemoteMXExceptionjava.rmi.RemoteExceptionpublic void updateDistStatusForFile(java.lang.String pkgDefName,
java.lang.String source,
java.lang.String pkgName)
throws MXException,
java.rmi.RemoteException
pkgDefName - source - pkgName - MXExceptionjava.rmi.RemoteExceptionpublic void checkCompiledSource()
throws MXException,
java.rmi.RemoteException
checkCompiledSource in interface DMDeployablePkgRemoteMXExceptionjava.rmi.RemoteExceptionpublic MboRemote deployPkgMetaData() throws MXException, java.rmi.RemoteException
deployPkgMetaData in interface DMDeployablePkgRemoteMXExceptionjava.rmi.RemoteExceptionpublic void createPkgDeployStatus(MboRemote stageMbo, boolean isSuccessful, java.lang.Throwable t) throws MXException, java.rmi.RemoteException
stageMbo - isSuccessful - - true if pkgmetadata deploy successful else falseMXExceptionjava.rmi.RemoteExceptionpublic boolean isOKToDeploy()
throws MXException,
java.rmi.RemoteException
isOKToDeploy in interface DMDeployablePkgRemoteMXExceptionjava.rmi.RemoteExceptionpublic int versionCheck(java.util.List srcNeedToBeChecked)
throws MXException,
java.rmi.RemoteException
versionCheck in interface DMDeployablePkgRemoteList - of source products need to be checkedMXExceptionjava.rmi.RemoteExceptionpublic int getVersionCheckResult()
throws MXException
MXExceptionpublic java.util.Map getSourceProductInfo()
throws MXException
MXExceptionpublic java.util.Map getTargetProductInfo()
throws MXException
MXExceptionpublic boolean previewCheck()
throws MXException,
java.rmi.RemoteException
previewCheck in interface DMDeployablePkgRemoteMXExceptionjava.rmi.RemoteExceptionpublic static java.util.Date getCreateDate(byte[] manifest)
throws MXException,
java.rmi.RemoteException
manifest - Manifest of the package in bytes.MXExceptionjava.rmi.RemoteExceptionpublic static java.util.Date getCreateDate(java.lang.String fileName)
throws MXException,
java.rmi.RemoteException
fileName - The package file name.MXExceptionjava.rmi.RemoteExceptionpublic void delete(long accessModifier)
throws MXException,
java.rmi.RemoteException
delete in interface MboRemotedelete in class MboaccessModifier - The bitwise flag specified to determine
if certain normal security checks are to be
bypassed for this delete request.
For example:
if the accessModifer is NOACCESSCHECK, then the
check for the object's NODELETE flag and the
call to the object's canDelete() method
will not be performed.
If the accessModifer is NONE, then all the
access checks are performed before this object
is marked delete.MXExceptionjava.rmi.RemoteExceptionMbo.delete(long)public boolean isFileExist(java.lang.String deployPkgName)
throws MXException,
java.rmi.RemoteException
isFileExist in interface DMDeployablePkgRemoteMXExceptionjava.rmi.RemoteExceptionpublic void deletePkgFile(java.lang.String deployPkgName)
throws MXException,
java.rmi.RemoteException
deletePkgFile in interface DMDeployablePkgRemoteMXExceptionjava.rmi.RemoteException