Package io.jans.scim.service.scim2
Class Scim2UserService
java.lang.Object
io.jans.scim.service.scim2.Scim2UserService
- All Implemented Interfaces:
Serializable
This class holds the most important business logic of the SCIM service for
the resource type "User". It's devoted to taking objects of class
UserResource, feeding instances of ScimCustomPerson, and do persistence to
LDAP. The converse is also done: querying LDAP, and transforming
ScimCustomPerson into UserResource
- Author:
- jgomer
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildUserResource(ScimCustomPerson person, String url) voidcreateUser(ScimCustomPerson gluuPerson, UserResource user, String url) Inserts a new user in LDAP based on the SCIM Resource passedvoiddeleteUser(ScimCustomPerson gluuPerson) booleanpasswordValidationPassed(String password) preCreateUser(UserResource user) voidvoidreplacePersonInfo(ScimCustomPerson gluuPerson, UserResource user, String url) io.jans.orm.model.PagedResult<BaseScimResource>searchUsers(String filter, String sortBy, io.jans.orm.model.SortOrder sortOrder, int startIndex, int count, String url, int maxCount) voidtransferAttributesToUserResource(ScimCustomPerson person, UserResource res, String url) updateUser(ScimCustomPerson gluuPerson, UserResource user, String url)
-
Constructor Details
-
Scim2UserService
public Scim2UserService()
-
-
Method Details
-
transferAttributesToUserResource
-
preCreateUser
-
createUser
Inserts a new user in LDAP based on the SCIM Resource passed- Parameters:
user- A UserResource object with all info as received by the web serviceurl- Base URL associated to user resources in SCIM (eg. .../scim/v2/Users)- Throws:
Exception- In case of unexpected error
-
buildUserResource
-
updateUser
public UserResource updateUser(ScimCustomPerson gluuPerson, UserResource user, String url) throws InvalidAttributeValueException - Throws:
InvalidAttributeValueException
-
replacePersonInfo
-
deleteUser
- Throws:
Exception
-
searchUsers
public io.jans.orm.model.PagedResult<BaseScimResource> searchUsers(String filter, String sortBy, io.jans.orm.model.SortOrder sortOrder, int startIndex, int count, String url, int maxCount) throws Exception - Throws:
Exception
-
removePPIDsBranch
-
passwordValidationPassed
-