public static LocalDocument findLocalDocumentByParentAndUrlName ( Folder parentFolder , String urlName ) { ResourceDAO resourceDAO = new ResourceDAO ( ) ; Resource resource = resourceDAO . findByUrlNameAndParentFolder ( urlName , parentFolder ) ; if ( resource instanceof LocalDocument ) { return ( LocalDocument ) resource ; } return null ; }
Returns local document by parent folder and URL name