Interface SpacePermissionSaverInternal

All Superinterfaces:
SpacePermissionSaver
All Known Subinterfaces:
SpacePermissionManagerInternal
All Known Implementing Classes:
AbstractSpacePermissionManager, CachingSpacePermissionManager, CoarseGrainedCachingSpacePermissionManager, DefaultSpacePermissionManager, DelegatingSpacePermissionManager, ReadOnlySpacePermissionManager, RecoveryAwareCachingSpacePermissionManager, RecoveryAwareCGCachingSpacePermissionManager, RecoveryAwareSpacePermissionManager, ScopesAwareSpacePermissionManager, SpacePermissionCoordinator

@Transactional public interface SpacePermissionSaverInternal extends SpacePermissionSaver
Internal version of the SpacePermissionSaver; see package-info.java for rationale.
Since:
5.9
  • Method Details

    • savePermission

      void savePermission(SpacePermission permission, SpacePermissionContext context)
      Saves the permission.

      May generate a SpacePermissionSaveEvent in the process, depending on the context.

      Parameters:
      permission - the permission to save
      context - the context for the save
    • saveSpacePermissions

      void saveSpacePermissions(@NonNull Space space, Collection<SpacePermission> spacePermissions, SpacePermissionContext context)
      Adds space permissions to the space
      Parameters:
      space - Space to which permissions should be granted
      spacePermissions - Collection of space permissions. They should all belong to the same space.
      context - the context of the save
      Since:
      9.1
    • saveGlobalPermissions

      void saveGlobalPermissions(Collection<SpacePermission> spacePermissions, SpacePermissionContext context)
      Adds global permissions
      Parameters:
      spacePermissions - Collection of global permissions.
      context - the context of the save
      Since:
      9.3