public class SoftwareCatalog extends Mbo implements SoftwareCatalogRemote
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FILTER_TYPE_CHILDRELATION
make the selected records product parents of the current main record
|
static java.lang.String |
FILTER_TYPE_CHILDRELEASE
make the selected records hierarchical release children of the current main record (which must be a version)
|
static java.lang.String |
FILTER_TYPE_CHILDVERSION
make the selected records hierarchical version children of the current main record (which must be a release)
|
static java.lang.String |
FILTER_TYPE_CONVERSIONVARIANT
make the selected records conversion variants of the current main record
|
static java.lang.String |
FILTER_TYPE_PARENTRELATION
make the selected records product children of the current main record
|
MULTILANGCOPY, phantomList, phantomQueueUNIQUE_ID_COMPONENTS, UNIQUE_ID_SEPARATOR, VER_REL_SEPARATORALLROWS, 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 |
|---|
SoftwareCatalog(MboSet ms)
The boilerplate constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
add()
Set isreviewed and make it Read-Only.
|
void |
canDelete()
Do not allow the entry to be deleted if there is any reference to it
|
static java.lang.String |
combineSubClauses(java.lang.String[] subClauses)
Utility method to combine sub-clauses into one clause, joining them with the operator "and"
|
void |
delete(long accessModifier)
If this is a variant then disassociate it.
|
java.lang.String |
generateUniqueId()
Generate a "unique" ID for this MBO.
|
static java.lang.String |
generateUniqueId(java.lang.String swname,
java.lang.String version,
java.lang.String release,
java.lang.String manufacturer,
java.lang.String unknownString)
Generate a "unique" ID based on four parameters:
For SWNAME, VERSION, RELEASE, MANUFACTURER,
Replace nulls parameters with with empty strings
Set SWNAME := TRIM(SWNAME);
Set VERSION := TRIM(VERSION);
Set RELEASE := TRIM(RELEASE);
Set MANUFACTURER := TRIM(MANUFACTURER);
If (RELEASE is empty) then {Set VERREL := VERSION} else {Set VERREL := VERSION + '.' + RELEASE};
// note that if version is empty there will be two adjacent | characters
If (SWNAME is empty) then SWNAME := [dpa_unknown property value];
If (VERREL is empty) then VERREL := [dpa_unknown property value];
// Note that if version is empty but release is not, there will not be UNKKNOWN in the place of version
If (MANUFACTURER is empty) then MANUFACTURER := [dpa_unknown property value];
Set uniqueid := UPPERCASE(SWNAME + '|' + VERREL + '|' + MANUFACTURER);
|
static MboRemote |
getCatalogRecord(long tloamsoftwareid,
UserInfo userInfo)
Retrieve from the database the catalog record based on its unique TLOAMSOFTWAREID
|
static java.lang.String |
getFilterClause(java.lang.String requestedType) |
SoftwareCatalogRemote |
getParent()
Get Parent in the Product-Version-Release hierarchy
|
java.lang.String |
getVuiExhibitID()
Get the Value Unit Exhibit List ID.
|
void |
init()
Manage read-only attributes based on if this is a new object, or an imported one.
|
void |
modify()
Set the hidden unique key as many times as needed
|
void |
save()
Always force the reviewed flag on manual save.
|
void |
setNameAndTypeReadOnly()
Make the fields SWNAME and TYPE of this MBO read-only if this MBO is a main record
|
boolean |
toBeSaved()
If disassociating a variant or breaking the hierarchy, always save; otherwise return base implementation
|
void |
undelete()
If this is a variant then reassociate it.
|
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, fireEvent, generateAutoKey, generateContentUID, getAlwaysFlags, getAttrRestrictionFlag, getAttrRestrictions, getBoolean, getByte, getBytes, getCheckpoint, getClientLocale, getClientTimeZone, getCommLogOwnerNameAndUniqueId, getCondition, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainFilterWhere, getDomainIDs, getDouble, getExistingMboSet, getFetchIndex, getFieldExceptions, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertSite, getInstanciatedMboSet, getInstanciatedMboValue, getInt, getIntegrationService, getKeyValue, getLanguageRecordRowStamp, getLinesRelationship, getList, getLockedByDisplayName, getLockedByUserID, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboData, getMboDataSet, getMboForAttribute, getMboForAttributeStatic, getMboInitialValue, getMboList, getMboLogger, getMboRecordData, getMboServer, getMboSet, getMboSet, getMboSet, getMboSetInfo, getMboValue, getMboValueData, getMboValueData, getMboValueData, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getProfile, getPropagateKeyFlag, getProxy, getRecordIdentifer, getRecordMboName, getRelatedWhere, getRelatedWhere, getRelationshipNameToLangTable, getRowRestrictionFlag, getRowStamp, getSecurityLogger, getSiteOrg, getSqlLogger, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getSynonymValueWhere, getTenantId, getThisMboSet, getTranslator, getUniqueIdentifer, getUniqueIDName, getUniqueIDValue, getUserInfo, getUserName, getValidateOrder, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, initFieldFlagsOnMbo, initRelationship, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, isEAuditFieldModified, isESigFieldModified, isFlagSet, isForDM, isLocked, isLocked, isLockedByMe, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNull, isOptionGranted, isSelected, isSkipCopyField, isValid, isZombie, lock, moveFieldFlagsToMboValue, needCallInitFieldFlag, orEvaluateConditions, propagateKeyValue, removeRelatedSet, rollbackToCheckpoint, select, setAppDefaultValue, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDefaultValue, setDefaultValues, setDeleted, setEAuditFieldModified, setESigFieldModified, setFetchIndex, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setHierarchyLink, setIgnoreRecordLockCheck, setLangCodeDefault, setMLValue, setModified, setNewMbo, setPropagateKeyFlag, setPropagateKeyFlag, setProxy, setReadonlyWhenParentIsReadonly, setReferencedMbo, setReferencedMbo, 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, toBeUpdated, toBeValidated, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChangedequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddMboSetForRequiredCheck, 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, 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, toBeUpdated, toBeValidated, unlock, unselect, validate, validateAttributespublic static final java.lang.String FILTER_TYPE_CHILDVERSION
public static final java.lang.String FILTER_TYPE_CHILDRELEASE
public static final java.lang.String FILTER_TYPE_PARENTRELATION
public static final java.lang.String FILTER_TYPE_CHILDRELATION
public static final java.lang.String FILTER_TYPE_CONVERSIONVARIANT
public SoftwareCatalog(MboSet ms) throws MXException, java.rmi.RemoteException
ms - MXExceptionjava.rmi.RemoteExceptionpublic void init()
throws MXException
Restrict the editability of TYPE if conditions are met
Make ISREVIEWED field Read-Only if its value is TRUE
init in class MboMXExceptionpublic void setNameAndTypeReadOnly()
throws MXException,
java.rmi.RemoteException
setNameAndTypeReadOnly in interface SoftwareCatalogRemoteMXExceptionjava.rmi.RemoteExceptionpublic void add()
throws MXException,
java.rmi.RemoteException
add in interface MboRemoteadd in class MboMXExceptionjava.rmi.RemoteExceptionpublic boolean toBeSaved()
throws java.rmi.RemoteException
public java.lang.String generateUniqueId()
throws java.rmi.RemoteException,
MXException
generateUniqueId in interface SoftwareCatalogRemotejava.rmi.RemoteExceptionMXExceptionpublic static java.lang.String generateUniqueId(java.lang.String swname,
java.lang.String version,
java.lang.String release,
java.lang.String manufacturer,
java.lang.String unknownString)
throws java.rmi.RemoteException,
MXException
java.rmi.RemoteExceptionMXExceptionpublic void modify()
throws MXException,
java.rmi.RemoteException
modify in class MboMXExceptionjava.rmi.RemoteExceptionMbo.modify()public void save()
throws MXException,
java.rmi.RemoteException
java.rmi.RemoteExceptionMXExceptionpublic void delete(long accessModifier)
throws MXException,
java.rmi.RemoteException
delete in interface MboRemotedelete in class Mbolong - MXExceptionjava.rmi.RemoteExceptionMbo.delete(long)public void undelete()
throws MXException,
java.rmi.RemoteException
undelete in interface MboRemoteundelete in class Mbolong - MXExceptionjava.rmi.RemoteExceptionpublic void canDelete()
throws MXException,
java.rmi.RemoteException
canDelete in class MboMXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getVuiExhibitID()
throws MXException,
java.rmi.RemoteException
getVuiExhibitID in interface SoftwareCatalogRemoteMXExceptionjava.rmi.RemoteExceptionpublic SoftwareCatalogRemote getParent() throws MXException, java.rmi.RemoteException
getParent in interface SoftwareCatalogRemoteMXExceptionjava.rmi.RemoteExceptionpublic static java.lang.String getFilterClause(java.lang.String requestedType)
public static java.lang.String combineSubClauses(java.lang.String[] subClauses)
subClauses - an array of sub-clauses to be combinedpublic static MboRemote getCatalogRecord(long tloamsoftwareid, UserInfo userInfo) throws java.rmi.RemoteException, MXException
tloamsoftwareid - - the key value for TLOAMSOFTWARE.TLOAMSOFTWAREIDuserInfo - - the user credentials to retrieve the MBOMXExceptionjava.rmi.RemoteException