Class UserPersistenceHelper


  • @ApplicationScoped
    public class UserPersistenceHelper
    extends Object
    • Constructor Detail

      • UserPersistenceHelper

        public UserPersistenceHelper()
    • Method Detail

      • getUserInumFromDN

        public String getUserInumFromDN​(String deviceDn)
      • addCustomObjectClass

        public void addCustomObjectClass​(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