public class Organization extends Mbo implements OrganizationRemote
See Site description.
The key attribute for this object is OrgId.
The attributes in this object are as follows:
| Attribute Name | Description |
|---|---|
| Active | Y/N field indicates whether or not this site is active. |
BaseCurrency1 | Primary currency code.
|
BaseCurrency2 | Secondary currency code.
|
CompanySetId | Unique identifier of the company set. |
| Description | Description of the organization. Long description enabled. |
| EnterBy, EnterDate | User who created this organization and the date it was created. |
ItemSetId | Unique identifier of the item set. |
| LDKey | Long Description Key. This is a link to text stored in the LongDescription table. |
| OrgId | Unique identifier of the organization. |
MULTILANGCOPY, phantomList, phantomQueueALLROWS, 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 |
|---|
Organization(MboSet ms)
Constructs the Organization object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add()
Add a new Organization object.
|
void |
addAccountDefaultsRows(MboSetRemote accountDefaultsSet)
Add rows for account defaults when a new organization is added.
|
void |
addContractTypeRows(MboSetRemote contractTypeSet)
Add rows for contract type and property default when a new organization is added.
|
void |
addCraftRows(MboSetRemote craftSet)
Add rows for account defaults when a new organization is added.
|
void |
addItemGroupInfoRows()
09-15604
|
void |
addTaxOrderRows(MboSetRemote taxOrderSet)
Create tax order for this organization.
|
void |
addTaxTypeRows(MboSetRemote taxTypeSet)
Create the tax types for this organization.
|
void |
addWorkTypeRows(MboSetRemote workTypeSet)
Add rows for account defaults when a new organization is added.
|
void |
addWpEditSettingRows(MboSetRemote wpEditSettingSet)
Create the WP edit settings for this organization.
|
void |
appValidate()
Application validation routine called before the Organization object is saved.
|
void |
canDelete()
Determines if the object can be deleted.
|
void |
delete(long accessModifier)
Deletes the Organization and all related records.
|
void |
init()
Initialization routine.
|
void |
initFieldFlagsOnMbo(java.lang.String attrName)
The logic of setting the readonly and required field flags to the mbo.
|
void |
initRelationship(java.lang.String relationName,
MboSetRemote mboSet)
Specially treat the relationtionship MAXVARINPUTINVENTORYDEFAULTS.
|
boolean |
isCalibrationInstalled()
Return true if License Key CALIBRATION is installed.
|
static boolean |
isValidChar(java.lang.String checkString)
IV78202
Do not allow these characters in the organization name :
U+0027 ' ' Apostrophe 0008
|
void |
save()
Save cretes ItemOrgInfo records before calling super.save().
|
void |
undelete()
Undeletes the Organization and all related records.
|
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, blindCopy, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkRecordLock, checkSiteOrgAccessForSave, clear, clearRelatedSets, clearRelatedSets, commit, copy, copy, copy, copyFake, copyValue, copyValue, createComm, 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, 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, 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, undeleteDoclinks, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChangedclone, equals, finalize, 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, 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, unlock, unselect, validate, validateAttributespublic Organization(MboSet ms) throws MXException, java.rmi.RemoteException
ms - MXExceptionjava.rmi.RemoteExceptionpublic void init()
throws MXException
init in class MboMXExceptionpublic void initFieldFlagsOnMbo(java.lang.String attrName)
throws MXException
initFieldFlagsOnMbo in class MboMXExceptionpublic void add()
throws MXException,
java.rmi.RemoteException
| Attribute Name | Attribute Value |
|---|---|
| active | Yes |
| enterby | Current User |
| enterdate | System date/time |
add in interface MboRemoteadd in class MboMXExceptionjava.rmi.RemoteExceptionpublic void appValidate()
throws MXException,
java.rmi.RemoteException
appValidate in class MboMXApplicationException - baseCurrenciesEqual
| GROUP | KEY | REASON |
|---|---|---|
| site | baseCurrenciesEqual | if baseCurrency1 equals baseCurrency2 |
MXExceptionjava.rmi.RemoteExceptionOrganization.disableSites(psdi.mbo.MboSetRemote),
Organization.addWpEditSettingRows(psdi.mbo.MboSetRemote),
MaxVarsSet.addSiteOrgMaxvars(),
AutoKeySet.addOrgAutokeys()public void canDelete()
throws MXException,
java.rmi.RemoteException
canDelete in class MboMXApplicationException - cannotDelete
| GROUP | KEY | REASON |
|---|---|---|
| site | cannotDelete | if there are sites associated with this organization |
MXExceptionjava.rmi.RemoteExceptionpublic 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 void undelete()
throws MXException,
java.rmi.RemoteException
undelete in interface MboRemoteundelete in class MboMXExceptionjava.rmi.RemoteExceptionpublic void addWpEditSettingRows(MboSetRemote wpEditSettingSet) throws MXException, java.rmi.RemoteException
wpEditSettingSet - The set to which edit settings will be added.MXExceptionjava.rmi.RemoteExceptionpublic void addTaxTypeRows(MboSetRemote taxTypeSet) throws MXException, java.rmi.RemoteException
wpEditSettingSet - The set to which edit settings will be added.MXExceptionjava.rmi.RemoteExceptionpublic void addTaxOrderRows(MboSetRemote taxOrderSet) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void initRelationship(java.lang.String relationName,
MboSetRemote mboSet)
throws MXException,
java.rmi.RemoteException
initRelationship in class MboMXExceptionjava.rmi.RemoteExceptionpublic void addAccountDefaultsRows(MboSetRemote accountDefaultsSet) throws MXException, java.rmi.RemoteException
accountDefaultsSet - MXExceptionjava.rmi.RemoteExceptionpublic void addWorkTypeRows(MboSetRemote workTypeSet) throws MXException, java.rmi.RemoteException
accountDefaultsSet - MXExceptionjava.rmi.RemoteExceptionpublic void addCraftRows(MboSetRemote craftSet) throws MXException, java.rmi.RemoteException
accountDefaultsSet - MXExceptionjava.rmi.RemoteExceptionpublic void addContractTypeRows(MboSetRemote contractTypeSet) throws MXException, java.rmi.RemoteException
contractTypeSet - MXExceptionjava.rmi.RemoteExceptionpublic void save()
throws MXException,
java.rmi.RemoteException
save in class MboMXExceptionjava.rmi.RemoteExceptionpublic void addItemGroupInfoRows()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic boolean isCalibrationInstalled()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic static boolean isValidChar(java.lang.String checkString)