public abstract class RFC4519Directory extends SpringLDAPConnector
A user is a member of a group if either:
RFC2307GidNumberMapper,
RFC2307MemberUidMapperattributes, contextSource, contextSourceTransactionManager, DEFAULT_PAGE_SIZE, eventPublisher, ldapPropertiesMapper, ldapQueryTranslater, ldapTemplate, nameConverter, searchDN| Constructor and Description |
|---|
RFC4519Directory(LDAPQueryTranslater ldapQueryTranslater,
com.atlassian.event.api.EventPublisher eventPublisher,
InstanceFactory instanceFactory) |
addDefaultSnToUserAttributes, addDefaultValueToUserAttributesForAttribute, addGroup, addUser, addUser, asLdapGroupName, asLdapName, asLdapUserName, authenticate, avatarMapper, countDirectMembersOfGroup, createModificationItem, expireAllPasswords, findEntityByDN, findEntityByDN, findGroupByName, findGroupByNameAndType, findGroupWithAttributesByName, findUserByExternalId, findUserByName, findUserWithAttributesByName, getAttributeAsBoolean, getAttributeAsLong, getAuthoritativeDirectory, getBaseEnvironmentProperties, getContextSource, getCredentialEncoder, getDirectoryId, getGroupContextMapper, getInitialGroupMemberDN, getKeys, getLdapPropertiesMapper, getNewGroupAttributes, getNewGroupDirectorySpecificAttributes, getNewUserAttributes, getNewUserDirectorySpecificAttributes, getSearchDN, getSubTreeSearchControls, getUserAvatarByName, getUserContextMapper, getUserModificationItems, getValue, getValues, isEmpty, isRolesDisabled, pageSearchResults, postprocessGroups, removeGroup, removeGroupAttributes, removeUser, removeUserAttributes, renameGroup, renameUser, searchEntities, searchEntitiesWithRequestControls, searchGroupObjects, searchGroupObjectsOfSpecifiedGroupType, searchGroupRelationships, searchGroups, searchUserObjects, searchUsers, setAttributes, setDirectoryId, storeGroupAttributes, storeUserAttributes, supportsInactiveAccounts, supportsNestedGroups, supportsPasswordExpiration, supportsSettingEncryptedCredential, testConnection, typedEntityNotFoundException, updateGroup, updateUser, updateUserCredentialclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescriptiveName, updateUserFromRemoteDirectory, userAuthenticatedpublic RFC4519Directory(LDAPQueryTranslater ldapQueryTranslater, com.atlassian.event.api.EventPublisher eventPublisher, InstanceFactory instanceFactory)
protected List<AttributeMapper> getCustomGroupAttributeMappers()
SpringLDAPConnectorgetCustomGroupAttributeMappers in class SpringLDAPConnectorprotected List<AttributeMapper> getMemberDnMappers()
protected List<AttributeMapper> getCustomUserAttributeMappers()
getCustomUserAttributeMappers in class SpringLDAPConnectorprotected boolean isDnDirectGroupMember(String memberDN, LDAPGroupWithAttributes parentGroup)
protected boolean isDirectGroupMemberOf(LDAPUserWithAttributes user, String groupDN)
public boolean isUserDirectGroupMember(String username, String groupName) throws OperationFailedException
OperationFailedExceptionpublic boolean isGroupDirectGroupMember(String childGroup, String parentGroup) throws OperationFailedException
OperationFailedExceptionprotected void addDnToGroup(String dn, LDAPGroupWithAttributes group) throws OperationFailedException
OperationFailedExceptionpublic void addUserToGroup(String username, String groupName) throws GroupNotFoundException, OperationFailedException, UserNotFoundException, MembershipAlreadyExistsException
public void addGroupToGroup(String childGroup, String parentGroup) throws GroupNotFoundException, InvalidMembershipException, OperationFailedException, MembershipAlreadyExistsException
protected void removeDnFromGroup(String dn, LDAPGroupWithAttributes group) throws OperationFailedException
OperationFailedExceptionpublic void removeUserFromGroup(String username, String groupName) throws UserNotFoundException, GroupNotFoundException, MembershipNotFoundException, OperationFailedException
public void removeGroupFromGroup(String childGroup, String parentGroup) throws GroupNotFoundException, MembershipNotFoundException, InvalidMembershipException, OperationFailedException
public Iterable<Membership> getMemberships() throws OperationFailedException
OperationFailedExceptionprotected static LdapName getLdapName(LDAPDirectoryEntity entity) throws OperationFailedException
entity - an LDAP entityOperationFailedException - if the entity DN cannot be parsedprotected <T> Iterable<T> searchGroupRelationshipsWithGroupTypeSpecified(MembershipQuery<T> query) throws OperationFailedException
SpringLDAPConnectorsearchGroupRelationshipsWithGroupTypeSpecified in class SpringLDAPConnectorquery - membership query with all GroupType's not null.OperationFailedException - if the operation failed due to a communication error with the remote directory,
or if the query is invalidprotected List<? extends LDAPGroupWithAttributes> findGroupMemberships(MembershipQuery<? extends LDAPGroupWithAttributes> query) throws OperationFailedException
OperationFailedExceptionprotected Iterable<String> findGroupMembershipNames(MembershipQuery<String> query) throws OperationFailedException
OperationFailedExceptionprotected <T> List<T> findGroupMembershipsOfUserViaMemberOf(String username, int startIndex, int maxResults, com.atlassian.crowd.directory.RFC4519Directory.LookupByDn<T> mapper) throws OperationFailedException
OperationFailedExceptionprotected List<LDAPUserWithAttributes> findUserMembersOfGroupViaMemberDN(String groupName, GroupType groupType, int startIndex, int maxResults) throws OperationFailedException
OperationFailedExceptionprotected Iterable<LDAPUserWithAttributes> findUserMembersOfGroupViaMemberOf(String groupName, GroupType groupType, int startIndex, int maxResults) throws OperationFailedException
OperationFailedExceptionprotected static <T> Iterable<T> toGenericIterable(Iterable list)
public Iterable<LdapName> findDirectMembersOfGroup(LdapName groupDn) throws OperationFailedException
RemoteDirectory's contract. It is introduced by RFC4519Directory to
support RFC4519DirectoryMembershipsIterable.groupDn - LDAP name of a groupOperationFailedException - if the operation fails for any reasonCopyright © 2018 Atlassian. All rights reserved.