public class DMPackage extends StatefulMbo implements DMPackageRemote, FixedLoggers
onListTab, statusChangeButtonSigoption, targetStatusOptionMULTILANGCOPY, 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 |
|---|
DMPackage(MboSet ms)
Construct the Pkg object
|
| Modifier and Type | Method and Description |
|---|---|
void |
add()
Add a new package
|
void |
applyFix()
Update the file where the error occurred with the updated XML.
|
void |
canDelete()
Check if package can be deleted or not.
|
void |
canDistribute()
Throws an exception if this package can not be distributed due to its
status.
|
java.lang.String |
canDownloadFile(MboRemote cmpSrc)
Check whether a compiled source file exists for download.
|
java.lang.String |
canDownloadPkg()
Check whether a package file exists for download.
|
java.lang.String |
canDownloadPreviewLog()
Check whether a preview log file exists for download.
|
java.lang.String |
canDownloadScriptLog()
Check whether a script log file exists for download.
|
void |
changeMaxStatus(java.lang.String status,
java.lang.String progressStatus,
java.util.Date asOfDate,
java.lang.String memo,
long accessModifier)
Change status, using the default values for the status and progress status.
|
void |
changeStatus(java.lang.String status,
java.lang.String progressStatus,
java.util.Date date,
java.lang.String memo,
long accessModifier)
Change the status of package with the progressstatus
|
void |
closePkg()
Purge a package.
|
MboRemote |
confirmCompSrcDeployed()
Set status after Confirmation of compiled sources have been deployed
|
void |
delete(long accessModifier)
Mark the object to be deleted depending on the access modifier.
|
void |
deleteForPreview(long accessModifier)
Delete package metadata to preview again.
|
void |
deployPackage(MboSetRemote pkgDefSet)
Start deploy thread at target server.
|
java.lang.String |
distributePackage()
Distribute package to FILE or Database
|
boolean |
distributeZipPackage()
Creates a zip file in the dmroot directory for download in the browser.
|
void |
getLongopPreviewOKMsg(java.lang.String pkgName,
UserInfo ui,
MboSetRemote defSet)
Write preview done messages to longop.
|
MboRemote |
getPackageDef()
Returns the package's definition.
|
boolean |
getRedistribute()
Returns true if the package is set to be redistributed.
|
java.lang.String |
getStatusListName()
Gets the name of the value list that contains all the status's.
|
void |
init()
initialize package
|
java.util.HashMap<java.lang.Integer,psdi.dm.pkg.DMPackage.MosPreviewInfo> |
mosGrpResolver(java.util.HashMap<java.lang.Integer,java.lang.String> objMap)
Find group for a mos and find start and end number of Mos and group
|
void |
previewLogger(java.lang.String pkgName,
boolean load)
Load and unload preview logger dynamically
|
void |
processPreviewXML(MXTransaction mxTrans,
UserInfo ui,
java.lang.String mos,
byte[] content,
boolean recordRollback)
Process xml using preview mode.
|
void |
setRedistribute(boolean isRedistribute)
Set redistribute flag for the package
|
void |
uploadCompiledSrcFile(java.lang.String fileName,
byte[] content)
Upload compiled source file into the staging table.
|
boolean |
writeMosToXML(java.lang.String type,
java.lang.String defClassName,
java.lang.String mosName,
MboSetRemote mosMboSet,
boolean isChange,
int batchSize,
boolean useDefaultXMLAction)
Write the provided MOS mboset into an xml.
|
canChangeMaxStatus, canChangeStatus, canChangeStatus, canChangeStatus, canDeleteAttachedDocs, changeMaxStatus, changeMaxStatus, changeStatus, changeStatus, checkForOpenStatus, checkStatusChangeAuthorization, filterByValidStatusList, fireEvent, getInternalStatus, getOnListTab, getOverridePVStatusException, getStatusChangeButtonSigoption, getStatusList, getTargetStatusOption, getValidStatusList, setOnListTab, setOverridePVStatusException, setStatusChangeButtonSigoption, setTargetStatusOptionaddMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, appValidate, blindCopy, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkSiteOrgAccessForSave, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, determineRequiredFieldsFromERM, duplicate, enableMethod, evaluateCondition, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, evaluateRestriction, excludeObjectForPropagate, findAllNullRequiredFields, 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, getMboValue, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getProfile, getPropagateKeyFlag, getProxy, getRecordIdentifer, getRecordMboName, getRelatedWhere, getRelatedWhere, getRelationshipNameToLangTable, getResourceName, getRowRestrictionFlag, getRowStamp, getRowStampObject, getSecurityLogger, getSiteOrg, getSqlLogger, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getSynonymValueWhere, getTenantId, getThisMboSet, getTranslator, getUniqueIdentifer, getUniqueIDName, getUniqueIDValue, getUniqueLanguageIDRecord, getUserInfo, getUserName, getValidateOrder, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, initFieldFlagsOnMbo, initRelationship, isApiBatchError, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, 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, select, setAppDefaultValue, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDefaultValue, setDefaultValues, setDeleted, 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, setReferencedMbo, setReferencedMbo, setResolveNoSqlWhere, setResourceName, 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, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChangedequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanChangeMaxStatus, canChangeStatus, canChangeStatus, canDeleteAttachedDocs, changeMaxStatus, changeMaxStatus, changeStatus, changeStatus, checkForOpenStatus, getInternalStatus, getOnListTab, getOverridePVStatusException, getStatusChangeButtonSigoption, getStatusList, getTargetStatusOption, getValidStatusList, setOnListTab, setOverridePVStatusException, setStatusChangeButtonSigoption, setTargetStatusOptionaddMboSetForRequiredCheck, 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, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unlock, unselect, validate, validateAttributespublic DMPackage(MboSet ms) throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic void init()
throws MXException
init in class MboMXExceptionpublic void add()
throws MXException,
java.rmi.RemoteException
add in interface MboRemoteadd in class MboMXExceptionjava.rmi.RemoteExceptionpublic void canDelete()
throws MXException,
java.rmi.RemoteException
canDelete in class MboMXExceptionjava.rmi.RemoteExceptionpublic void delete(long accessModifier)
throws MXException,
java.rmi.RemoteException
Mbodelete 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 void deleteForPreview(long accessModifier)
throws MXException,
java.rmi.RemoteException
deleteForPreview in interface DMPackageRemoteMXExceptionjava.rmi.RemoteExceptionpublic boolean writeMosToXML(java.lang.String type,
java.lang.String defClassName,
java.lang.String mosName,
MboSetRemote mosMboSet,
boolean isChange,
int batchSize,
boolean useDefaultXMLAction)
throws MXException,
java.rmi.RemoteException
writeMosToXML in interface DMPackageRemotemosName - The name of the MOS (configuration object).mosMboSet - The mboset that represents data for this MOS.isChange - Boolean to indicate whether this is a snapshot or change type.batchSize - The number of top level mbos to process at each batch.MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getStatusListName()
getStatusListName in interface StatefulMboRemotegetStatusListName in class StatefulMbopublic void changeStatus(java.lang.String status,
java.lang.String progressStatus,
java.util.Date date,
java.lang.String memo,
long accessModifier)
throws MXException,
java.rmi.RemoteException
changeStatus in interface DMPackageRemotechangeStatus in interface StatefulMboRemotechangeStatus in class StatefulMbostatus - progressStatus - date - memo - accessModifier - MXExceptionjava.rmi.RemoteException* @param statuspublic void canDistribute()
throws MXException,
java.rmi.RemoteException
canDistribute in interface DMPackageRemoteMXExceptionjava.rmi.RemoteExceptionpublic boolean distributeZipPackage()
throws MXException,
java.rmi.RemoteException
distributeZipPackage in interface DMPackageRemoteMXExceptionjava.rmi.RemoteExceptionpublic java.lang.String distributePackage()
throws MXException,
java.rmi.RemoteException
distributePackage in interface DMPackageRemoteMXExceptionjava.rmi.RemoteExceptionpublic void deployPackage(MboSetRemote pkgDefSet) throws MXException, java.rmi.RemoteException
deployPackage in interface DMPackageRemotepkgDefSet - The package def set passed from UI. Used for writing longop
messages.MXExceptionjava.rmi.RemoteExceptionpublic void getLongopPreviewOKMsg(java.lang.String pkgName,
UserInfo ui,
MboSetRemote defSet)
throws java.lang.Exception
pkgName - ui - defSet - java.lang.Exceptionpublic void changeMaxStatus(java.lang.String status,
java.lang.String progressStatus,
java.util.Date asOfDate,
java.lang.String memo,
long accessModifier)
throws MXException,
java.rmi.RemoteException
changeMaxStatus in interface DMPackageRemotestatus - MaxValue of the status to change to.progressStatus - MaxValue of the progress status to change toasOfDate - The date of the status changememo - MemoaccessModifier - access flagMXExceptionjava.rmi.RemoteExceptionpublic void previewLogger(java.lang.String pkgName,
boolean load)
throws MXException,
java.rmi.RemoteException
pkgName - load - MXExceptionjava.rmi.RemoteExceptionpublic void processPreviewXML(MXTransaction mxTrans, UserInfo ui, java.lang.String mos, byte[] content, boolean recordRollback) throws MXException, java.rmi.RemoteException
mxTrans - mos - rollbackpoint - content - MXExceptionjava.rmi.RemoteExceptionpublic MboRemote confirmCompSrcDeployed() throws MXException, java.rmi.RemoteException
confirmCompSrcDeployed in interface DMPackageRemoteMXExceptionjava.rmi.RemoteExceptionpublic void closePkg()
throws MXException,
java.rmi.RemoteException
closePkg in interface DMPackageRemoteMXExceptionjava.rmi.RemoteExceptionpublic void uploadCompiledSrcFile(java.lang.String fileName,
byte[] content)
throws MXException,
java.rmi.RemoteException
uploadCompiledSrcFile in interface DMPackageRemotefileName - The compiled source file name.content - Content of the fileMXExceptionjava.rmi.RemoteExceptionpublic java.lang.String canDownloadPkg()
throws MXException,
java.rmi.RemoteException
canDownloadPkg in interface DMPackageRemoteMXExceptionjava.rmi.RemoteExceptionpublic java.lang.String canDownloadFile(MboRemote cmpSrc) throws MXException, java.rmi.RemoteException
canDownloadFile in interface DMPackageRemoteMXExceptionjava.rmi.RemoteExceptionpublic boolean getRedistribute()
throws MXException,
java.rmi.RemoteException
getRedistribute in interface DMPackageRemotejava.rmi.RemoteExceptionMXExceptionpublic void setRedistribute(boolean isRedistribute)
isRedistribute - public MboRemote getPackageDef() throws MXException, java.rmi.RemoteException
getPackageDef in interface DMPackageRemoteMXExceptionjava.rmi.RemoteExceptionpublic java.lang.String canDownloadPreviewLog()
throws MXException,
java.rmi.RemoteException
canDownloadPreviewLog in interface DMPackageRemoteMXExceptionjava.rmi.RemoteExceptionpublic java.lang.String canDownloadScriptLog()
throws MXException,
java.rmi.RemoteException
canDownloadScriptLog in interface DMPackageRemoteMXExceptionjava.rmi.RemoteExceptionpublic java.util.HashMap<java.lang.Integer,psdi.dm.pkg.DMPackage.MosPreviewInfo> mosGrpResolver(java.util.HashMap<java.lang.Integer,java.lang.String> objMap)
throws MXException,
java.rmi.RemoteException
objMap - MXExceptionjava.rmi.RemoteExceptionpublic void applyFix()
throws MXException,
java.rmi.RemoteException
applyFix in interface DMPackageRemoteMXExceptionjava.rmi.RemoteException