public boolean unregister() { for (Iterator<Map.Entry<String, LogRecordListBean>> i = lists.entrySet().iterator(); i.hasNext();) { Map.Entry<String, LogRecordListBean> entry = i.next(); if (entry.getValue().unregister()) i.remove(); } return (lists.size() == 0 && super.unregister()); }
public ObjectInstance register() { if (activated) remove(); if (action_ == null) action_ = new BasicActionWrapper(uid); try { action_.getAction().activate(); } catch (Exception e) { addError(e.getMessage()); } action_.populateLists(lists, this); for (LogRecordListBean listBean : lists.values()) listBean.register(); activated = true; return super.register(); }