public class OrganizationSyncBean extends MemberSyncBean
OrgEntityDO
: ORGENTITY table
SelfAddressDO
: ADDRESS table (self-address only)
MemberAttributesDO
: MBRATTRVAL table
VMMProxy
is used to read from and write to LDAP, using Virtual Member Manager (VMM). VMM is a component
of WebSphere Application Server (WAS) that's used when WAS security is configured to use the federated user repository.
If WebSphere Commerce is configured to use its own database as the master member profile
repository, then the sync beans will only interact with WebSphere Commerce member tables. If on the other
hand, WebSphere Commerce is configured to use an LDAP server as the master profile repository, the sync
beans will persist member data to LDAP as well as the WebSphere Commerce database. During a read operation,
the sync bean's properties are first populated based on the data in the database. Then, if the data on
the LDAP server has been updated since the last synchronization, any LDAP properties that are configured
to be synchronized will overwrite the existing property values. The ldapentry.xml
configuration file controls which properties are synchronized between WebSphere Commerce and LDAP, and in
which direction:
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The IBM Copyright notice field.
|
Constructor and Description |
---|
OrganizationSyncBean(TypedProperty tpCreate)
Constructor that creates a new organization in the database and LDAP.
|
Modifier and Type | Method and Description |
---|---|
static OrganizationSyncBean |
findByCommerceDN(java.lang.String strCommerceDN)
Finds an organization based on the distinguished name of the organization in the
Commerce database.
|
static OrganizationSyncBean |
findByLDAPDN(java.lang.String astrLDAPDN)
Finds an organization based on the distinguished name of the organization in LDAP.
|
static OrganizationSyncBean |
findByMemberId(java.lang.String strMemberId)
Finds an organization by member ID.
|
java.lang.Long[] |
getAncestors()
Returns an array of orgEntity IDs of the ancestors.
|
java.lang.Long[] |
getChildOrgEntities()
Returns an array of orgEntity IDs that are immediate children (one level) of this orgEntity.
|
java.lang.Long[] |
getChildren()
Returns an array of member IDs of the immediate children (one level) of the organization.
|
java.lang.Long[] |
getChildUsers()
Returns an array of user IDs that are immediate children (one level) of the organization.
|
java.lang.Long[] |
getDescendantOrgEntities()
Returns an array of orgEntity IDs of all the descendant orgEntities.
|
java.lang.Long[] |
getDescendants()
Returns an array of member IDs of all the descendants of this organization.
|
java.lang.Long[] |
getDescendantUsers()
Returns an array of user IDs that are descendants of the organization.
|
java.lang.Integer[] |
getRoles()
Returns an array of role IDs that the organization has.
|
isMemberInRole, isMemberInRole, isMemberInRole
getCommerceDN, getLDAPDN, getLDAPMember, getMemberId, getMemberType, getProperties, getProperty, getProperty, getWMMMapAccessBean, isWMMEnabled, refresh, update
public static final java.lang.String COPYRIGHT
public OrganizationSyncBean(TypedProperty tpCreate) throws ECException, java.rmi.RemoteException, javax.persistence.NoResultException
tpCreate
- The properties of the new organization.ECException
java.rmi.RemoteException
javax.persistence.NoResultException
public static OrganizationSyncBean findByCommerceDN(java.lang.String strCommerceDN) throws java.rmi.RemoteException, javax.persistence.NoResultException, ECException
strCommerceDN
- Distinguished name of the organization in the Commerce database.java.rmi.RemoteException
javax.persistence.NoResultException
ECException
public static OrganizationSyncBean findByMemberId(java.lang.String strMemberId) throws java.rmi.RemoteException, javax.persistence.NoResultException, ECException
strMemberId
- The member ID.java.rmi.RemoteException
javax.persistence.NoResultException
- Thrown if the organization does not exist
in the database.ECException
public java.lang.Integer[] getRoles() throws javax.persistence.NoResultException
javax.persistence.NoResultException
public java.lang.Long[] getAncestors() throws javax.persistence.NoResultException
javax.persistence.NoResultException
public java.lang.Long[] getDescendants() throws javax.persistence.NoResultException
javax.persistence.NoResultException
- thrown if a finder exception occurs.public java.lang.Long[] getChildren() throws javax.persistence.NoResultException
javax.persistence.NoResultException
public java.lang.Long[] getChildOrgEntities() throws javax.naming.NamingException, javax.persistence.NoResultException
javax.naming.NamingException
- thrown if a naming exception occurs.javax.persistence.NoResultException
- thrown if a finder exception occurs.public java.lang.Long[] getChildUsers() throws javax.naming.NamingException, javax.persistence.NoResultException
javax.naming.NamingException
- thrown if a naming exception occurs.javax.persistence.NoResultException
- thrown if a finder exception occurs.public java.lang.Long[] getDescendantOrgEntities() throws javax.persistence.NoResultException
javax.persistence.NoResultException
- thrown if a finder exception occurs.public java.lang.Long[] getDescendantUsers() throws javax.naming.NamingException, javax.persistence.NoResultException
javax.naming.NamingException
javax.persistence.NoResultException
public static OrganizationSyncBean findByLDAPDN(java.lang.String astrLDAPDN) throws java.rmi.RemoteException, javax.persistence.NoResultException, ECException
astrLDAPDN
- Distinguished name of the organization in LDAP.java.rmi.RemoteException
javax.persistence.NoResultException
ECException