package Ġmen . br ak h . bs u irst udent . domain . files . repository Ċ Ċ import Ġmen . br ak h . bs u irst udent . domain . files . Abstract File Ċ import Ġmen . br ak h . bs u irst udent . domain . files . Directory Ċ import Ġmen . br ak h . bs u irst udent . domain . files . File AccessType Ċ import Ġmen . br ak h . bs u irst udent . domain . files . FileType Ċ import Ġorg . springframework . data . jpa . repository . Jpa Repository Ċ import Ġorg . springframework . data . jpa . repository . Jpa Specification Executor Ċ import Ġorg . springframework . data . jpa . repository . Query Ċ Ċ interface ĠFiles Repository Ġ: ĠJ pa Repository < Abstract File , ĠInt >, ĠJ pa Specification Executor < Abstract File > Ġ{ ĊĠĠĠ Ġfun ĠfindAll By Parent ( parent : ĠDirectory ): ĠList < Abstract File > ĊĠĠĠ Ġfun ĠfindAll By Parent And AccessType And Group Owner ( parent : ĠDirectory ?, Ġaccess Type : ĠFile AccessType , Ġgroup Owner : ĠString ): ĠList < Abstract File > ĊĊĠĠĠ Ġ@ Query (" SELECT Ġf ĠFROM ĠFile Ġf ĠWHERE Ġf . parent Ġ= Ġ: parent ĠAND Ġf . access Type Ġ= Ġ: access Type ĠAND Ġf . group Owner ĠLIKE Ġ% : group Owner Like % ") ĊĠĠĠ Ġfun ĠfindAll By Parent Id And AccessType And Group Owner Like ( parent : ĠDirectory ?, Ġaccess Type : ĠFile AccessType , Ġgroup Owner Like : ĠString ): ĠList < Abstract File > ĊĊĠĠĠ Ġfun Ġfind First By Parent And Type And FileName ( parent : ĠDirectory ?, Ġtype : ĠFile Type , ĠfileName : ĠString ): ĠAbstract File ? ĊĊĠĠĠ Ġfun Ġexists By FileName And Parent ( fileName : ĠString , Ġparent : ĠDirectory ?): ĠBoolean ĊĊĠĠĠ Ġfun Ġfind One By File External Id ( external File Id : ĠString ): ĠAbstract File Ċ }