public boolean isFolderArchived ( Folder folder ) { if ( folder . getArchived ( ) ) { return true ; } Folder parentFolder = folder . getParentFolder ( ) ; if ( parentFolder != null ) { return isFolderArchived ( parentFolder ) ; } else { Panel panel = panelDAO . findByRootFolder ( parentFolder ) ; if ( panel != null ) { return panelController . isPanelArchived ( panel ) ; } } return false ; }
Returns whether folder is archived