private List<CmsVfsEntryBean> getRootEntries() throws CmsRpcException {

        List<CmsVfsEntryBean> rootFolders = new ArrayList<CmsVfsEntryBean>();
        CmsObject cms = getCmsObject();
        try {
            String path = "/";
            if (!cms.existsResource(path, CmsResourceFilter.ONLY_VISIBLE_NO_DELETED)) {
                String startFolder = getWorkplaceSettings().getUserSettings().getStartFolder();
                if (cms.existsResource(startFolder, CmsResourceFilter.ONLY_VISIBLE_NO_DELETED)) {
                    path = startFolder;
                } else {
                    path = null;
                }
            }
            if (path != null) {
                CmsResource rootFolderResource = getCmsObject().readResource(
                    path,
                    CmsResourceFilter.ONLY_VISIBLE_NO_DELETED);
                String title = cms.readPropertyObject(path, CmsPropertyDefinition.PROPERTY_TITLE, false).getValue();
                rootFolders.add(
                    internalCreateVfsEntryBean(
                        getCmsObject(),
                        rootFolderResource,
                        title,
                        true,
                        isEditable(getCmsObject(), rootFolderResource),
                        null,
                        false));
            }

        } catch (CmsException e) {
            error(e);
        }
        return rootFolders;
    }
private List < CmsVfsEntryBean > getRootEntries ( ) throws CmsRpcException { List < CmsVfsEntryBean > rootFolders = new ArrayList < CmsVfsEntryBean > ( ) ; CmsObject cms = getCmsObject ( ) ; try { String path = "/" ; if ( ! cms . existsResource ( path , CmsResourceFilter . ONLY_VISIBLE_NO_DELETED ) ) { String startFolder = getWorkplaceSettings ( ) . getUserSettings ( ) . getStartFolder ( ) ; if ( cms . existsResource ( startFolder , CmsResourceFilter . ONLY_VISIBLE_NO_DELETED ) ) { path = startFolder ; } else { path = null ; } } if ( path != null ) { CmsResource rootFolderResource = getCmsObject ( ) . readResource ( path , CmsResourceFilter . ONLY_VISIBLE_NO_DELETED ) ; String title = cms . readPropertyObject ( path , CmsPropertyDefinition . PROPERTY_TITLE , false ) . getValue ( ) ; rootFolders . add ( internalCreateVfsEntryBean ( getCmsObject ( ) , rootFolderResource , title , true , isEditable ( getCmsObject ( ) , rootFolderResource ) , null , false ) ) ; } } catch ( CmsException e ) { error ( e ) ; } return rootFolders ; }
Returns the VFS root entries.<p>

@return the VFS root entries

@throws CmsRpcException if something goes wrong