public class PromoteNode extends Mbo implements PromoteNodeRemote, PromoteSetAttributeFlags
PromoteNode (PROMOTE object) is based on a view showing DPLDASSET values, but it also has non-peristent attributes
showing | Attribute Name | Description |
|---|---|
| ASSETCLASS | Asset Class |
| ASSETNUM | Asset linked through reconciliation links |
| ASSETSITEID | Site of asset linked through reconciliation links |
CLASSSTRUCTUREID | Classification for created assets |
| DESCRIPTION | Description |
| DOMAINNAME | Domain Name |
DPLDSITEID | Site Id |
| GUID | Actual CI's GUID |
ITEMNUM | Item number for created rotating assets |
LOCATION | Location to which created assets will be assigned. Location of parent is used if parent is known. |
| NODEID | Node Id |
NODENAME | Node Name |
| ORGID | Organization for created assets |
| PARENTASSETNUM | Asset linked through reconciliation links to parent node. This asset will be the parent of the promoted asset. |
| PARENTSITEID | Site of parent asset. If present, this site will be used for the promoted asset. |
| PROMOTECHILDREN | If checked, promote all child partitions along with these nodes, regardless of whether they were selected in the Computers list. This field will be enabled when children exist for the node. |
| SERIALNUMBER | Serial Number |
SITEID | Site for created assets |
| STATUS | Initial status for created assets |
| HASH | The unique ID which is used to identify a partition from a discovery perspective. This field can be used by reconciliation to link and audit authorized partitions. |
| ISPROMOTED | Promoted? |
| PARENTID | Parent Node Id |
| PARTITION | If this is a partition? |
| PLATFORMBASE | Indicates if the computer is distributed or mainframe |
#PromoteValues| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String[] |
alwaysReadOnly |
protected AssetRemote |
asset |
protected int |
defaultsStatus |
protected DeployedAssetRemote |
deployedAsset |
static java.lang.String |
MSG_GROUP_PROMOTION |
protected AssetRemote |
parentAsset |
static MXLogger |
PROMOTION_LOGGER |
protected static java.lang.String[] |
readonlyFields_whenChild |
protected static java.lang.String[] |
readonlyFields_whenLinked |
MULTILANGCOPY, phantomList, phantomQueueASSET, CHILDREN, COMPUTERSYSTEM, DEFAULTS_NOERROR, DEPLOYEDASSET, PARENTASSET, STATUS_ALREADY_LINKED, STATUS_ALREADY_PROMOTED, STATUS_NEWLY_PROMOTED, STATUS_NOT_SET, STATUS_PROMOTION_ERRORALLROWS, 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 |
|---|
PromoteNode(MboSet ms)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCreatedMemo()
Update the memo for the asset creation transaction to reflect the fact that this asset was promoted.
|
protected java.lang.String |
addPromoteLogInformation()
Add additional log information
Place holder for the extension to extend this class and write information to the log.
|
protected void |
applyDefaultAttribute(PromoteValuesRemote defaults,
java.lang.String attributeName)
Set the attribute of promoteNode to the current value of the attribute if it is not read only on
promoteNode, otherwise leave as is.
|
void |
assetLinkedSetReadOnlyAttr()
If an authorized asset is already linked, then no promotion attributes can be set
|
void |
clearClassification()
Set classstructureid to null from Clear Classification in Classification menu.
|
protected void |
createPromotedAsset(boolean topLevelSelection)
Creates promoted asset.
|
protected void |
createReconLink(MboRemote assetMbo)
Creates a reconciliation link (reconlink) from the computer referenced by this record
to the asset passed in.
|
protected java.lang.String |
getClassificationErrorMsgKey() |
DeployedAssetRemote |
getDeployedAsset()
Gets and caches computer linked through nodeid.
|
AssetRemote |
getLinkedAsset()
Gets and caches a reference to the asset linked through reconlinks.
|
AssetRemote |
getLinkedParentAsset(boolean promoting)
Gets and caches linked parent asset through reconlinks.
|
protected java.lang.String |
getNewDomainValue(java.lang.String domain,
java.lang.String externalValue,
MboRemote mbo)
If the value is appropriate to mbo, returns the value, otherwise
returns the default external value for the mbo taken from the maxvalue of value.
|
protected boolean |
hasDeployedChildren()
Get the itcategory external default value using the site / org of the mbo passed in.
|
void |
init()
Set field flags.
|
protected boolean |
isPartition()
Get the itcategory external default value using the site / org of the mbo passed in.
|
protected boolean |
isPromoted()
Use the tloamispromoted to determine if node was previously promoted.
|
int |
promote(PromoteValuesRemote defaults,
boolean topLevelSelection,
boolean promotedByParent)
Promote nodes and optionally their children using the default values passed.
|
protected PromoteNodeSetRemote |
promoteChildren(PromoteValuesRemote defaults)
Promotes all the children of this node
|
void |
setAttributeFlags() |
protected boolean |
setDefaults(PromoteNodeRemote child,
PromoteValuesRemote defaults)
set Defaults
|
int |
setDefaults(PromoteValuesRemote defaults,
boolean fromApplyDefaultsButton)
For the promotion values section of the promotion dialog, set the defaults as allowed and needed.
|
void |
setDeployedAsset(DeployedAssetRemote deployedAsset)
Set computer reference and related field values and flags.
|
void |
setLinkedAsset(AssetRemote assetMbo)
Set asset reference and related field values and flags.
|
void |
setLinkedParentAsset(AssetRemote assetMbo)
Sets linked parent asset and associated field values and flags.
|
void |
setPromotedTrue()
Set the tloamispromoted flag to true on the related computer record.
|
protected void |
verifySizeCopy(java.lang.String deployedAssetAttribute,
java.lang.String assetAttribute)
Copy an attribute value from the deployed asset to the asset object, throwing an exception if the
source data ius too large to fit
|
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, 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, 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, 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 static MXLogger PROMOTION_LOGGER
public static final java.lang.String MSG_GROUP_PROMOTION
protected AssetRemote asset
protected AssetRemote parentAsset
protected DeployedAssetRemote deployedAsset
protected static final java.lang.String[] alwaysReadOnly
protected int defaultsStatus
protected static final java.lang.String[] readonlyFields_whenLinked
protected static final java.lang.String[] readonlyFields_whenChild
public PromoteNode(MboSet ms) throws MXException, java.rmi.RemoteException
ms - PromotionEscalation setMXExceptionjava.rmi.RemoteExceptionpublic void init()
throws MXException
init in class MboMXExceptionpublic int promote(PromoteValuesRemote defaults, boolean topLevelSelection, boolean promotedByParent) throws MXException, java.rmi.RemoteException
promote in interface PromoteNodeRemotedefaults - the default values to applytopLevelSelection - defect 31698 - make the promoted node aware if it is promoted directly, or as a result of
the Promote Children flagpromotedByParent - - if this is a child which is promoted because the parent is promoted.MXExceptionjava.rmi.RemoteExceptionprotected java.lang.String addPromoteLogInformation()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionprotected boolean isPromoted()
throws java.rmi.RemoteException,
MXException
java.rmi.RemoteExceptionMXExceptionpublic void setPromotedTrue()
throws java.rmi.RemoteException,
MXException
java.rmi.RemoteExceptionMXExceptionpublic AssetRemote getLinkedAsset() throws java.rmi.RemoteException, MXException
getLinkedAsset in interface PromoteNodeRemoteMXApplicationException - if there is no asset for reconlinkjava.rmi.RemoteExceptionMXExceptionPromoteNode.setLinkedAsset(AssetRemote)public void setLinkedAsset(AssetRemote assetMbo) throws java.rmi.RemoteException, MXException
setLinkedAsset in interface PromoteNodeRemoteassetMbo - java.rmi.RemoteExceptionMXExceptionpublic void setDeployedAsset(DeployedAssetRemote deployedAsset) throws java.rmi.RemoteException, MXException
setDeployedAsset in interface PromoteNodeRemoteassetMbo - java.rmi.RemoteExceptionMXExceptionprotected boolean isPartition()
throws MXException,
java.rmi.RemoteException
assetMbo - MXExceptionjava.rmi.RemoteExceptionprotected boolean hasDeployedChildren()
throws MXException,
java.rmi.RemoteException
assetMbo - MXExceptionjava.rmi.RemoteExceptionpublic void setLinkedParentAsset(AssetRemote assetMbo) throws java.rmi.RemoteException, MXException
setLinkedParentAsset in interface PromoteNodeRemoteassetMbo - java.rmi.RemoteExceptionMXExceptionpublic AssetRemote getLinkedParentAsset(boolean promoting) throws java.rmi.RemoteException, MXException
getLinkedParentAsset in interface PromoteNodeRemotepromoting - true if there must be a parent of a childMXApplicationException - if parent node does not have a reconlink,
or if reconlink does not refer to an asset.java.rmi.RemoteExceptionMXExceptionpublic DeployedAssetRemote getDeployedAsset() throws java.rmi.RemoteException, MXException
getDeployedAsset in interface PromoteNodeRemoteMXApplicationException - if computer cannot be found.java.rmi.RemoteExceptionMXExceptionpublic int setDefaults(PromoteValuesRemote defaults, boolean fromApplyDefaultsButton) throws java.rmi.RemoteException, MXException
setDefaults in interface PromoteNodeRemotesiteid - Name of site from Promotion Valuesjava.rmi.RemoteExceptionMXExceptionprotected void applyDefaultAttribute(PromoteValuesRemote defaults, java.lang.String attributeName) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionprotected void createPromotedAsset(boolean topLevelSelection)
throws java.rmi.RemoteException,
MXException
PromoteNode.getLinkedAsset() to get the asset created.java.rmi.RemoteExceptionMXExceptionprotected java.lang.String getClassificationErrorMsgKey()
protected void verifySizeCopy(java.lang.String deployedAssetAttribute,
java.lang.String assetAttribute)
throws java.rmi.RemoteException,
MXException
deployedAssetAttribute - The name of the source deployed asset attributeassetAttribute - The name of the targer asset attributejava.rmi.RemoteExceptionMXExceptionpublic void addCreatedMemo()
throws java.rmi.RemoteException,
MXException
addCreatedMemo in interface PromoteNodeRemotejava.rmi.RemoteExceptionMXExceptionprotected PromoteNodeSetRemote promoteChildren(PromoteValuesRemote defaults) throws java.rmi.RemoteException, MXException
promoteDefault - - promotion values of parentjava.rmi.RemoteExceptionMXExceptionprotected boolean setDefaults(PromoteNodeRemote child, PromoteValuesRemote defaults) throws java.rmi.RemoteException, MXException
child - - child nodedefaults - - defaults valuesjava.rmi.RemoteExceptionMXExceptionprotected java.lang.String getNewDomainValue(java.lang.String domain,
java.lang.String externalValue,
MboRemote mbo)
throws MXException
domain - nameexternalValue - to be checked and / or translatedmbo - to be checked againstMXExceptionprotected void createReconLink(MboRemote assetMbo) throws java.rmi.RemoteException, MXException
assetMbo - java.rmi.RemoteExceptionMXExceptionpublic void clearClassification()
throws MXException
MXExceptionpublic void setAttributeFlags()
throws MXException,
java.rmi.RemoteException
setAttributeFlags in interface PromoteSetAttributeFlagsMXExceptionjava.rmi.RemoteExceptionpublic void assetLinkedSetReadOnlyAttr()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteException