public class PlusCWODSPoint extends Mbo implements PlusCWODSPointRemote
MULTILANGCOPY, phantomList, phantomQueue
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 |
---|
PlusCWODSPoint(MboSet ms)
Instantiates a new plus cwods point.
|
Modifier and Type | Method and Description |
---|---|
void |
add()
This is called when a new Mbo is added to the Mboset collection.
|
void |
appValidate()
Pre-save validation method.
|
void |
canDelete()
Can the object be deleted ?
This is object specific and should be overridden.
|
protected boolean |
getBoolean(java.lang.String attribute,
boolean valueIfNull)
Returns the given attributes boolean value, or
valueIfNull
if the attribute is null. |
MboRemote |
getGroupAveragePoint()
Returns the Average point for the group of points to which this point
belongs.
|
MboRemote[] |
getGroupPoints()
Returns all points in this point's group (including itself) in an array.
|
MboSetRemote |
getMboSet(java.lang.String name)
Returns the MBOSet with the given name.
|
MboRemote |
getMyInstrOwner()
Gets the my instr owner.
|
MboRemote |
getOwner()
Return the owner of mbo
|
protected MboRemote[] |
getPointsFromGroup(boolean isAverage)
Returns all points in the current set that are from the same group,
either the average one or the non-average ones.
|
void |
init()
Called by the framework when the Mbo has been constructed and the
MboValues have been initialized.
|
void |
propagateKeyValue(java.lang.String keyName,
java.lang.String keyValue)
Method for propagating key value.
|
void |
save()
Save the object and other linked objects.
|
void |
setDSRequiredStatus(boolean cleared)
Sets the read-only status of the datasheets's REQUIRED field according to
whether its points' as found/left data are filled.
|
void |
setReadOnlyFields()
Sets the read only fields.
|
void |
setReadOnlyFieldsAfterAdd()
This method sets the read-only flags for fields that can't be read-only
during the add process.
|
void |
setValue(java.lang.String attributeName,
java.lang.String val,
long accessModifier)
NOTE: This method was overwritten due to the fact that some fields are
READONLY in this mbo but in mobile synchronism process, they are seted.
|
void |
setValueNull(java.lang.String attributeName,
long accessModifier)
NOTE: This method was overwritten due to the fact that some fields are
READONLY in this mbo but in mobile synchronism process, they are seted.
|
protected boolean |
skipCopyField(MboValueInfo mvi) |
java.lang.String |
toExternalDefaultValue(java.lang.String sValuelist,
java.lang.String sUserValue)
To external default value.
|
java.lang.String |
toInternalString(java.lang.String sValuelist,
java.lang.String sUserValue)
To internal string.
|
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, blindCopy, 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, getMboSetInfo, getMboSetInfo, getMboValue, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, 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, removeCtx, removeRelatedSet, resolveNoSqlWhere, rollbackToCheckpoint, 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, setValueFromSequence, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, throwRequiredException, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, undeleteDoclinks, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChanged
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, 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, 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, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unlock, unselect, validate, validateAttributes
public PlusCWODSPoint(MboSet ms) throws MXException, java.rmi.RemoteException
ms
- the msMXException
- the mX exceptionjava.rmi.RemoteException
- the remote exceptionpublic void init() throws MXException
Mbo
init
in class Mbo
MXException
public void add() throws MXException, java.rmi.RemoteException
Mbo
add
in interface MboRemote
add
in class Mbo
MXException
java.rmi.RemoteException
public void canDelete() throws MXException, java.rmi.RemoteException
Mbo
canDelete
in class Mbo
MXException
java.rmi.RemoteException
protected boolean skipCopyField(MboValueInfo mvi) throws java.rmi.RemoteException, MXException
skipCopyField
in class Mbo
java.rmi.RemoteException
MXException
public void propagateKeyValue(java.lang.String keyName, java.lang.String keyValue) throws MXException, java.rmi.RemoteException
Mbo
propagateKeyValue
in interface MboRemote
propagateKeyValue
in class Mbo
MXException
java.rmi.RemoteException
public java.lang.String toInternalString(java.lang.String sValuelist, java.lang.String sUserValue) throws MXException, java.rmi.RemoteException
PlusCWODSPointRemote
toInternalString
in interface PlusCWODSPointRemote
sValuelist
- the s valuelistsUserValue
- the s user valueMXException
- the mX exceptionjava.rmi.RemoteException
- the remote exceptionpublic java.lang.String toExternalDefaultValue(java.lang.String sValuelist, java.lang.String sUserValue) throws MXException, java.rmi.RemoteException
PlusCWODSPointRemote
toExternalDefaultValue
in interface PlusCWODSPointRemote
sValuelist
- the s valuelistsUserValue
- the s user valueMXException
- the mX exceptionjava.rmi.RemoteException
- the remote exceptionpublic MboRemote getMyInstrOwner() throws MXException, java.rmi.RemoteException
PlusCWODSPointRemote
getMyInstrOwner
in interface PlusCWODSPointRemote
MXException
- the mX exceptionjava.rmi.RemoteException
- the remote exceptionprotected boolean getBoolean(java.lang.String attribute, boolean valueIfNull) throws MXException, java.rmi.RemoteException, MXApplicationException
valueIfNull
if the attribute is null.attribute
- name of attribute to getvalueIfNull
- value if attribute is nullMXException
- the mX exceptionjava.rmi.RemoteException
- the remote exceptionMXApplicationException
- the mX application exceptionpublic void setReadOnlyFields() throws MXException, java.rmi.RemoteException
PlusCWODSPointRemote
setReadOnlyFields
in interface PlusCWODSPointRemote
MXException
- the mX exceptionjava.rmi.RemoteException
- the remote exceptionpublic void setReadOnlyFieldsAfterAdd() throws MXException, java.rmi.RemoteException
setDatabaseDefaultValues()
method is called
after add()
.setReadOnlyFieldsAfterAdd
in interface PlusCWODSPointRemote
MXException
- the mX exceptionjava.rmi.RemoteException
- the remote exceptionpublic void save() throws MXException, java.rmi.RemoteException
Mbo
save
in class Mbo
MXException
java.rmi.RemoteException
public void setValue(java.lang.String attributeName, java.lang.String val, long accessModifier) throws MXException, java.rmi.RemoteException
setValue
in interface MboRemote
setValue
in class Mbo
attributeName
- the attribute nameval
- the valaccessModifier
- the access modifierMXException
- the mX exceptionjava.rmi.RemoteException
- the remote exceptionMbo.setValue(String,String,long)
public void setValueNull(java.lang.String attributeName, long accessModifier) throws MXException, java.rmi.RemoteException
setValueNull
in interface MboRemote
setValueNull
in class Mbo
attributeName
- the attribute nameaccessModifier
- the access modifierMXException
- the mX exceptionjava.rmi.RemoteException
- the remote exceptionMbo.setValueNull(String,long)
public void setDSRequiredStatus(boolean cleared) throws java.rmi.RemoteException, MXException
cleared
argument indicates whether the field's content has been set to empty (true
)
or not empty (false
).setDSRequiredStatus
in interface PlusCWODSPointRemote
cleared
- whether the field's content has been set to empty (true
)
or not empty (false
).java.rmi.RemoteException
- the remote exceptionMXException
- the mX exceptionpublic MboSetRemote getMboSet(java.lang.String name) throws MXException, java.rmi.RemoteException
getMboSet
in interface MboRemote
getMboSet
in class Mbo
name
- the nameMXException
- the mX exceptionjava.rmi.RemoteException
- the remote exceptionMbo.getMboSet(java.lang.String)
public MboRemote getGroupAveragePoint() throws java.rmi.RemoteException, MXException
getGroupAveragePoint
in interface PlusCWODSPointRemote
java.rmi.RemoteException
- the remote exceptionMXException
- the mX exceptionpublic MboRemote[] getGroupPoints() throws java.rmi.RemoteException, MXException
PlusCWODSPointRemote
getGroupPoints
in interface PlusCWODSPointRemote
java.rmi.RemoteException
- the remote exceptionMXException
- the mX exceptionprotected MboRemote[] getPointsFromGroup(boolean isAverage) throws MXException, java.rmi.RemoteException
isAverage
- whether to return the average mbo or the other onesMXException
- the mX exceptionjava.rmi.RemoteException
- the remote exceptionpublic void appValidate() throws MXException, java.rmi.RemoteException
Mbo
appValidate
in class Mbo
MXException
java.rmi.RemoteException