public class DMPackageDef extends StatefulMbo implements DMPackageDefRemote, 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 |
|---|
DMPackageDef(MboSet ms)
Construct the PkgDefinition object
|
| Modifier and Type | Method and Description |
|---|---|
void |
add()
Add a new package definition
|
void |
canCreatePackage()
Check whether a package can be created.
|
void |
canDeletePkgDef() |
void |
canEdit()
Checks if package definition can be edited or not
|
void |
canEditSetWhere()
Checks if package definition can be edited or not
|
void |
canSetWhere()
Check whether can set where clause.
|
void |
cantPerformOnLocked()
If the package definition's status is LOCKED, throw an exception.
|
void |
delete(long accessModifier)
Delete package definition
|
MboRemote |
duplicate()
Duplicate the package definition
|
void |
extractPkgData(MboRemote newPkg)
Extracts the package's records.
|
boolean |
extractRecordsForCfgGroup(java.lang.String type,
MboRemote cfgGrp,
MboRemote newPkg,
boolean reCreatePkgMeta,
UserInfo msgUI)
Extract records for a configuration gruop.
|
MboSetRemote |
getDMCfgDataObjGroupInOrder(java.util.List<java.lang.String> cfgGroups)
Return the cfgdata groups in the package in ascending order.
|
int |
getPkgTypeAsInt()
Get the package type as integer
|
boolean |
getReloadOnSave()
Flag to get if reload is needed for save
|
boolean |
getSnapshotFlag()
Get the flag that package definition is snapshot or change.
|
java.lang.String |
getStatusListName()
Gete the status list name for a package
|
void |
init()
Called by the framework when the Mbo has been constructed and the
MboValues have been initialized.
|
java.util.List<java.lang.String> |
loadAllGroupsForPkg()
Load all groups for a package, including dependent groups.
|
boolean |
loadCFGDATAGrpsForPkg(MboRemote pkgMbo,
java.util.List<java.lang.String> grpV,
UserInfo msgUI)
Write all CFGDATA type records in staging table
|
boolean |
loadDDMETADATAGrpForPkg(MboRemote pkgMbo,
UserInfo msgUI)
Write all DDMETADATA type records in staging table
|
void |
loadManifestForPkg(MboRemote newPkg)
Write manifest record in staging table
|
void |
loadPKGMETADATAGrpForPkg(MboRemote pkgMbo,
boolean reCreatePkgMeta,
UserInfo msgUI)
Write all PKGMETADATA type records in staging table
|
MboRemote |
loadStagingForPkg(MboRemote pkgMbo,
java.lang.String type,
UserInfo msgUI)
Populate staging records for different staging type.
|
void |
moveEventTrackingToHistory()
When a package is created successfully, all the tracking events for change type package
are moved to history table.
|
boolean |
pkgContainsUserDefinedMOS() |
void |
setPkgTypeAsInt(int type)
Sets the package type as integer
|
void |
setReadOnly()
Sets the readonly flag for package definition
|
void |
setReloadOnSave(boolean flag)
Flag to set if reload is needed for save
|
void |
setSnapshotFlag(boolean snapshot)
Set the flag that package definition is snapshot
|
void |
validateChangePkgDef()
Validate a change type package definition.
|
void |
warnDeletePkgDef()
Checks if package definition can be deleted or not
|
canChangeMaxStatus, canChangeStatus, canChangeStatus, canChangeStatus, canDeleteAttachedDocs, changeMaxStatus, changeMaxStatus, changeStatus, changeStatus, changeStatus, checkForOpenStatus, checkStatusChangeAuthorization, filterByValidStatusList, fireEvent, getInternalStatus, getOnListTab, getOverridePVStatusException, getStatusChangeButtonSigoption, getStatusList, getTargetStatusOption, getValidStatusList, setOnListTab, setOverridePVStatusException, setStatusChangeButtonSigoption, setTargetStatusOptionaddMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, appValidate, blindCopy, canDelete, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkSiteOrgAccessForSave, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, determineRequiredFieldsFromERM, 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, 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, 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 DMPackageDef(MboSet ms) throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic void init()
throws MXException
Mboinit in class MboMXExceptionpublic void extractPkgData(MboRemote newPkg) throws MXException, java.rmi.RemoteException
extractPkgData in interface DMPackageDefRemotenewPkg - The newly created package which the records are for.MXExceptionjava.rmi.RemoteExceptionpublic boolean loadCFGDATAGrpsForPkg(MboRemote pkgMbo, java.util.List<java.lang.String> grpV, UserInfo msgUI) throws java.lang.Exception
pkgMbo - MXExceptionjava.rmi.RemoteExceptionjava.lang.Exceptionpublic MboSetRemote getDMCfgDataObjGroupInOrder(java.util.List<java.lang.String> cfgGroups) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic boolean loadDDMETADATAGrpForPkg(MboRemote pkgMbo, UserInfo msgUI) throws java.lang.Exception
pkgMbo - MXExceptionjava.rmi.RemoteExceptionjava.lang.Exceptionpublic void loadPKGMETADATAGrpForPkg(MboRemote pkgMbo, boolean reCreatePkgMeta, UserInfo msgUI) throws java.lang.Exception
loadPKGMETADATAGrpForPkg in interface DMPackageDefRemotepkgMbo - MXExceptionjava.rmi.RemoteExceptionjava.lang.Exceptionpublic void loadManifestForPkg(MboRemote newPkg) throws java.lang.Exception
newPkg - MXExceptionjava.rmi.RemoteExceptionjava.lang.Exceptionpublic boolean extractRecordsForCfgGroup(java.lang.String type,
MboRemote cfgGrp,
MboRemote newPkg,
boolean reCreatePkgMeta,
UserInfo msgUI)
throws MXException,
java.rmi.RemoteException
extractRecordsForCfgGroup in interface DMPackageDefRemotecfgGrp - newPkg - MXExceptionjava.rmi.RemoteExceptionpublic java.util.List<java.lang.String> loadAllGroupsForPkg()
throws MXException,
java.rmi.RemoteException
loadAllGroupsForPkg in interface DMPackageDefRemoteMXExceptionjava.rmi.RemoteExceptionpublic MboRemote duplicate() throws MXException, java.rmi.RemoteException
duplicate in interface MboRemoteduplicate in class MboMXExceptionjava.rmi.RemoteExceptionpublic MboRemote loadStagingForPkg(MboRemote pkgMbo, java.lang.String type, UserInfo msgUI) throws java.lang.Exception
pkgMbo - type - java.lang.Exceptionpublic void add()
throws MXException,
java.rmi.RemoteException
add in interface MboRemoteadd in class MboMXExceptionjava.rmi.RemoteExceptionpublic void setReloadOnSave(boolean flag)
flag - public boolean getReloadOnSave()
public void canDeletePkgDef()
throws MXException,
java.rmi.RemoteException
canDeletePkgDef in interface DMPackageDefRemoteMXExceptionjava.rmi.RemoteExceptionpublic void warnDeletePkgDef()
throws MXException,
java.rmi.RemoteException
warnDeletePkgDef in interface DMPackageDefRemoteMXExceptionjava.rmi.RemoteExceptionpublic void canEdit()
throws MXException,
java.rmi.RemoteException
canEdit in interface DMPackageDefRemoteMXExceptionjava.rmi.RemoteExceptionpublic void canEditSetWhere()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void setReadOnly()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void canCreatePackage()
throws MXException
MXExceptionjava.rmi.RemoteExceptionpublic void canSetWhere()
throws MXException,
java.rmi.RemoteException
canSetWhere in interface DMPackageDefRemoteMXExceptionjava.rmi.RemoteExceptionpublic void setSnapshotFlag(boolean snapshot)
snapshot - public boolean getSnapshotFlag()
public int getPkgTypeAsInt()
public void setPkgTypeAsInt(int type)
type - - 0 for snapshot,1 for change , 2 for collectionpublic 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 java.lang.String getStatusListName()
getStatusListName in interface StatefulMboRemotegetStatusListName in class StatefulMbopublic void moveEventTrackingToHistory()
throws MXException,
java.rmi.RemoteException
moveEventTrackingToHistory in interface DMPackageDefRemoteMXExceptionjava.rmi.RemoteExceptionpublic void cantPerformOnLocked()
throws MXException,
java.rmi.RemoteException
cantPerformOnLocked in interface DMPackageDefRemoteMXExceptionjava.rmi.RemoteExceptionpublic boolean pkgContainsUserDefinedMOS()
throws MXException,
java.rmi.RemoteException
pkgContainsUserDefinedMOS in interface DMPackageDefRemoteMXExceptionjava.rmi.RemoteExceptionpublic void validateChangePkgDef()
throws MXException,
java.rmi.RemoteException
validateChangePkgDef in interface DMPackageDefRemoteMXExceptionjava.rmi.RemoteException