protected List<CmsResource> getCategoryItems() {

        List<CmsResource> result = Collections.emptyList();
        if (CmsStringUtil.isNotEmpty(getParamGalleryPath())) {
            try {
                CmsCategoryService service = CmsCategoryService.getInstance();
                // get the edited resource if present
                String editedResource = "/";
                if (CmsStringUtil.isNotEmpty(getParamResource())) {
                    editedResource = CmsResource.getFolderPath(getParamResource());
                }
                // read the matching resources for the category
                result = service.readCategoryResources(getCms(), getParamGalleryPath(), true, editedResource);
                // filter the matched resources to get only the specific items as result
                int resTypeId = getGalleryItemsTypeId();
                if (resTypeId != -1) {
                    List<CmsResource> unfiltered = new ArrayList<CmsResource>(result);
                    result = new ArrayList<CmsResource>(unfiltered.size());
                    Iterator<CmsResource> i = unfiltered.iterator();
                    while (i.hasNext()) {
                        CmsResource res = i.next();
                        if (res.getTypeId() == resTypeId) {
                            result.add(res);
                        }
                    }
                }
            } catch (CmsException e) {
                // error reading resources
                if (LOG.isErrorEnabled()) {
                    LOG.error(e.getLocalizedMessage(), e);
                }
            } catch (NullPointerException e) {
                // ignore this exception
                if (LOG.isErrorEnabled()) {
                    LOG.error(e.getLocalizedMessage(), e);
                }
            }
        }
        return result;
    }
protected List < CmsResource > getCategoryItems ( ) { List < CmsResource > result = Collections . emptyList ( ) ; if ( CmsStringUtil . isNotEmpty ( getParamGalleryPath ( ) ) ) { try { CmsCategoryService service = CmsCategoryService . getInstance ( ) ; String editedResource = "/" ; if ( CmsStringUtil . isNotEmpty ( getParamResource ( ) ) ) { editedResource = CmsResource . getFolderPath ( getParamResource ( ) ) ; } result = service . readCategoryResources ( getCms ( ) , getParamGalleryPath ( ) , true , editedResource ) ; int resTypeId = getGalleryItemsTypeId ( ) ; if ( resTypeId != - 1 ) { List < CmsResource > unfiltered = new ArrayList < CmsResource > ( result ) ; result = new ArrayList < CmsResource > ( unfiltered . size ( ) ) ; Iterator < CmsResource > i = unfiltered . iterator ( ) ; while ( i . hasNext ( ) ) { CmsResource res = i . next ( ) ; if ( res . getTypeId ( ) == resTypeId ) { result . add ( res ) ; } } } } catch ( CmsException e ) { if ( LOG . isErrorEnabled ( ) ) { LOG . error ( e . getLocalizedMessage ( ) , e ) ; } } catch ( NullPointerException e ) { if ( LOG . isErrorEnabled ( ) ) { LOG . error ( e . getLocalizedMessage ( ) , e ) ; } } } return result ; }
Returns the resource items for the selected category.<p>

@return the resource items for the selected category