public class DMPackage extends StatefulMbo implements DMPackageRemote, FixedLoggers
onListTab, statusChangeButtonSigoption, targetStatusOption
MULTILANGCOPY, phantomList, phantomQueue
APPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGER
appenderPrefix, 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, loggerPrefix
ALLROWS, 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, setTargetStatusOption
addMboSetForRequiredCheck, 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, valueChanged
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canChangeMaxStatus, canChangeStatus, canChangeStatus, canDeleteAttachedDocs, changeMaxStatus, changeMaxStatus, changeStatus, changeStatus, checkForOpenStatus, getInternalStatus, getOnListTab, getOverridePVStatusException, getStatusChangeButtonSigoption, getStatusList, getTargetStatusOption, getValidStatusList, setOnListTab, setOverridePVStatusException, setStatusChangeButtonSigoption, setTargetStatusOption
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, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unlock, unselect, validate, validateAttributes
public DMPackage(MboSet ms) throws java.rmi.RemoteException
java.rmi.RemoteException
public void init() throws MXException
init
in class Mbo
MXException
public void add() throws MXException, java.rmi.RemoteException
add
in interface MboRemote
add
in class Mbo
MXException
java.rmi.RemoteException
public void canDelete() throws MXException, java.rmi.RemoteException
canDelete
in class Mbo
MXException
java.rmi.RemoteException
public void delete(long accessModifier) throws MXException, java.rmi.RemoteException
Mbo
delete
in interface MboRemote
delete
in class Mbo
accessModifier
- 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.MXException
java.rmi.RemoteException
Mbo.delete(long)
public void deleteForPreview(long accessModifier) throws MXException, java.rmi.RemoteException
deleteForPreview
in interface DMPackageRemote
MXException
java.rmi.RemoteException
public 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 DMPackageRemote
mosName
- 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.MXException
java.rmi.RemoteException
public java.lang.String getStatusListName()
getStatusListName
in interface StatefulMboRemote
getStatusListName
in class StatefulMbo
public 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 DMPackageRemote
changeStatus
in interface StatefulMboRemote
changeStatus
in class StatefulMbo
status
- progressStatus
- date
- memo
- accessModifier
- MXException
java.rmi.RemoteException
* @param status
public void canDistribute() throws MXException, java.rmi.RemoteException
canDistribute
in interface DMPackageRemote
MXException
java.rmi.RemoteException
public boolean distributeZipPackage() throws MXException, java.rmi.RemoteException
distributeZipPackage
in interface DMPackageRemote
MXException
java.rmi.RemoteException
public java.lang.String distributePackage() throws MXException, java.rmi.RemoteException
distributePackage
in interface DMPackageRemote
MXException
java.rmi.RemoteException
public void deployPackage(MboSetRemote pkgDefSet) throws MXException, java.rmi.RemoteException
deployPackage
in interface DMPackageRemote
pkgDefSet
- The package def set passed from UI. Used for writing longop
messages.MXException
java.rmi.RemoteException
public void getLongopPreviewOKMsg(java.lang.String pkgName, UserInfo ui, MboSetRemote defSet) throws java.lang.Exception
pkgName
- ui
- defSet
- java.lang.Exception
public 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 DMPackageRemote
status
- MaxValue of the status to change to.progressStatus
- MaxValue of the progress status to change toasOfDate
- The date of the status changememo
- MemoaccessModifier
- access flagMXException
java.rmi.RemoteException
public void previewLogger(java.lang.String pkgName, boolean load) throws MXException, java.rmi.RemoteException
pkgName
- load
- MXException
java.rmi.RemoteException
public void processPreviewXML(MXTransaction mxTrans, UserInfo ui, java.lang.String mos, byte[] content, boolean recordRollback) throws MXException, java.rmi.RemoteException
mxTrans
- mos
- rollbackpoint
- content
- MXException
java.rmi.RemoteException
public MboRemote confirmCompSrcDeployed() throws MXException, java.rmi.RemoteException
confirmCompSrcDeployed
in interface DMPackageRemote
MXException
java.rmi.RemoteException
public void closePkg() throws MXException, java.rmi.RemoteException
closePkg
in interface DMPackageRemote
MXException
java.rmi.RemoteException
public void uploadCompiledSrcFile(java.lang.String fileName, byte[] content) throws MXException, java.rmi.RemoteException
uploadCompiledSrcFile
in interface DMPackageRemote
fileName
- The compiled source file name.content
- Content of the fileMXException
java.rmi.RemoteException
public java.lang.String canDownloadPkg() throws MXException, java.rmi.RemoteException
canDownloadPkg
in interface DMPackageRemote
MXException
java.rmi.RemoteException
public java.lang.String canDownloadFile(MboRemote cmpSrc) throws MXException, java.rmi.RemoteException
canDownloadFile
in interface DMPackageRemote
MXException
java.rmi.RemoteException
public boolean getRedistribute() throws MXException, java.rmi.RemoteException
getRedistribute
in interface DMPackageRemote
java.rmi.RemoteException
MXException
public void setRedistribute(boolean isRedistribute)
isRedistribute
- public MboRemote getPackageDef() throws MXException, java.rmi.RemoteException
getPackageDef
in interface DMPackageRemote
MXException
java.rmi.RemoteException
public java.lang.String canDownloadPreviewLog() throws MXException, java.rmi.RemoteException
canDownloadPreviewLog
in interface DMPackageRemote
MXException
java.rmi.RemoteException
public java.lang.String canDownloadScriptLog() throws MXException, java.rmi.RemoteException
canDownloadScriptLog
in interface DMPackageRemote
MXException
java.rmi.RemoteException
public 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
- MXException
java.rmi.RemoteException
public void applyFix() throws MXException, java.rmi.RemoteException
applyFix
in interface DMPackageRemote
MXException
java.rmi.RemoteException