Package org.cibseven.webapp.providers
Class DirectUserProvider
java.lang.Object
org.cibseven.webapp.providers.DirectUserProvider
- All Implemented Interfaces:
org.cibseven.webapp.providers.IUserProvider
public class DirectUserProvider
extends Object
implements org.cibseven.webapp.providers.IUserProvider
-
Constructor Summary
ConstructorsConstructorDescriptionDirectUserProvider(DirectProviderUtil directProviderUtil, String userProvider, String wildcard) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMemberToGroup(String groupId, String userId, org.cibseven.webapp.auth.CIBUser user) longcountUsers(Map<String, Object> filters, org.cibseven.webapp.auth.CIBUser user) org.springframework.http.ResponseEntity<org.cibseven.webapp.rest.model.Authorization>createAuthorization(org.cibseven.webapp.rest.model.Authorization authorization, org.cibseven.webapp.auth.CIBUser user) voidcreateGroup(org.cibseven.webapp.rest.model.UserGroup group, org.cibseven.webapp.auth.CIBUser user) voidcreateUser(org.cibseven.webapp.rest.model.NewUser user, org.cibseven.webapp.auth.CIBUser flowUser) voiddeleteAuthorization(String authorizationId, org.cibseven.webapp.auth.CIBUser user) voiddeleteGroup(String groupId, org.cibseven.webapp.auth.CIBUser user) voiddeleteMemberFromGroup(String groupId, String userId, org.cibseven.webapp.auth.CIBUser user) voiddeleteUser(String userId, org.cibseven.webapp.auth.CIBUser user) Collection<org.cibseven.webapp.rest.model.SevenUser>fetchUsers(org.cibseven.webapp.auth.CIBUser user) Collection<org.cibseven.webapp.rest.model.Authorization>findAuthorization(Optional<String> id, Optional<String> type, Optional<String> userIdIn, Optional<String> groupIdIn, Optional<String> resourceType, Optional<String> resourceId, Optional<String> sortBy, Optional<String> sortOrder, Optional<String> firstResult, Optional<String> maxResults, org.cibseven.webapp.auth.CIBUser user) Collection<org.cibseven.webapp.rest.model.UserGroup>findGroups(Optional<String> id, Optional<String> name, Optional<String> nameLike, Optional<String> type, Optional<String> member, Optional<String> memberOfTenant, Optional<String> sortBy, Optional<String> sortOrder, Optional<String> firstResult, Optional<String> maxResults, org.cibseven.webapp.auth.CIBUser user) Collection<org.cibseven.webapp.rest.model.User>findUsers(Optional<String> id, Optional<String> firstName, Optional<String> firstNameLike, Optional<String> lastName, Optional<String> lastNameLike, Optional<String> email, Optional<String> emailLike, Optional<String> memberOfGroup, Optional<String> memberOfTenant, Optional<String> idIn, Optional<String> firstResult, Optional<String> maxResults, Optional<String> sortBy, Optional<String> sortOrder, Optional<Boolean> likePatternIgnoreCase, org.cibseven.webapp.auth.CIBUser user) org.cibseven.webapp.rest.model.AuthorizationsgetUserAuthorization(String userId, org.cibseven.webapp.auth.CIBUser user) org.cibseven.webapp.rest.model.SevenUsergetUserProfile(String userId, org.cibseven.webapp.auth.CIBUser user) voidupdateAuthorization(String authorizationId, Map<String, Object> data, org.cibseven.webapp.auth.CIBUser user) voidupdateGroup(String groupId, org.cibseven.webapp.rest.model.UserGroup group, org.cibseven.webapp.auth.CIBUser user) voidupdateUserCredentials(String userId, Map<String, Object> data, org.cibseven.webapp.auth.CIBUser user) voidupdateUserProfile(String userId, org.cibseven.webapp.rest.model.User user, org.cibseven.webapp.auth.CIBUser flowUser) org.cibseven.webapp.rest.model.SevenVerifyUserverifyUser(org.cibseven.webapp.auth.rest.StandardLogin login, org.cibseven.webapp.auth.CIBUser user)
-
Constructor Details
-
DirectUserProvider
public DirectUserProvider(DirectProviderUtil directProviderUtil, String userProvider, String wildcard)
-
-
Method Details
-
fetchUsers
public Collection<org.cibseven.webapp.rest.model.SevenUser> fetchUsers(org.cibseven.webapp.auth.CIBUser user) throws org.cibseven.webapp.exception.SystemException - Specified by:
fetchUsersin interfaceorg.cibseven.webapp.providers.IUserProvider- Throws:
org.cibseven.webapp.exception.SystemException
-
getUserAuthorization
public org.cibseven.webapp.rest.model.Authorizations getUserAuthorization(String userId, org.cibseven.webapp.auth.CIBUser user) - Specified by:
getUserAuthorizationin interfaceorg.cibseven.webapp.providers.IUserProvider
-
verifyUser
public org.cibseven.webapp.rest.model.SevenVerifyUser verifyUser(org.cibseven.webapp.auth.rest.StandardLogin login, org.cibseven.webapp.auth.CIBUser user) throws org.cibseven.webapp.exception.SystemException - Specified by:
verifyUserin interfaceorg.cibseven.webapp.providers.IUserProvider- Throws:
org.cibseven.webapp.exception.SystemException
-
findUsers
public Collection<org.cibseven.webapp.rest.model.User> findUsers(Optional<String> id, Optional<String> firstName, Optional<String> firstNameLike, Optional<String> lastName, Optional<String> lastNameLike, Optional<String> email, Optional<String> emailLike, Optional<String> memberOfGroup, Optional<String> memberOfTenant, Optional<String> idIn, Optional<String> firstResult, Optional<String> maxResults, Optional<String> sortBy, Optional<String> sortOrder, Optional<Boolean> likePatternIgnoreCase, org.cibseven.webapp.auth.CIBUser user) - Specified by:
findUsersin interfaceorg.cibseven.webapp.providers.IUserProvider
-
createUser
public void createUser(org.cibseven.webapp.rest.model.NewUser user, org.cibseven.webapp.auth.CIBUser flowUser) throws org.cibseven.webapp.exception.InvalidUserIdException - Specified by:
createUserin interfaceorg.cibseven.webapp.providers.IUserProvider- Throws:
org.cibseven.webapp.exception.InvalidUserIdException
-
updateUserProfile
public void updateUserProfile(String userId, org.cibseven.webapp.rest.model.User user, org.cibseven.webapp.auth.CIBUser flowUser) - Specified by:
updateUserProfilein interfaceorg.cibseven.webapp.providers.IUserProvider
-
updateUserCredentials
public void updateUserCredentials(String userId, Map<String, Object> data, org.cibseven.webapp.auth.CIBUser user) - Specified by:
updateUserCredentialsin interfaceorg.cibseven.webapp.providers.IUserProvider
-
addMemberToGroup
- Specified by:
addMemberToGroupin interfaceorg.cibseven.webapp.providers.IUserProvider
-
deleteMemberFromGroup
public void deleteMemberFromGroup(String groupId, String userId, org.cibseven.webapp.auth.CIBUser user) - Specified by:
deleteMemberFromGroupin interfaceorg.cibseven.webapp.providers.IUserProvider
-
deleteUser
- Specified by:
deleteUserin interfaceorg.cibseven.webapp.providers.IUserProvider
-
getUserProfile
public org.cibseven.webapp.rest.model.SevenUser getUserProfile(String userId, org.cibseven.webapp.auth.CIBUser user) - Specified by:
getUserProfilein interfaceorg.cibseven.webapp.providers.IUserProvider
-
findGroups
public Collection<org.cibseven.webapp.rest.model.UserGroup> findGroups(Optional<String> id, Optional<String> name, Optional<String> nameLike, Optional<String> type, Optional<String> member, Optional<String> memberOfTenant, Optional<String> sortBy, Optional<String> sortOrder, Optional<String> firstResult, Optional<String> maxResults, org.cibseven.webapp.auth.CIBUser user) - Specified by:
findGroupsin interfaceorg.cibseven.webapp.providers.IUserProvider
-
createGroup
public void createGroup(org.cibseven.webapp.rest.model.UserGroup group, org.cibseven.webapp.auth.CIBUser user) - Specified by:
createGroupin interfaceorg.cibseven.webapp.providers.IUserProvider
-
updateGroup
public void updateGroup(String groupId, org.cibseven.webapp.rest.model.UserGroup group, org.cibseven.webapp.auth.CIBUser user) - Specified by:
updateGroupin interfaceorg.cibseven.webapp.providers.IUserProvider
-
deleteGroup
- Specified by:
deleteGroupin interfaceorg.cibseven.webapp.providers.IUserProvider
-
findAuthorization
public Collection<org.cibseven.webapp.rest.model.Authorization> findAuthorization(Optional<String> id, Optional<String> type, Optional<String> userIdIn, Optional<String> groupIdIn, Optional<String> resourceType, Optional<String> resourceId, Optional<String> sortBy, Optional<String> sortOrder, Optional<String> firstResult, Optional<String> maxResults, org.cibseven.webapp.auth.CIBUser user) - Specified by:
findAuthorizationin interfaceorg.cibseven.webapp.providers.IUserProvider
-
createAuthorization
public org.springframework.http.ResponseEntity<org.cibseven.webapp.rest.model.Authorization> createAuthorization(org.cibseven.webapp.rest.model.Authorization authorization, org.cibseven.webapp.auth.CIBUser user) - Specified by:
createAuthorizationin interfaceorg.cibseven.webapp.providers.IUserProvider
-
updateAuthorization
public void updateAuthorization(String authorizationId, Map<String, Object> data, org.cibseven.webapp.auth.CIBUser user) - Specified by:
updateAuthorizationin interfaceorg.cibseven.webapp.providers.IUserProvider
-
deleteAuthorization
- Specified by:
deleteAuthorizationin interfaceorg.cibseven.webapp.providers.IUserProvider
-
countUsers
public long countUsers(Map<String, Object> filters, org.cibseven.webapp.auth.CIBUser user) throws org.cibseven.webapp.exception.SystemException- Specified by:
countUsersin interfaceorg.cibseven.webapp.providers.IUserProvider- Throws:
org.cibseven.webapp.exception.SystemException
-