Class BaseServiceImp

    • Method Detail

      • getSystemUuid

        public UUID getSystemUuid()
        Get default system UUID.
        Internally makes use of configured local system's node name.
        Specified by:
        getSystemUuid in interface BaseService
        Returns:
        Default system UUID.
      • getCurrentUserId

        protected UUID getCurrentUserId​(String tenantIdentifier)
        Get default user UUID, derived from authenticated user via Spring Security.
        Internally checks and retrieves the matching user UUID, if it already exists with given info.
        Returns:
        UUID of default user, derived from authenticated user.
      • createInternalUser

        protected UUID createInternalUser​(String username,
                                          String tenantIdentifier)
        Creates a new PARTY_IDENTIFIED corresponding to an authenticated user.
        Parameters:
        username - username of the user
        Returns:
        the id of the newly created user