}
@SuppressWarnings("unchecked")
public List<Category> getChildrenCategories(String inode) {
try {
Inode inodeObj = new Inode();
inodeObj.setInode(inode);
List<Category> categories = InodeFactory.getChildrenClass(inodeObj, Category.class);
return perAPI.filterCollection(categories, PermissionAPI.PERMISSION_READ, true, user);
} catch (Exception e) {
Logger.error(this, "An unknown error happening while trying to retrieve categories : ", e);
return null;