Class HvlOAuthLdapGroupServiceImpl
java.lang.Object
tr.com.havelsan.javarch.oauth.ldap.starter.service.HvlOAuthLdapGroupServiceImpl
- All Implemented Interfaces:
HvlOAuthLdapGroupService
@Service
public class HvlOAuthLdapGroupServiceImpl
extends Object
implements HvlOAuthLdapGroupService
The class which implements
HvlOAuthLdapEntryService
.-
Constructor Summary
ConstructorDescriptionHvlOAuthLdapGroupServiceImpl
(HvlLdapGroupProvider ldapGroupProvider) Instantiates a new HvlOAuthLdapService. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addEntryToGroup
(@NotNull HvlLdapAddMemberToGroupModel addMemberToGroupModel) addEntryToGroup.getGroupByDn
(@NotBlank @Size(max=100) String dn) Gets HvlLdapGroupModel by dn.getGroupByName
(@NotBlank @Size(max=50) String name) Gets HvlLdapGroupModel by name.queryGroupList
(@NotNull HvlLdapQueryModel queryModel) Query group list.void
removeEntryFromGroup
(@NotNull HvlLdapGroupModel groupModel, @NotNull HvlLdapEntryModel entryModel) removeEntryFromGroup.void
save
(@NotNull HvlLdapGroupModel groupModel) Save group.void
update
(@NotNull HvlLdapGroupUpdateModel groupUpdateModel) Updates group.
-
Constructor Details
-
HvlOAuthLdapGroupServiceImpl
Instantiates a new HvlOAuthLdapService.- Parameters:
ldapGroupProvider
- the ldap service
-
-
Method Details
-
getGroupByName
public HvlLdapGroupModel getGroupByName(@NotBlank @Size(max=50) @NotBlank @Size(max=50) String name) Gets HvlLdapGroupModel by name.- Specified by:
getGroupByName
in interfaceHvlOAuthLdapGroupService
- Parameters:
name
- the name- Returns:
- HvlLdapGroupModel model
-
getGroupByDn
Gets HvlLdapGroupModel by dn.- Specified by:
getGroupByDn
in interfaceHvlOAuthLdapGroupService
- Parameters:
dn
- the dn- Returns:
- HvlLdapGroupModel model
-
queryGroupList
Query group list.- Specified by:
queryGroupList
in interfaceHvlOAuthLdapGroupService
- Parameters:
queryModel
- the query model- Returns:
- the list
-
save
Save group.- Specified by:
save
in interfaceHvlOAuthLdapGroupService
- Parameters:
groupModel
- the group model
-
update
Updates group.- Specified by:
update
in interfaceHvlOAuthLdapGroupService
- Parameters:
groupUpdateModel
- the group update model
-
addEntryToGroup
addEntryToGroup.- Specified by:
addEntryToGroup
in interfaceHvlOAuthLdapGroupService
- Parameters:
addMemberToGroupModel
- the add member to group model
-
removeEntryFromGroup
public void removeEntryFromGroup(@NotNull @NotNull HvlLdapGroupModel groupModel, @NotNull @NotNull HvlLdapEntryModel entryModel) removeEntryFromGroup.- Specified by:
removeEntryFromGroup
in interfaceHvlOAuthLdapGroupService
- Parameters:
groupModel
- the group modelentryModel
- the entry model
-