public abstract class AbstractMemberMediator extends AbstractBusinessObjectMediator
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String | EXTERNAL_NAME_REGISTRATIONAPPROVALSTATUS
ValueMappingService external names
|
Constructor and Description |
---|
AbstractMemberMediator() |
Modifier and Type | Method and Description |
---|---|
protected boolean | checkUserId(java.lang.String userId)
Checks whether the specified user id exists.
|
void | close()
This method will perform cleanup on the business object mediator.
|
protected java.util.List<TableDataObject> | deleteAttributeValue(java.lang.String memberId, java.lang.String attributeId)
Deletes all attribute values for a given member ID and a given attribute ID
|
protected boolean | deleteMBRRELIfAncestorChanged(java.lang.String memberId, java.lang.String newAncestorId)
Deletes existing ancestor relationships for a given member ID if the ancestor has changed.
|
protected java.lang.Double | doubleValueOf(java.lang.String stringValue, java.lang.String stringName)
Returns the Double value of a string.
|
protected java.lang.String[] | getAttributeAndTypeId(java.lang.String attributeName)
Gets the attribute ID and attribute type ID from the cache for a given attribute name.
|
protected java.lang.String | getContextCurrency()
Gets the currency in business context.
|
protected java.lang.Integer | getContextLanguageID()
Gets the language id in business context.
|
protected java.lang.Integer | getContextStoreID()
Gets the store id in business context.
|
protected java.lang.Character | getInternalCharacterValue(java.lang.Object externalName, java.lang.Object externalValue)
This method returns the internal Character value to the specified external value.
|
protected java.lang.Integer | getInternalIntegerValue(java.lang.Object externalName, java.lang.Object externalValue)
This method returns the internal Integer value to the specified external value.
|
protected java.lang.String | getInternalLogonId(java.lang.String logonId, java.lang.String logonIdPrefix)
Gets the internal logon id which is the external logon id prepended with an internal prefix.
|
protected java.lang.Integer | getLanguageID()
Gets the language id.
|
protected java.lang.Object | getMemberNoun()
Gets the member noun.
|
protected java.lang.String | getOrgDN(java.lang.String orgId)
Gets org distinguished name from org id.
|
protected java.lang.String | getOrgEntityName(java.lang.String orgId)
Gets org entity name from org id.
|
protected java.lang.String | getOrgEntityType(java.lang.String orgId)
Gets org entity type from org id.
|
protected java.lang.String | getOrgId(java.lang.String orgDN)
Gets org id from org distinguished name.
|
protected java.lang.String | getParentOrgId(java.lang.String orgId)
Gets parent org id from org id.
|
protected java.util.ResourceBundle | getResourceBundle()
Answers the resource bundle.
|
protected java.lang.String | getResourceString(java.lang.String key)
Answers the named resource from this ResourceBundle.
|
protected java.lang.String | getRootOwnerId()
Gets the tenant root organization id.
|
protected java.lang.String | getStoreField1(java.lang.Integer storeId)
Gets the store field1 by store id.
|
protected java.util.Map<java.lang.String,java.util.List<java.lang.Long>> | getStoreMap()
Gets the store map.
|
protected ValueMappingService | getValueMappingService()
Gets the value mapping service for the component.
|
void | init()
This method performs initialization for the member mediator.
|
protected void | initStoreMap()
This method initializes the store map which maps store tag to list of store owner id.
|
protected java.lang.Integer | integerValueOf(java.lang.String stringValue, java.lang.String stringName)
Returns the Integer value of a string.
|
protected boolean | isLogonIsolation()
Whether or not to implement logon isolation.
|
protected boolean | isMemberRoleUnderOrgRoot(java.lang.String memberId)
Answers whether a member's role is fully under the current organization root.
|
protected boolean | isSetContactInfo(ContactInfoType contactInfo)
Checks whether or not the contact information is set.
|
protected boolean | isValidateEmailAddress()
Whether or not to validate the email address syntax.
|
protected boolean | isValidateScope()
Whether or not to validate if a business object is under the current organization root.
|
protected java.lang.Long | longValueOf(java.lang.String stringValue, java.lang.String stringName)
Returns the Long value of a string.
|
protected java.lang.Long | populateADDRBOOK(java.lang.String memberId, boolean idResolve, boolean cacheFlag, boolean deleteFlag)
Populates the physical object of ADDRBOOK table for a member.
|
protected TableDataObject | populateADDRBOOK(java.lang.String memberId, java.lang.String type, java.lang.String displayName, java.lang.String description, boolean cacheFlag, boolean deleteFlag)
Populates the physical object of ADDRBOOK table.
|
protected TableDataObject | populateADDRESS(ContactInfoType contactInfo, java.lang.String memberId, java.lang.Long addrBookId, java.lang.String defaultNickname, java.lang.Integer selfAddress, boolean markFlag, boolean deleteFlag)
Populates the physical object of ADDRESS table.
|
protected java.util.List<TableDataObject> | populateMBRATTRVAL(java.lang.String memberId, AttributeType attribute)
Populates a list of rows in MBRATTRVAL table.
|
protected java.util.List<TableDataObject> | populateMBRATTRVAL(java.lang.String memberId, java.lang.String attrbuteId, java.lang.String attrTypeId, java.lang.String attrName, AttributeValueType attributeValue)
Populates a list of rows in MBRATTRVAL table.
|
protected TableDataObject | populateMBRATTRVAL(java.lang.String memberId, java.lang.String attrbuteId, java.lang.String attrTypeId, java.lang.String attrName, java.lang.String storeId, java.lang.String value)
Populates one row in MBRATTRVAL table.
|
protected TableDataObject | populateMBRREL(java.lang.String ancestorId, java.lang.String descendantId, java.lang.Integer sequence, boolean deleteFlag)
Populates the physical object of MBRREL table.
|
protected TableDataObject | populateMBRROLE(java.lang.String memberId, java.lang.String roleId, java.lang.Long orgEntityId, boolean deleteFlag)
Populates the physical object of MBRROLE table.
|
protected TableDataObject | populateMEMBER(java.lang.String memberId, java.lang.String type, java.lang.Integer state, boolean deleteFlag)
Populates the physical object of MEMBER table.
|
protected void | putOrgMap(java.lang.String orgId, java.lang.String[] orgInfo)
Puts org info into cache map.
|
protected java.lang.Long | resolveAddrBookId(java.lang.String memberId)
Resolves address book unique id from member id.
|
protected java.lang.String | resolveIdOrNull(java.lang.String tableName, java.util.Map uniqueIndexValueMap, boolean bGenerateNewKey)
This method will resolve identifiers for a physical object.
|
protected java.util.Map | resolveIdsOrNull(java.lang.String tableName, java.util.Map uniqueIndexValueMap, boolean bGenerateNewKey)
This method will resolve identifiers for a physical object with multiple primary key columns.
|
protected java.lang.String | resolveOrgDN(OrganizationIdentifierType organizationIdentifier, java.lang.String defaultOrgId)
Resolves the orgEntity DN for a given Organization Identifier.
|
protected java.lang.String | resolveOrgId(OrganizationType organization)
Resolves the orgEntity ID for a given Organization noun.
|
protected java.lang.String | resolveOrgId(java.lang.String orgDN)
Resolves org unique id from org distinguished name.
|
protected java.lang.String | resolveUserId(PersonType person)
Deprecated.
|
protected java.lang.String | resolveUserId(PersonType person, java.lang.String logonId)
Resolves the user ID for a given Person noun.
|
protected java.lang.String | resolveUserIdByDN(java.lang.String userDN)
Resolves user unique id from user distinguished name.
|
protected java.lang.String | resolveUserIdByLogonId(java.lang.String logonId)
Resolves user unique id from user logon id.
|
protected void | setLanguageID(java.lang.Integer languageId)
Sets the language id.
|
protected void | setLanguageID(java.lang.String languageId)
Sets the language id.
|
protected void | setMemberNoun(java.lang.Object dataObject)
Sets the member noun.
|
protected java.lang.Short | shortValueOf(java.lang.String stringValue, java.lang.String stringName)
Returns the Short value of a string.
|
protected void | validateMemberGroupIdKeyRange(java.lang.String memberGroupId)
Validates the member group id in a right key range.
|
protected void | validateMemberGroupType(java.lang.String memberGroupId)
Validates the member type is a member group for the member group ID.
|
protected void | validateOrganizationEntityType(java.lang.String orgEntityId)
Validates the member type is an organization for the orgEntityId.
|
protected void | validateOrgEntityIdKeyRange(java.lang.String orgEntityId)
Validates the organization entity id in a right key range.
|
protected void | validateScope(com.ibm.commerce.foundation.internal.server.services.registry.StoreObject store)
Validates if a store is under the current organization root.
|
protected void | validateStoreIdInDB(java.lang.String storeId)
Validates the store ID passed in is actually in the database.
|
protected void | validateStoreIdScope(java.lang.String storeId)
Validates the store ID is under the current organization root.
|
protected void | validateUserIdKeyRange(java.lang.String userId)
Validates the user id in a right key range.
|
protected void | validateUserType(java.lang.String userId)
Validates the member type is a user for the user ID.
|
protected static final java.lang.String EXTERNAL_NAME_REGISTRATIONAPPROVALSTATUS
protected java.lang.Object getMemberNoun()
protected void setMemberNoun(java.lang.Object dataObject)
protected java.lang.Integer getContextLanguageID()
protected java.lang.Integer getContextStoreID()
protected java.lang.String getContextCurrency()
protected java.util.ResourceBundle getResourceBundle()
protected java.lang.String getResourceString(java.lang.String key)
protected java.lang.Integer getLanguageID()
protected void setLanguageID(java.lang.Integer languageId)
protected void setLanguageID(java.lang.String languageId) throws DataLoadException
protected java.lang.String getStoreField1(java.lang.Integer storeId) throws DataLoadException
protected java.util.Map<java.lang.String,java.util.List<java.lang.Long>> getStoreMap()
protected java.lang.String getInternalLogonId(java.lang.String logonId, java.lang.String logonIdPrefix)
public void init() throws DataLoadException
protected void initStoreMap() throws DataLoadException
protected java.lang.Short shortValueOf(java.lang.String stringValue, java.lang.String stringName) throws DataLoadException
protected java.lang.Integer integerValueOf(java.lang.String stringValue, java.lang.String stringName) throws DataLoadException
protected java.lang.Long longValueOf(java.lang.String stringValue, java.lang.String stringName) throws DataLoadException
protected java.lang.Double doubleValueOf(java.lang.String stringValue, java.lang.String stringName) throws DataLoadException
protected void putOrgMap(java.lang.String orgId, java.lang.String[] orgInfo) throws DataLoadException
protected java.lang.String getParentOrgId(java.lang.String orgId) throws DataLoadException
protected java.lang.String getOrgDN(java.lang.String orgId) throws DataLoadException
protected java.lang.String getOrgEntityType(java.lang.String orgId) throws DataLoadException
protected java.lang.String getOrgEntityName(java.lang.String orgId) throws DataLoadException
protected java.lang.String getOrgId(java.lang.String orgDN) throws DataLoadException
protected java.lang.String getRootOwnerId() throws DataLoadException
protected void validateScope(com.ibm.commerce.foundation.internal.server.services.registry.StoreObject store) throws DataLoadException
protected boolean isMemberRoleUnderOrgRoot(java.lang.String memberId) throws DataLoadException
protected boolean isValidateScope()
protected boolean isValidateEmailAddress()
protected boolean isLogonIsolation()
protected boolean checkUserId(java.lang.String userId) throws DataLoadException
protected java.lang.String resolveIdOrNull(java.lang.String tableName, java.util.Map uniqueIndexValueMap, boolean bGenerateNewKey) throws DataLoadException
This method will resolve identifiers for a physical object. This version returns null instead of throwing an exception when it cannot resolve an id.
protected java.util.Map resolveIdsOrNull(java.lang.String tableName, java.util.Map uniqueIndexValueMap, boolean bGenerateNewKey) throws DataLoadException
This method will resolve identifiers for a physical object with multiple primary key columns. This version returns null instead of throwing an exception when it cannot resolve an id.
protected java.lang.String resolveUserIdByLogonId(java.lang.String logonId) throws DataLoadException
protected java.lang.String resolveUserIdByDN(java.lang.String userDN) throws DataLoadException
protected java.lang.String resolveOrgId(java.lang.String orgDN) throws DataLoadException
protected java.lang.Long resolveAddrBookId(java.lang.String memberId) throws DataLoadException
protected TableDataObject populateMEMBER(java.lang.String memberId, java.lang.String type, java.lang.Integer state, boolean deleteFlag) throws DataLoadException
protected TableDataObject populateMBRREL(java.lang.String ancestorId, java.lang.String descendantId, java.lang.Integer sequence, boolean deleteFlag) throws DataLoadException
protected TableDataObject populateMBRROLE(java.lang.String memberId, java.lang.String roleId, java.lang.Long orgEntityId, boolean deleteFlag) throws DataLoadException
protected java.lang.Long populateADDRBOOK(java.lang.String memberId, boolean idResolve, boolean cacheFlag, boolean deleteFlag) throws DataLoadException
protected TableDataObject populateADDRBOOK(java.lang.String memberId, java.lang.String type, java.lang.String displayName, java.lang.String description, boolean cacheFlag, boolean deleteFlag) throws DataLoadException
protected TableDataObject populateADDRESS(ContactInfoType contactInfo, java.lang.String memberId, java.lang.Long addrBookId, java.lang.String defaultNickname, java.lang.Integer selfAddress, boolean markFlag, boolean deleteFlag) throws DataLoadException
protected boolean isSetContactInfo(ContactInfoType contactInfo)
protected void validateMemberGroupIdKeyRange(java.lang.String memberGroupId) throws DataLoadException
protected void validateOrgEntityIdKeyRange(java.lang.String orgEntityId) throws DataLoadException
protected void validateUserIdKeyRange(java.lang.String userId) throws DataLoadException
protected void validateUserType(java.lang.String userId) throws DataLoadException
protected void validateOrganizationEntityType(java.lang.String orgEntityId) throws DataLoadException
protected void validateMemberGroupType(java.lang.String memberGroupId) throws DataLoadException
protected ValueMappingService getValueMappingService() throws DataLoadException
protected java.lang.Integer getInternalIntegerValue(java.lang.Object externalName, java.lang.Object externalValue) throws DataLoadException
protected java.lang.Character getInternalCharacterValue(java.lang.Object externalName, java.lang.Object externalValue) throws DataLoadException
protected java.util.List<TableDataObject> deleteAttributeValue(java.lang.String memberId, java.lang.String attributeId) throws DataLoadException
protected java.util.List<TableDataObject> populateMBRATTRVAL(java.lang.String memberId, AttributeType attribute) throws DataLoadException
protected java.util.List<TableDataObject> populateMBRATTRVAL(java.lang.String memberId, java.lang.String attrbuteId, java.lang.String attrTypeId, java.lang.String attrName, AttributeValueType attributeValue) throws DataLoadException
protected TableDataObject populateMBRATTRVAL(java.lang.String memberId, java.lang.String attrbuteId, java.lang.String attrTypeId, java.lang.String attrName, java.lang.String storeId, java.lang.String value) throws DataLoadException
protected void validateStoreIdInDB(java.lang.String storeId) throws DataLoadException
protected void validateStoreIdScope(java.lang.String storeId) throws DataLoadException
protected java.lang.String[] getAttributeAndTypeId(java.lang.String attributeName) throws DataLoadException
protected java.lang.String resolveUserId(PersonType person) throws DataLoadException
protected java.lang.String resolveUserId(PersonType person, java.lang.String logonId) throws DataLoadException
protected java.lang.String resolveOrgId(OrganizationType organization) throws DataLoadException
protected java.lang.String resolveOrgDN(OrganizationIdentifierType organizationIdentifier, java.lang.String defaultOrgId) throws DataLoadException
protected boolean deleteMBRRELIfAncestorChanged(java.lang.String memberId, java.lang.String newAncestorId) throws DataLoadException
public void close() throws DataLoadException
This method will perform cleanup on the business object mediator. It will attempt to close all of the data writers configured for this business object mediator.
This method will flush and commit any data waiting to be persisted in the batch as well as clear the ID resolver cache.