package Ġcom . j ah nel group . data rest security . person Ċ Ċ import Ġorg . springframework . data . repository . Crud Repository Ċ import Ġorg . springframework . security . access . pre post . Pre Authorize Ċ Ċ @ Pre Authorize (" has Role (' ROLE _ USER ') ") Ċ interface ĠPerson Repo Ġ: ĠCr ud Repository < Person , ĠLong >{ ĊĊĠĠĠ Ġ@ Pre Authorize (" has Role (' ROLE _ ADMIN ') ") Ġoverride Ġfun Ġdelete ( entities : ĠMutable Iterable < Person > ?) ĊĠĠĠ Ġ@ Pre Authorize (" has Role (' ROLE _ ADMIN ') ") Ġoverride Ġfun Ġdelete ( entity : ĠPerson ?) ĊĠĠĠ Ġ@ Pre Authorize (" has Role (' ROLE _ ADMIN ') ") Ġoverride Ġfun Ġdelete ( id : ĠLong ?) ĊĠĠĠ Ġ@ Pre Authorize (" has Role (' ROLE _ ADMIN ') ") Ġoverride Ġfun Ġdelete All () Ċ Ċ }