Interface LicenseKeyPermissionRepository

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      LicenseKeyPermission findByLKey​(String licenseKey)
      Method to find license key permissions by license key.
      int updatePermissionList​(String updatedPermissionString, String licenseKey, LocalDateTime updationTime, String updatedBy)
      Method to update license key permissions.
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
      • Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

        deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
      • Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

        findAll
      • Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

        count, exists, findAll, findOne
    • Method Detail

      • findByLKey

        LicenseKeyPermission findByLKey​(String licenseKey)
        Method to find license key permissions by license key.
        Parameters:
        licenseKey - the license key for which permission needs to be fetched.
        Returns:
        the license key entity.
      • updatePermissionList

        @Modifying
        @Query("UPDATE LicenseKeyPermission p SET p.permission =?1, p.updatedDateTimes =?3, p.updatedBy=?4 WHERE p.lKey =?2")
        int updatePermissionList​(String updatedPermissionString,
                                 String licenseKey,
                                 LocalDateTime updationTime,
                                 String updatedBy)
        Method to update license key permissions.
        Parameters:
        updatedPermissionString - the updated permission list.
        licenseKey - the license key.
        updationTime - the time at which the list is updated.
        updatedBy - the list updated by.
        Returns:
        the permission entity response.