@Component(value="domainGroupService") public class DomainGroupServiceImpl extends Object implements DomainGroupService
| Constructor and Description |
|---|
DomainGroupServiceImpl(DomainControllerProperties properties,
DomainUserRepository domainUserRepository,
DomainGroupRepository domainGroupRepository)
Instantiates a new domain group service.
|
| Modifier and Type | Method and Description |
|---|---|
org.bremersee.dccon.model.DomainGroup |
addGroup(@NotNull @Valid org.bremersee.dccon.model.DomainGroup domainGroup)
Add domain group.
|
Boolean |
deleteGroup(@NotNull String groupName)
Delete group.
|
Optional<org.bremersee.dccon.model.DomainGroup> |
getGroup(@NotNull String groupName)
Get group by name.
|
List<org.bremersee.dccon.model.DomainGroup> |
getGroups(String sort,
String query)
Get groups.
|
Boolean |
groupExists(@NotNull String groupName)
Check whether group exists or not.
|
void |
setDomainGroupValidator(DomainGroupValidator domainGroupValidator)
Sets domain group validator.
|
Optional<org.bremersee.dccon.model.DomainGroup> |
updateGroup(@NotNull String groupName,
@NotNull @Valid org.bremersee.dccon.model.DomainGroup domainGroup)
Update domain group.
|
public DomainGroupServiceImpl(DomainControllerProperties properties, DomainUserRepository domainUserRepository, DomainGroupRepository domainGroupRepository)
properties - the propertiesdomainUserRepository - the domain user repositorydomainGroupRepository - the domain group repository@Autowired(required=false) public void setDomainGroupValidator(DomainGroupValidator domainGroupValidator)
domainGroupValidator - the domain group validatorpublic List<org.bremersee.dccon.model.DomainGroup> getGroups(String sort, String query)
DomainGroupServicegetGroups in interface DomainGroupServicesort - the sort orderquery - the querypublic org.bremersee.dccon.model.DomainGroup addGroup(@NotNull @Valid
@NotNull @Valid org.bremersee.dccon.model.DomainGroup domainGroup)
DomainGroupServiceaddGroup in interface DomainGroupServicedomainGroup - the domain grouppublic Optional<org.bremersee.dccon.model.DomainGroup> getGroup(@NotNull @NotNull String groupName)
DomainGroupServicegetGroup in interface DomainGroupServicegroupName - the group namepublic Optional<org.bremersee.dccon.model.DomainGroup> updateGroup(@NotNull @NotNull String groupName, @NotNull @Valid @NotNull @Valid org.bremersee.dccon.model.DomainGroup domainGroup)
DomainGroupServiceupdateGroup in interface DomainGroupServicegroupName - the group namedomainGroup - the domain grouppublic Boolean groupExists(@NotNull @NotNull String groupName)
DomainGroupServicegroupExists in interface DomainGroupServicegroupName - the group nametrue if the group exists, otherwise falsepublic Boolean deleteGroup(@NotNull @NotNull String groupName)
DomainGroupServicedeleteGroup in interface DomainGroupServicegroupName - the group nametrue if the group was removed; false if the group didn't existCopyright © 2020 bremersee.org. All rights reserved.