Interface ManagedPermissionSchemeEditingService

All Known Implementing Classes:
ManagedPermissionSchemeEditingServiceImpl

public interface ManagedPermissionSchemeEditingService
  • Method Details

    • validateAddPermissions

      ErrorCollection validateAddPermissions(ApplicationUser loggedInUser, PermissionsInputBean inputBean)
      Validates whether the security types can be added to the permissions.
      Parameters:
      loggedInUser - current logged-in user
      inputBean - the permission instructions under validation
      Returns:
      an error collection filled with errors messages when validation fails else empty
    • addNewSecurityTypes

      boolean addNewSecurityTypes(Scheme schemeObject, PermissionsInputBean inputBean)
      Adds a set of security types values to a set of permissions.

      This method does not perform any validation see validateAddPermissions(ApplicationUser, PermissionsInputBean)

      Parameters:
      schemeObject - the scheme to add to
      inputBean - the input bean of changes
      Returns:
      true when new entry has been added else false
      Throws:
      DataAccessException - unexpected error that occurred while adding entry to data store