Class UserPersistenceHelper

java.lang.Object
io.jans.scim.service.scim2.UserPersistenceHelper

@ApplicationScoped public class UserPersistenceHelper extends Object
  • Constructor Details

    • UserPersistenceHelper

      public UserPersistenceHelper()
  • Method Details

    • getUserInumFromDN

      public String getUserInumFromDN(String deviceDn)
    • addCustomObjectClass

      public void addCustomObjectClass(ScimCustomPerson person)
    • addPerson

      public void addPerson(ScimCustomPerson person) throws Exception
      Throws:
      Exception
    • getPersonByInum

      public ScimCustomPerson getPersonByInum(String inum) throws Exception
      Throws:
      Exception
    • 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)