Package io.jans.scim.service.scim2
Class UserPersistenceHelper
- java.lang.Object
-
- io.jans.scim.service.scim2.UserPersistenceHelper
-
@ApplicationScoped public class UserPersistenceHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description UserPersistenceHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCustomObjectClass(ScimCustomPerson person)
void
addPerson(ScimCustomPerson person)
ScimCustomPerson
getPersonByInum(String inum)
String
getUserInumFromDN(String deviceDn)
void
removePerson(ScimCustomPerson person)
void
removeUserFromGroups(ScimCustomPerson person)
"Detaches" a person from all groups he is currently member ofScimCustomPerson
syncEmailForward(ScimCustomPerson customPerson)
One-way sync from "jansEmail" to "mail".void
updatePerson(ScimCustomPerson person)
-
-
-
Method Detail
-
addCustomObjectClass
public void addCustomObjectClass(ScimCustomPerson person)
-
addPerson
public void addPerson(ScimCustomPerson person) throws Exception
- Throws:
Exception
-
getPersonByInum
public ScimCustomPerson getPersonByInum(String inum)
-
updatePerson
public void updatePerson(ScimCustomPerson person)
-
removeUserFromGroups
public void removeUserFromGroups(ScimCustomPerson person)
"Detaches" a person from all groups he is currently member of- Parameters:
person
- The person in question- Throws:
Exception
-
syncEmailForward
public ScimCustomPerson syncEmailForward(ScimCustomPerson customPerson) throws Exception
One-way sync from "jansEmail" to "mail". Ultimately this is persisted so "mail" will be updated by values from "jansEmail".- Parameters:
customPerson
- Represents the user object to be modified- Returns:
- Modified user object
- Throws:
Exception
- If (json) values in excludeEmail cannot be parsed
-
removePerson
public void removePerson(ScimCustomPerson person)
-
-