@Profile(value="ldap") @Component(value="domainGroupRepository") public class DomainGroupRepositoryImpl extends Object implements DomainGroupRepository
| Constructor and Description |
|---|
DomainGroupRepositoryImpl(DomainControllerProperties properties,
org.springframework.beans.factory.ObjectProvider<org.bremersee.data.ldaptive.LdaptiveTemplate> ldapTemplateProvider)
Instantiates a new domain group repository.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete(String groupName)
Delete group.
|
boolean |
exists(String groupName)
Check whether group exists or not.
|
Stream<org.bremersee.dccon.model.DomainGroup> |
findAll(String query)
Find all groups.
|
Optional<org.bremersee.dccon.model.DomainGroup> |
findOne(String groupName)
Find group be name.
|
org.bremersee.dccon.model.DomainGroup |
save(org.bremersee.dccon.model.DomainGroup domainGroup)
Save domain group.
|
void |
setDomainGroupLdapMapper(org.bremersee.data.ldaptive.LdaptiveEntryMapper<org.bremersee.dccon.model.DomainGroup> domainGroupLdapMapper)
Sets domain group ldap mapper.
|
public DomainGroupRepositoryImpl(DomainControllerProperties properties, org.springframework.beans.factory.ObjectProvider<org.bremersee.data.ldaptive.LdaptiveTemplate> ldapTemplateProvider)
properties - the propertiesldapTemplateProvider - the ldap template providerpublic void setDomainGroupLdapMapper(org.bremersee.data.ldaptive.LdaptiveEntryMapper<org.bremersee.dccon.model.DomainGroup> domainGroupLdapMapper)
domainGroupLdapMapper - the domain group ldap mapperpublic Stream<org.bremersee.dccon.model.DomainGroup> findAll(String query)
DomainGroupRepositoryfindAll in interface DomainGroupRepositoryquery - the querypublic Optional<org.bremersee.dccon.model.DomainGroup> findOne(String groupName)
DomainGroupRepositoryfindOne in interface DomainGroupRepositorygroupName - the group namepublic boolean exists(String groupName)
DomainGroupRepositoryexists in interface DomainGroupRepositorygroupName - the group nametrue if the group exists, otherwise falsepublic org.bremersee.dccon.model.DomainGroup save(org.bremersee.dccon.model.DomainGroup domainGroup)
DomainGroupRepositorysave in interface DomainGroupRepositorydomainGroup - the domain grouppublic boolean delete(String groupName)
DomainGroupRepositorydelete in interface DomainGroupRepositorygroupName - the group nametrue if the group was removed; false if the group didn't existCopyright © 2020 bremersee.org. All rights reserved.