예제 #1
0
 @Override
 public void initMenus() {
   List<SelectItem> sortMenu = new ArrayList<SelectItem>();
   sortMenu.add(new SelectItem(null, "--"));
   sortMenu.add(
       new SelectItem(SearchIndex.names.created, sb.getLabel(SearchIndex.names.created.name())));
   sortMenu.add(
       new SelectItem(SearchIndex.names.modified, sb.getLabel(SearchIndex.names.modified.name())));
   setSortMenu(sortMenu);
 }
예제 #2
0
 /** Load the collection */
 public void loadCollection() {
   if (id != null) {
     collection =
         ObjectLoader.loadCollectionLazy(
             ObjectHelper.getURI(CollectionImeji.class, id), sessionBean.getUser());
     if (collection != null && getCollection().getId() != null) {
       ItemController ic = new ItemController(sessionBean.getUser());
       collectionSize = ic.countContainerSize(collection.getId());
     }
   } else {
     BeanHelper.error(sessionBean.getLabel("error") + "No ID in URL");
   }
 }