@Profile(value="!ldap") @Component public class DomainGroupRepositoryMock extends Object implements DomainGroupRepository
| Constructor and Description |
|---|
DomainGroupRepositoryMock() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete(@NotNull String groupName)
Delete group.
|
boolean |
exists(@NotNull 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(@NotNull String groupName)
Find group be name.
|
void |
init()
Init.
|
org.bremersee.dccon.model.DomainGroup |
save(@NotNull org.bremersee.dccon.model.DomainGroup domainGroup)
Save domain group.
|
@EventListener(value=org.springframework.boot.context.event.ApplicationReadyEvent.class) public void init()
public Stream<org.bremersee.dccon.model.DomainGroup> findAll(String query)
DomainGroupRepositoryfindAll in interface DomainGroupRepositoryquery - the querypublic Optional<org.bremersee.dccon.model.DomainGroup> findOne(@NotNull @NotNull String groupName)
DomainGroupRepositoryfindOne in interface DomainGroupRepositorygroupName - the group namepublic boolean exists(@NotNull
@NotNull String groupName)
DomainGroupRepositoryexists in interface DomainGroupRepositorygroupName - the group nametrue if the group exists, otherwise falsepublic org.bremersee.dccon.model.DomainGroup save(@NotNull
@NotNull org.bremersee.dccon.model.DomainGroup domainGroup)
DomainGroupRepositorysave in interface DomainGroupRepositorydomainGroup - the domain grouppublic boolean delete(@NotNull
@NotNull 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.